Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/branchmap.py @ 42132:d9dc0896e1d3
branchcache: fix the docstring of _verifybranch()
Initially the function was designed to support verifying all branches but later
I decided to have a separate function. I forget to remove the doc related to
that. Thanks to Yuya for spotting this in review.
Differential Revision: https://phab.mercurial-scm.org/D6239
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Tue, 16 Apr 2019 14:48:48 +0300 |
parents | b26455ffa7fa |
children | 75e8e16ca107 |
comparison
equal
deleted
inserted
replaced
42131:b26455ffa7fa | 42132:d9dc0896e1d3 |
---|---|
187 _unknownnode(node) | 187 _unknownnode(node) |
188 | 188 |
189 self._closedverified = True | 189 self._closedverified = True |
190 | 190 |
191 def _verifybranch(self, branch): | 191 def _verifybranch(self, branch): |
192 """ verify head nodes for the given branch. If branch is None, verify | 192 """ verify head nodes for the given branch. """ |
193 for all the branches """ | |
194 if branch not in self._entries or branch in self._verifiedbranches: | 193 if branch not in self._entries or branch in self._verifiedbranches: |
195 return | 194 return |
196 for n in self._entries[branch]: | 195 for n in self._entries[branch]: |
197 if not self._hasnode(n): | 196 if not self._hasnode(n): |
198 _unknownnode(n) | 197 _unknownnode(n) |