Mercurial > public > mercurial-scm > hg-stable
diff hgext/sparse.py @ 41150:b05eb98a6b67
sparse: fix debugrebuilddirsate when narrow extension is enabled
dirstate wrapping in narrow extension converts the manifest object to a list. So
let's assume we get a list of files in sparse extension.
Differential Revision: https://phab.mercurial-scm.org/D5481
author | Pulkit Goyal <pulkit@yandex-team.ru> |
---|---|
date | Mon, 24 Dec 2018 16:04:52 +0300 |
parents | 8eaf693b1409 |
children | ddbebce94665 |
line wrap: on
line diff
--- a/hgext/sparse.py Mon Dec 24 15:57:54 2018 +0300 +++ b/hgext/sparse.py Mon Dec 24 16:04:52 2018 +0300 @@ -210,7 +210,7 @@ def _rebuild(orig, self, parent, allfiles, changedfiles=None): matcher = self._sparsematcher if not matcher.always(): - allfiles = allfiles.matches(matcher) + allfiles = [f for f in allfiles if matcher(f)] if changedfiles: changedfiles = [f for f in changedfiles if matcher(f)]