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 06:00:24 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
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
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list