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()