diff mainwindow.cpp @ 107:fdca34c989c0

* Make interactivity optional in hgrunner (makes running non-interactive, local commands a bit quicker)
author Chris Cannam
date Thu, 25 Nov 2010 20:18:10 +0000
parents 729438d70af8
children 8ae3b44c0073
line wrap: on
line diff
--- a/mainwindow.cpp	Thu Nov 25 17:54:35 2010 +0000
+++ b/mainwindow.cpp	Thu Nov 25 20:18:10 2010 +0000
@@ -362,7 +362,7 @@
                 params << "commit" << "--message" << comment << "--user" << getUserInfo();
             }
 
-            runner -> startHgCommand(workFolderPath, params);
+            runner -> startHgCommand(workFolderPath, params, true);
             runningAction = ACT_COMMIT;
         }
     }
@@ -603,7 +603,7 @@
 
         hgTabs->setWorkFolderAndRepoNames(workFolderPath, remoteRepoPath);
 
-        runner -> startHgCommand(workFolderPath, params);
+        runner -> startHgCommand(workFolderPath, params, true);
         runningAction = ACT_CLONEFROMREMOTE;
     }
 }
@@ -632,7 +632,7 @@
 
         params << "incoming" << "--newest-first" << remoteRepoPath;
 
-        runner -> startHgCommand(workFolderPath, params);
+        runner -> startHgCommand(workFolderPath, params, true);
         runningAction = ACT_INCOMING;
     }
 }
@@ -646,7 +646,7 @@
 
         params << "pull" << remoteRepoPath;
 
-        runner -> startHgCommand(workFolderPath, params);
+        runner -> startHgCommand(workFolderPath, params, true);
         runningAction = ACT_PULL;
     }
 }
@@ -660,7 +660,7 @@
 
         params << "push" << remoteRepoPath;
 
-        runner -> startHgCommand(workFolderPath, params);
+        runner -> startHgCommand(workFolderPath, params, true);
         runningAction = ACT_PUSH;
     }
 }
@@ -1265,8 +1265,7 @@
             else if (runningAction == ACT_HEADS)
             {
                 runningAction = ACT_NONE;
-//!!!                hgParents(); // skip this, we don't currently use it
-                hgLog();
+                hgParents();
             }
             else if (runningAction == ACT_PARENTS)
             {