# HG changeset patch # User Raphaël Gomès # Date 2021-11-25 17:26:50 # Node ID 897aa0c4da4ab0b418c23cc69b1497e8d4649586 # Parent 602120a9607278184579090c97ef812b602fdf4b downgrade: don't assume existence of nodemap files when downgrading Persistent nodemap files might not exist on a fresh repository, so ignore the potential missing file errors. Differential Revision: https://phab.mercurial-scm.org/D11806 diff --git a/mercurial/revlogutils/nodemap.py b/mercurial/revlogutils/nodemap.py --- a/mercurial/revlogutils/nodemap.py +++ b/mercurial/revlogutils/nodemap.py @@ -147,7 +147,7 @@ def delete_nodemap(tr, repo, revlog): if revlog._nodemap_file is None: msg = "calling persist nodemap on a revlog without the feature enabled" raise error.ProgrammingError(msg) - repo.svfs.unlink(revlog._nodemap_file) + repo.svfs.tryunlink(revlog._nodemap_file) def persist_nodemap(tr, revlog, pending=False, force=False):