diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1023,7 +1023,7 @@ if key in self.branchmap(): return key - return self[key].branch() + return scmutil.revsymbol(self, key).branch() def known(self, nodes): cl = self.changelog