--- 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: