Patchwork D2317: manifest: use list(dict) instead of dict.keys() to get a list of keys

login
register
mail settings
Submitter phabricator
Date Feb. 18, 2018, 4:30 p.m.
Message ID <2a2325e17c2d601758c1d3bbaf99f927@localhost.localdomain>
Download mbox | patch
Permalink /patch/28113/
State Not Applicable
Headers show

Comments

phabricator - Feb. 18, 2018, 4:30 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG5245bac09e6a: manifest: use list(dict) instead of dict.keys() to get a list of keys (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2317?vs=5835&id=5886

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

AFFECTED FILES
  mercurial/manifest.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit, indygreg
Cc: indygreg, mercurial-devel

Patch

diff --git a/mercurial/manifest.py b/mercurial/manifest.py
--- a/mercurial/manifest.py
+++ b/mercurial/manifest.py
@@ -1019,7 +1019,7 @@ 
 
         # yield this dir's files and walk its submanifests
         self._load()
-        for p in sorted(self._dirs.keys() + self._files.keys()):
+        for p in sorted(list(self._dirs) + list(self._files)):
             if p in self._files:
                 fullp = self._subpath(p)
                 if match(fullp):