Submitter | phabricator |
---|---|
Date | April 6, 2018, 6:51 p.m. |
Message ID | <fbf7fc7914a99600ed72d4d392482265@localhost.localdomain> |
Download | mbox | patch |
Permalink | /patch/30455/ |
State | Not Applicable |
Headers | show |
Comments
Patch
diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py --- a/mercurial/bookmarks.py +++ b/mercurial/bookmarks.py @@ -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: