Plugins/VcsPlugins/vcsMercurial/hg.py

branch
Py2 comp.
changeset 2545
2d385ccc14f9
parent 2525
8b507a9a2d40
child 2575
cbdf5b8a5bc5
diff -r 2757794dac10 -r 2d385ccc14f9 Plugins/VcsPlugins/vcsMercurial/hg.py
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon Mar 25 15:46:44 2013 +0100
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon Mar 25 18:15:32 2013 +0100
@@ -2631,11 +2631,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
@@ -2647,7 +2648,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