##// END OF EJS Templates
revlog: drop `flush` parameter from `_peek_iscensored`...
marmoute -
r47937:c9ae2e7f default
parent child Browse files
Show More
@@ -2433,11 +2433,6 class revlog(object):
2433 transaction.add(self._datafile, end)
2433 transaction.add(self._datafile, end)
2434 dfh = self._datafp(b"a+")
2434 dfh = self._datafp(b"a+")
2435
2435
2436 def flush():
2437 if dfh:
2438 dfh.flush()
2439 ifh.flush()
2440
2441 self._writinghandles = (ifh, dfh)
2436 self._writinghandles = (ifh, dfh)
2442 empty = True
2437 empty = True
2443
2438
@@ -2482,7 +2477,7 class revlog(object):
2482 self.display_id, self.node(baserev)
2477 self.display_id, self.node(baserev)
2483 )
2478 )
2484
2479
2485 if not flags and self._peek_iscensored(baserev, delta, flush):
2480 if not flags and self._peek_iscensored(baserev, delta):
2486 flags |= REVIDX_ISCENSORED
2481 flags |= REVIDX_ISCENSORED
2487
2482
2488 # We assume consumers of addrevisioncb will want to retrieve
2483 # We assume consumers of addrevisioncb will want to retrieve
@@ -2534,7 +2529,7 class revlog(object):
2534
2529
2535 return self.flags(rev) & REVIDX_ISCENSORED
2530 return self.flags(rev) & REVIDX_ISCENSORED
2536
2531
2537 def _peek_iscensored(self, baserev, delta, flush):
2532 def _peek_iscensored(self, baserev, delta):
2538 """Quickly check if a delta produces a censored revision."""
2533 """Quickly check if a delta produces a censored revision."""
2539 if not self._censorable:
2534 if not self._censorable:
2540 return False
2535 return False
General Comments 0
You need to be logged in to leave comments. Login now