diff hgtabwidget.cpp @ 108:8ae3b44c0073

* Enable/disable update and merge actions depending on whether default update and merge will actually do anything
author Chris Cannam
date Thu, 25 Nov 2010 21:08:17 +0000
parents 729438d70af8
children 1721c580c10e
line wrap: on
line diff
--- a/hgtabwidget.cpp	Thu Nov 25 20:18:10 2010 +0000
+++ b/hgtabwidget.cpp	Thu Nov 25 21:08:17 2010 +0000
@@ -150,16 +150,12 @@
     if (oldScene) delete oldScene;
     ChangesetItem *tipItem = g.getItemFor(csets[0]);
     if (tipItem) tipItem->ensureVisible();
+    //!!! track lifecycle of those Changesets
 }
 
 Changesets HgTabWidget::parseChangeSets(QString changeSetsStr)
 {
-    Changesets csets;
-    LogList log = LogParser(changeSetsStr).parse();
-    foreach (LogEntry e, log) {
-        Changeset *cs = new Changeset(e);
-        csets.push_back(cs);
-    }
+    Changesets csets = Changeset::parseChangesets(changeSetsStr);
     for (int i = 0; i+1 < csets.size(); ++i) {
         Changeset *cs = csets[i];
         if (cs->parents().empty()) {