Plugins/VcsPlugins/vcsMercurial/HgGraftDialog.py

branch
Py2 comp.
changeset 2545
2d385ccc14f9
parent 2525
8b507a9a2d40
child 2677
3d4277929fb3
--- a/Plugins/VcsPlugins/vcsMercurial/HgGraftDialog.py	Mon Mar 25 15:46:44 2013 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/HgGraftDialog.py	Mon Mar 25 18:15:32 2013 +0100
@@ -19,11 +19,12 @@
     """
     Class implementing a dialog to enter the data for a graft session.
     """
-    def __init__(self, vcs, parent=None):
+    def __init__(self, vcs, revs=None, parent=None):
         """
         Constructor
         
         @param vcs reference to the VCS object (Hg)
+        @param revs list of revisions to show in the revisions pane (list of strings)
         @param parent reference to the parent widget (QWidget)
         """
         super(HgGraftDialog, self).__init__(parent)
@@ -35,6 +36,9 @@
             self.logCheckBox.setEnabled(False)
             self.logCheckBox.setChecked(False)
             self.logCheckBox.setVisible(False)
+        
+        if revs:
+            self.revisionsEdit.setPlainText("\n".join(sorted(revs)))
        
         self.__updateOk()
     

eric ide

mercurial