# HG changeset patch # User Chris Cannam # Date 1300272370 0 # Node ID 987a094047c97f2ad2d004424a6df8fa00688133 # Parent 98cf46fb74c1e72a7bcafacd8d0ce26873f47b07 Ensure a full log happens on first commit to an empty repo (otherwise we don't get the state updated properly) diff -r 98cf46fb74c1 -r 987a094047c9 mainwindow.cpp --- 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;