D2317: manifest: use list(dict) instead of dict.keys() to get a list of keys
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Feb 18 11:30:57 EST 2018
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
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):
To: durin42, #hg-reviewers, pulkit, indygreg
Cc: indygreg, mercurial-devel
More information about the Mercurial-devel
mailing list