Mercurial > hg
changeset 48424:897aa0c4da4a stable
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
author | Raphaël Gomès <rgomes@octobus.net> |
---|---|
date | Thu, 25 Nov 2021 18:26:50 +0100 |
parents | 602120a96072 |
children | d4c084160434 |
files | mercurial/revlogutils/nodemap.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/revlogutils/nodemap.py Tue Dec 07 15:01:30 2021 +0100 +++ b/mercurial/revlogutils/nodemap.py Thu Nov 25 18:26:50 2021 +0100 @@ -147,7 +147,7 @@ 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):