Mercurial > public > mercurial-scm > hg-stable
diff mercurial/commands.py @ 33918:10f1809ab98f
bookmarks: allow renaming active bookmark using '.'
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 21 Aug 2017 08:52:46 +0200 |
parents | 800bb35d891e |
children | 5cd6d4826f9f |
line wrap: on
line diff
--- 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)