comparison hgext/narrow/narrowchangegroup.py @ 36491:149c5af35de5

py3: listify the return value of filter() filter() on Python 3 returns a filter object. Differential Revision: https://phab.mercurial-scm.org/D2515
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 01 Mar 2018 23:52:30 +0530
parents d0d5eef57fb0
children 8cf97e0e1730
comparison
equal deleted inserted replaced
36490:1c4247b0040a 36491:149c5af35de5
42 42
43 def generatefiles(orig, self, changedfiles, linknodes, commonrevs, 43 def generatefiles(orig, self, changedfiles, linknodes, commonrevs,
44 source): 44 source):
45 matcher = _cgmatcher(self) 45 matcher = _cgmatcher(self)
46 if matcher: 46 if matcher:
47 changedfiles = filter(matcher, changedfiles) 47 changedfiles = list(filter(matcher, changedfiles))
48 if getattr(self, 'is_shallow', False): 48 if getattr(self, 'is_shallow', False):
49 # See comment in generate() for why this sadness is a thing. 49 # See comment in generate() for why this sadness is a thing.
50 mfdicts = self._mfdicts 50 mfdicts = self._mfdicts
51 del self._mfdicts 51 del self._mfdicts
52 # In a shallow clone, the linknodes callback needs to also include 52 # In a shallow clone, the linknodes callback needs to also include