# HG changeset patch # User Martin von Zweigbergk # Date 1522879078 25200 # Node ID 92171562c7f39bcfbdeab4c3aca49de04830be0a # Parent fdd22bf6398fda5fbf97132bbe387fce10393ae7 localrepo: use revsymbol in lookupbranch() too lookupbranch() takes a string that comes from the CLI, so scmutil.revsymbol() is appropriate for looking it up. Differential Revision: https://phab.mercurial-scm.org/D3080 diff -r fdd22bf6398f -r 92171562c7f3 mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Apr 04 14:31:09 2018 -0700 +++ b/mercurial/localrepo.py Wed Apr 04 14:57:58 2018 -0700 @@ -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