changeset 347:987a094047c9

Ensure a full log happens on first commit to an empty repo (otherwise we don't get the state updated properly)
author Chris Cannam
date Wed, 16 Mar 2011 10:46:10 +0000
parents 98cf46fb74c1
children 076c2b3de51b b422d1bcfb3c
files mainwindow.cpp
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mainwindow.cpp	Wed Mar 16 10:27:44 2011 +0000
+++ b/mainwindow.cpp	Wed Mar 16 10:46:10 2011 +0000
@@ -1961,6 +1961,10 @@
         break;
 
     case ACT_COMMIT:
+        if (m_currentParents.empty()) {
+            // first commit to empty repo
+            m_needNewLog = true;
+        }
         m_hgTabs->clearSelections();
         m_justMerged = false;
         m_shouldHgStat = true;