[PATCH 1 of 2 stable?] push: all pass along opargs

Sean Farley sean at farley.io
Mon Oct 19 22:55:14 UTC 2015


# HG changeset patch
# User Sean Farley <sean at farley.io>
# Date 1445294615 25200
#      Mon Oct 19 15:43:35 2015 -0700
# Node ID c549dd6871dae90812949df9f9fe2d225a060068
# Parent  df1a29ec45bfaee30f974b06a0214a3359b369aa
push: all pass along opargs

Wihtout this patch, commands.push silently drops opargs defeating the whole
purpose of the argument.

diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -5414,11 +5414,12 @@ def push(ui, repo, dest=None, **opts):
                 return not result
     finally:
         del repo._subtoppath
     pushop = exchange.push(repo, other, opts.get('force'), revs=revs,
                            newbranch=opts.get('new_branch'),
-                           bookmarks=opts.get('bookmark', ()))
+                           bookmarks=opts.get('bookmark', ()),
+                           opargs=opts.get('opargs'))
 
     result = not pushop.cgresult
 
     if pushop.bkresult is not None:
         if pushop.bkresult == 2:


More information about the Mercurial-devel mailing list