Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 2543
eb9472947653
parent 2405
d4b5f3bd4720
child 2576
b984efd69f15
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon Mar 25 15:42:11 2013 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon Mar 25 18:15:32 2013 +0100
@@ -2625,11 +2625,12 @@
         
         return res
     
-    def hgGraft(self, path):
+    def hgGraft(self, path, revs=None):
         """
         Public method to copy changesets from another branch.
         
         @param path directory name of the project (string)
+        @param revs list of revisions to show in the revisions pane (list of strings)
         @return flag indicating that the project should be reread (boolean)
         """
         # find the root of the repo
@@ -2641,7 +2642,7 @@
         
         from .HgGraftDialog import HgGraftDialog
         res = False
-        dlg = HgGraftDialog(self)
+        dlg = HgGraftDialog(self, revs)
         if dlg.exec_() == QDialog.Accepted:
             revs, (userData, currentUser, userName), \
             (dateData, currentDate, dateStr), log, dryrun = dlg.getData()

eric ide

mercurial