Mercurial > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
22622:ce6b9edee725 | 22623:cd7e17aa6040 |
---|---|
5067 if result == 0: | 5067 if result == 0: |
5068 return not result | 5068 return not result |
5069 finally: | 5069 finally: |
5070 del repo._subtoppath | 5070 del repo._subtoppath |
5071 pushop = exchange.push(repo, other, opts.get('force'), revs=revs, | 5071 pushop = exchange.push(repo, other, opts.get('force'), revs=revs, |
5072 newbranch=opts.get('new_branch')) | 5072 newbranch=opts.get('new_branch'), |
5073 bookmarks=opts.get('bookmark', ())) | |
5073 | 5074 |
5074 result = not pushop.cgresult | 5075 result = not pushop.cgresult |
5075 | 5076 |
5076 if opts.get('bookmark'): | 5077 if opts.get('bookmark'): |
5077 bresult = bookmarks.pushtoremote(ui, repo, other, opts['bookmark']) | 5078 bresult = bookmarks.pushtoremote(ui, repo, other, opts['bookmark']) |