##// END OF EJS Templates
revlogutils: for issue6528 fix, pre-cache nullrev as metadata-free
Joerg Sonnenberger -
r52806:576876a5 default
parent child Browse files
Show More
@@ -736,7 +736,7 def _from_report(ui, repo, context, from
736
736
737 def filter_delta_issue6528(revlog, deltas_iter):
737 def filter_delta_issue6528(revlog, deltas_iter):
738 """filter incomind deltas to repaire issue 6528 on the fly"""
738 """filter incomind deltas to repaire issue 6528 on the fly"""
739 metadata_cache = {}
739 metadata_cache = {nullrev: False}
740
740
741 deltacomputer = deltas.deltacomputer(revlog)
741 deltacomputer = deltas.deltacomputer(revlog)
742
742
@@ -847,7 +847,7 def repair_issue6528(
847
847
848 # Set of filerevs (or hex filenodes if `to_report`) that need fixing
848 # Set of filerevs (or hex filenodes if `to_report`) that need fixing
849 to_fix = set()
849 to_fix = set()
850 metadata_cache = {}
850 metadata_cache = {nullrev: False}
851 for filerev in fl.revs():
851 for filerev in fl.revs():
852 affected = _is_revision_affected_fast(
852 affected = _is_revision_affected_fast(
853 repo, fl, filerev, metadata_cache
853 repo, fl, filerev, metadata_cache
General Comments 0
You need to be logged in to leave comments. Login now