D6771: py3: use pycompat.maplist() in chgserver
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Aug 29 01:00:26 UTC 2019
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
test-chg.t almost passes on py3 after this patch.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D6771
AFFECTED FILES
mercurial/chgserver.py
CHANGE DETAILS
diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
--- a/mercurial/chgserver.py
+++ b/mercurial/chgserver.py
@@ -172,7 +172,7 @@
except OSError:
# could be ENOENT, EPERM etc. not fatal in any case
pass
- return _hashlist(map(trystat, paths))[:12]
+ return _hashlist(pycompat.maplist(trystat, paths))[:12]
class hashstate(object):
"""a structure storing confighash, mtimehash, paths used for mtimehash"""
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list