diff -r c7d236b55a3e -r 3018749a71bb mercurial/branchmap.py --- a/mercurial/branchmap.py Sun Jul 14 23:21:28 2019 -0700 +++ b/mercurial/branchmap.py Fri Jul 12 23:34:24 2019 -0700 @@ -218,6 +218,8 @@ self._verifybranch(k) yield k, v + items = iteritems + def hasbranch(self, label): """ checks whether a branch of this name exists or not """ self._verifybranch(label)