Patchwork D8163: nodemap: use data from the index in debugnodemap --dump-new

login
register
mail settings
Submitter phabricator
Date March 11, 2020, 3:44 p.m.
Message ID <a421683870ea1f6b3f538041c3805841@localhost.localdomain>
Download mbox | patch
Permalink /patch/45707/
State Not Applicable
Headers show

Comments

phabricator - March 11, 2020, 3:44 p.m.
Closed by commit rHGfebe88a6f7f7: nodemap: use data from the index in debugnodemap --dump-new (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8163?vs=20661&id=20700

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

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

AFFECTED FILES
  mercurial/debugcommands.py

CHANGE DETAILS




To: Alphare, #hg-reviewers
Cc: marmoute, mercurial-devel

Patch

diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py
--- a/mercurial/debugcommands.py
+++ b/mercurial/debugcommands.py
@@ -2109,7 +2109,10 @@ 
     if opts['dump_new']:
         unfi = repo.unfiltered()
         cl = unfi.changelog
-        data = nodemap.persistent_data(cl.index)
+        if util.safehasattr(cl.index, "nodemap_data_all"):
+            data = cl.index.nodemap_data_all()
+        else:
+            data = nodemap.persistent_data(cl.index)
         ui.write(data)
     elif opts['dump_disk']:
         unfi = repo.unfiltered()