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

login
register
mail settings
Submitter Sean Farley
Date Oct. 19, 2015, 10:55 p.m.
Message ID <c549dd6871dae9081294.1445295314@laptop.office.atlassian.com>
Download mbox | patch
Permalink /patch/11179/
State Accepted
Headers show

Comments

Sean Farley - Oct. 19, 2015, 10:55 p.m.
# HG changeset patch
# User Sean Farley <sean@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.

Patch

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: