diff mercurial/commands.py @ 22623:cd7e17aa6040

push: pass list of bookmark to `exchange.push` Currently stored but not unused. This parameter will control bookmarks explicitly pushed (added to the server if missing).
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 25 Sep 2014 01:49:20 -0700
parents 76a43e0db516
children 62ab9ca90b36
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Sep 25 15:26:09 2014 -0700
+++ b/mercurial/commands.py	Thu Sep 25 01:49:20 2014 -0700
@@ -5069,7 +5069,8 @@
     finally:
         del repo._subtoppath
     pushop = exchange.push(repo, other, opts.get('force'), revs=revs,
-                           newbranch=opts.get('new_branch'))
+                           newbranch=opts.get('new_branch'),
+                           bookmarks=opts.get('bookmark', ()))
 
     result = not pushop.cgresult