--- a/mercurial/localrepo.py Sat Mar 23 20:59:07 2019 +0900
+++ b/mercurial/localrepo.py Mon Mar 18 18:59:38 2019 +0300
@@ -1556,7 +1556,7 @@
return scmutil.revsymbol(self, key).node()
def lookupbranch(self, key):
- if key in self.branchmap():
+ if key in self.branchmap().entries:
return key
return scmutil.revsymbol(self, key).branch()
@@ -2730,7 +2730,7 @@
if branch is None:
branch = self[None].branch()
branches = self.branchmap()
- if branch not in branches:
+ if branch not in branches.entries:
return []
# the cache returns heads ordered lowest to highest
bheads = list(reversed(branches.branchheads(branch, closed=closed)))