Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 963
b672d2191a04
parent 945
8cd4d08fa9f6
child 966
890ec4c04ffe
--- a/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Mar 27 18:07:50 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/hg.py	Sun Mar 27 19:04:42 2011 +0200
@@ -1328,12 +1328,13 @@
         self.checkVCSStatus()
         return res
     
-    def hgPush(self, name, force=False):
+    def hgPush(self, name, force=False, newBranch=False):
         """
         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)
         """
         args = []
         args.append('push')
@@ -1341,6 +1342,8 @@
         args.append('-v')
         if force:
             args.append('-f')
+        if newBranch:
+            args.append('--new-branch')
         
         # find the root of the repo
         repodir = self.splitPath(name)[0]

eric ide

mercurial