diff mercurial/commands.py @ 25445:1457c1f28c92

pull: allow a generic way to pass parameters to the pull operation We have been feeling the need for this in extensions for quite some time. This will be used to pass remote bookmark information around in the next changesets.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 02 Jun 2015 00:43:11 -0700
parents d0c7ffc4c8bc
children b5311068077e
line wrap: on
line diff
--- a/mercurial/commands.py	Mon Jun 01 22:29:49 2015 -0700
+++ b/mercurial/commands.py	Tue Jun 02 00:43:11 2015 -0700
@@ -5120,6 +5120,7 @@
                                           opts.get('rev'))
 
 
+        pullopargs = {}
         if opts.get('bookmark'):
             if not revs:
                 revs = []
@@ -5152,7 +5153,8 @@
 
         modheads = exchange.pull(repo, other, heads=revs,
                                  force=opts.get('force'),
-                                 bookmarks=opts.get('bookmark', ())).cgresult
+                                 bookmarks=opts.get('bookmark', ()),
+                                 opargs=pullopargs).cgresult
         if checkout:
             checkout = str(repo.changelog.rev(checkout))
         repo._subtoppath = source