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

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

Comments

phabricator - March 6, 2020, 11:37 p.m.
marmoute added a comment.
marmoute updated this revision to Diff 20578.


  eventless rebase past D8255 <https://phab.mercurial-scm.org/D8255>

REPOSITORY
  rHG Mercurial

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

BRANCH
  default

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
@@ -2095,7 +2095,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()