D1099: dagutil: use a listcomp instead of a map()
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Oct 16 05:17:26 EDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG09397d0dd3b7: dagutil: use a listcomp instead of a map() (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1099?vs=2791&id=2801
REVISION DETAIL
https://phab.mercurial-scm.org/D1099
AFFECTED FILES
mercurial/dagutil.py
CHANGE DETAILS
diff --git a/mercurial/dagutil.py b/mercurial/dagutil.py
--- a/mercurial/dagutil.py
+++ b/mercurial/dagutil.py
@@ -148,7 +148,7 @@
if (r is not None
and r != nullrev
and r not in rl.filteredrevs)]
- return map(self._internalize, ids)
+ return [self._internalize(i) for i in ids]
class revlogdag(revlogbaseddag):
To: durin42, #hg-reviewers, ryanmce
Cc: ryanmce, mercurial-devel
More information about the Mercurial-devel
mailing list