# HG changeset patch # User Joel Rosdahl # Date 1224954352 -7200 # Node ID d892211d670e9d59ea2ee7f857151e62c3144aa0 # Parent 8b81d1e2dc04e34206965836fee3edd4d6ff8ef6 bookmarks: Require new bookmark name when renaming diff -r 8b81d1e2dc04 -r d892211d670e hgext/bookmarks.py --- a/hgext/bookmarks.py Sat Oct 25 19:05:52 2008 +0200 +++ b/hgext/bookmarks.py Sat Oct 25 19:05:52 2008 +0200 @@ -81,6 +81,8 @@ raise util.Abort(_("a bookmark of this name does not exist")) if mark in marks and not force: raise util.Abort(_("a bookmark of the same name already exists")) + if mark is None: + raise util.Abort(_("new bookmark name required")) marks[mark] = marks[move] del marks[move] write(repo, marks)