Patchwork D6771: py3: use pycompat.maplist() in chgserver

login
register
mail settings
Submitter phabricator
Date Aug. 29, 2019, 1 a.m.
Message ID <differential-rev-PHID-DREV-5wmxrrq6ysuib6xfenlv-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/41424/
State Superseded
Headers show

Comments

phabricator - Aug. 29, 2019, 1 a.m.
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




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

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"""