Mercurial > public > mercurial-scm > hg
diff mercurial/match.py @ 42346:38d85ec06552
match: drop unnecessary adding of '' to set of dirs
This breaks some tests for "rootfilesin:" in a pattern matcher even
more, but that just shows how broken that case is.
Differential Revision: https://phab.mercurial-scm.org/D6406
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 24 Apr 2019 09:39:40 -0700 |
parents | d8e55c0c642c |
children | c4b8f8637d7a |
line wrap: on
line diff
--- a/mercurial/match.py Mon Apr 22 22:43:00 2019 -0700 +++ b/mercurial/match.py Wed Apr 24 09:39:40 2019 -0700 @@ -533,7 +533,7 @@ @propertycache def _dirs(self): - return set(util.dirs(self._fileset)) | {''} + return set(util.dirs(self._fileset)) def visitdir(self, dir): dir = normalizerootdir(dir, 'visitdir') @@ -691,7 +691,7 @@ @propertycache def _dirs(self): - return set(util.dirs(self._fileset)) | {''} + return set(util.dirs(self._fileset)) def visitdir(self, dir): dir = normalizerootdir(dir, 'visitdir') @@ -1007,7 +1007,7 @@ @propertycache def _pathdirs(self): - return set(util.finddirs(self._path)) | {''} + return set(util.finddirs(self._path)) def visitdir(self, dir): if dir == self._path: