comparison mercurial/branchmap.py @ 41768:aaad36b88298

cleanup: use () to wrap long lines instead of \ This is a little less brittle, and often helps indentation. In a surprising number of cases the entire cleanup was deleting the \, as the expression was *already* parenthesized in a workable way. Differential Revision: https://phab.mercurial-scm.org/D5993
author Augie Fackler <augie@google.com>
date Wed, 20 Feb 2019 19:28:51 -0500
parents a87ca1d7e61d
children 68bbcc70e274
comparison
equal deleted inserted replaced
41767:15d3facfa40a 41768:aaad36b88298
227 227
228 - False when cached tipnode is unknown or if we detect a strip. 228 - False when cached tipnode is unknown or if we detect a strip.
229 - True when cache is up to date or a subset of current repo.""" 229 - True when cache is up to date or a subset of current repo."""
230 try: 230 try:
231 return ((self.tipnode == repo.changelog.node(self.tiprev)) 231 return ((self.tipnode == repo.changelog.node(self.tiprev))
232 and (self.filteredhash == \ 232 and (self.filteredhash ==
233 scmutil.filteredhash(repo, self.tiprev))) 233 scmutil.filteredhash(repo, self.tiprev)))
234 except IndexError: 234 except IndexError:
235 return False 235 return False
236 236
237 def _branchtip(self, heads): 237 def _branchtip(self, heads):