##// END OF EJS Templates
bookmarks: use isrevsymbol() for detecting collision with existing symbol...
Martin von Zweigbergk -
r37415:46d9f998 default
parent child Browse files
Show More
@@ -238,7 +238,7 b' class bmstore(dict):'
238 _("a bookmark cannot have the name of an existing branch"))
238 _("a bookmark cannot have the name of an existing branch"))
239 if len(mark) > 3 and not force:
239 if len(mark) > 3 and not force:
240 try:
240 try:
241 shadowhash = (mark in self._repo)
241 shadowhash = scmutil.isrevsymbol(self._repo, mark)
242 except error.LookupError: # ambiguous identifier
242 except error.LookupError: # ambiguous identifier
243 shadowhash = False
243 shadowhash = False
244 if shadowhash:
244 if shadowhash:
General Comments 0
You need to be logged in to leave comments. Login now