Skip to content
Snippets Groups Projects
Commit 46d9f998 authored by Martin von Zweigbergk's avatar Martin von Zweigbergk
Browse files

bookmarks: use isrevsymbol() for detecting collision with existing symbol

Differential Revision: https://phab.mercurial-scm.org/D3167
parent 9966f44e
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@
_("a bookmark cannot have the name of an existing branch"))
if len(mark) > 3 and not force:
try:
shadowhash = (mark in self._repo)
shadowhash = scmutil.isrevsymbol(self._repo, mark)
except error.LookupError: # ambiguous identifier
shadowhash = False
if shadowhash:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment