Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 4409
ff1cb0107d40
parent 4126
c28d0cf3b639
child 4487
4ba7a8ab24f2
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Aug 30 19:33:16 2015 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Mon Aug 31 18:32:20 2015 +0200
@@ -2001,13 +2001,14 @@
         self.checkVCSStatus()
         return res
     
-    def hgPush(self, name, force=False, newBranch=False):
+    def hgPush(self, name, force=False, newBranch=False, rev=None):
         """
         Public method used to push changes to a remote Mercurial repository.
         
         @param name directory name of the project to be pushed from (string)
         @keyparam force flag indicating a forced push (boolean)
         @keyparam newBranch flag indicating to push a new branch (boolean)
+        @keyparam rev revision to be pushed (including all ancestors) (string)
         """
         args = self.initCommand("push")
         args.append('-v')
@@ -2015,6 +2016,9 @@
             args.append('-f')
         if newBranch:
             args.append('--new-branch')
+        if rev:
+            args.append('--rev')
+            args.append(rev)
         
         # find the root of the repo
         repodir = self.splitPath(name)[0]

eric ide

mercurial