diff mercurial/debugcommands.py @ 45715:0428978bca22

mergestate: add `allextras()` to get all extras `extras()` can only be used for getting extra for a file. However at couple of places in code, we wanted to iterate over all the extras stored with the mergestate and they were accessing the private `_stateextras`. We add a new function for this. Differential Revision: https://phab.mercurial-scm.org/D9190
author Pulkit Goyal <7895pulkit@gmail.com>
date Sat, 10 Oct 2020 12:43:04 +0530
parents d2e1dcd4490d
children b7b8a1538161 07b0a687c01a
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Tue Oct 06 19:11:34 2020 +0530
+++ b/mercurial/debugcommands.py	Sat Oct 10 12:43:04 2020 +0530
@@ -2107,7 +2107,7 @@
     fm_files.end()
 
     fm_extras = fm.nested(b'extras')
-    for f, d in sorted(pycompat.iteritems(ms._stateextras)):
+    for f, d in sorted(pycompat.iteritems(ms.allextras())):
         if f in ms:
             # If file is in mergestate, we have already processed it's extras
             continue