# HG changeset patch # User Pierre-Yves David # Date 1620037523 -7200 # Node ID c9ae2e7fe154591f6af52cc93ed7a81a2c77bd1b # Parent 590f2364d33aa5516ed3b3f15a9676aba8e64692 revlog: drop `flush` parameter from `_peek_iscensored` This is not used anywhere. Differential Revision: https://phab.mercurial-scm.org/D10592 diff -r 590f2364d33a -r c9ae2e7fe154 mercurial/revlog.py --- a/mercurial/revlog.py Mon May 03 12:25:12 2021 +0200 +++ b/mercurial/revlog.py Mon May 03 12:25:23 2021 +0200 @@ -2433,11 +2433,6 @@ transaction.add(self._datafile, end) dfh = self._datafp(b"a+") - def flush(): - if dfh: - dfh.flush() - ifh.flush() - self._writinghandles = (ifh, dfh) empty = True @@ -2482,7 +2477,7 @@ self.display_id, self.node(baserev) ) - if not flags and self._peek_iscensored(baserev, delta, flush): + if not flags and self._peek_iscensored(baserev, delta): flags |= REVIDX_ISCENSORED # We assume consumers of addrevisioncb will want to retrieve @@ -2534,7 +2529,7 @@ return self.flags(rev) & REVIDX_ISCENSORED - def _peek_iscensored(self, baserev, delta, flush): + def _peek_iscensored(self, baserev, delta): """Quickly check if a delta produces a censored revision.""" if not self._censorable: return False