Mercurial > hg
diff mercurial/commands.py @ 28182:e4fe4e903e97
bookmarks: add 'hg push -B .' for pushing the active bookmark (issue4917)
author | liscju <piotr.listkiewicz@gmail.com> |
---|---|
date | Fri, 19 Feb 2016 22:28:09 +0100 |
parents | bd97ed121016 |
children | 7623ba92af72 |
line wrap: on
line diff
--- a/mercurial/commands.py Sat Feb 20 15:56:44 2016 -0800 +++ b/mercurial/commands.py Fri Feb 19 22:28:09 2016 +0100 @@ -5708,7 +5708,8 @@ If -B/--bookmark is used, the specified bookmarked revision, its ancestors, and the bookmark will be pushed to the remote - repository. + repository. Specifying ``.`` is equivalent to specifying the active + bookmark's name. Please see :hg:`help urls` for important details about ``ssh://`` URLs. If DESTINATION is omitted, a default path will be used. @@ -5720,6 +5721,7 @@ ui.setconfig('bookmarks', 'pushing', opts['bookmark'], 'push') for b in opts['bookmark']: # translate -B options to -r so changesets get pushed + b = repo._bookmarks.expandname(b) if b in repo._bookmarks: opts.setdefault('rev', []).append(b) else: