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