# HG changeset patch # User Pierre-Yves David # Date 2020-09-30 10:46:49 # Node ID 3bfa7c7ffb6e4beb352f040352413f383155de34 # Parent 07c00c2046b4f3583555aa683ba528e1f026eef7 salvaged: explicitly skip salvaged file while encoding This is a temporary measure to avoid diverging test cases (between commit time sidedata and upgraded sidedata) while we implement salvaged tracking in the different cases. This will be dropped soon. Differential Revision: https://phab.mercurial-scm.org/D9122 diff --git a/mercurial/metadata.py b/mercurial/metadata.py --- a/mercurial/metadata.py +++ b/mercurial/metadata.py @@ -418,7 +418,7 @@ INDEX_ENTRY = struct.Struct(">bLL") def encode_files_sidedata(files): - all_files = set(files.touched) + all_files = set(files.touched - files.salvaged) all_files.update(files.copied_from_p1.values()) all_files.update(files.copied_from_p2.values()) all_files = sorted(all_files)