mercurial/commands.py
changeset 33918 10f1809ab98f
parent 33903 800bb35d891e
child 33931 5cd6d4826f9f
--- a/mercurial/commands.py	Tue Aug 22 14:14:52 2017 -0400
+++ b/mercurial/commands.py	Mon Aug 21 08:52:46 2017 +0200
@@ -968,6 +968,7 @@
                     raise error.Abort(_("new bookmark name required"))
                 elif len(names) > 1:
                     raise error.Abort(_("only one new bookmark name allowed"))
+                rename = repo._bookmarks.expandname(rename)
                 bookmarks.rename(repo, tr, rename, names[0], force, inactive)
             elif names:
                 bookmarks.addbookmarks(repo, tr, names, rev, force, inactive)