Mercurial > public > mercurial-scm > hg
diff mercurial/filelog.py @ 47822:2813d406b036 stable 5.9rc1
issue6528: add a config option to control the fixing on the fly
This will allow people who know to be safe to avoid any performance overhead
(and other potential issue).
Differential Revision: https://phab.mercurial-scm.org/D11271
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 07 Aug 2021 16:51:47 +0200 |
parents | c30ca163b45e |
children | c514936d92b4 |
line wrap: on
line diff
--- a/mercurial/filelog.py Sat Aug 07 14:12:28 2021 +0200 +++ b/mercurial/filelog.py Sat Aug 07 16:51:47 2021 +0200 @@ -38,6 +38,8 @@ # Used by LFS. self._revlog.filename = path self.nullid = self._revlog.nullid + opts = opener.options + self._fix_issue6528 = opts.get(b'issue6528.fix-incoming', True) def __len__(self): return len(self._revlog) @@ -160,7 +162,8 @@ with self._revlog._writing(transaction): - deltas = rewrite.filter_delta_issue6528(self._revlog, deltas) + if self._fix_issue6528: + deltas = rewrite.filter_delta_issue6528(self._revlog, deltas) return self._revlog.addgroup( deltas,