[Updated] D11806: downgrade: don't assume existence of nodemap files when downgrading

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Tue Dec 7 19:32:08 UTC 2021


Closed by commit rHG897aa0c4da4a: downgrade: don't assume existence of nodemap files when downgrading (authored by Alphare).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11806?vs=31130&id=31370

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11806/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D11806

AFFECTED FILES
  mercurial/revlogutils/nodemap.py

CHANGE DETAILS

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 @@
     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):



To: Alphare, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20211207/a1589e58/attachment.html>


More information about the Mercurial-patches mailing list