diff mainwindow.cpp @ 130:9ae4cc0055e8

* Do full log after commit (so as to get the right tip tag)
author Chris Cannam
date Mon, 29 Nov 2010 20:58:50 +0000
parents 4986642800f0
children 2550aaa09240
line wrap: on
line diff
--- a/mainwindow.cpp	Mon Nov 29 20:53:34 2010 +0000
+++ b/mainwindow.cpp	Mon Nov 29 20:58:50 2010 +0000
@@ -1254,10 +1254,15 @@
         foreach (Changeset *cs, currentHeads) delete cs;
         currentHeads = Changeset::parseChangesets(output);
         break;
+
+    case ACT_COMMIT:
+        hgTabs->clearSelections();
+        shouldHgStat = true;
+        needNewLog = true; // naive incremental log will give us a duplicate tip tag
+        break;
         
     case ACT_REMOVE:
     case ACT_ADD:
-    case ACT_COMMIT:
     case ACT_REVERT:
         hgTabs->clearSelections();
         shouldHgStat = true;