Submitter | via Mercurial-devel |
---|---|
Date | May 30, 2017, 6:50 a.m. |
Message ID | <b096fab5cc395a8f91d6.1496127032@martinvonz.svl.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/21058/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/mercurial/match.py b/mercurial/match.py --- a/mercurial/match.py +++ b/mercurial/match.py @@ -377,10 +377,11 @@ return set(util.dirs(self._fileset)) | {'.'} def visitdir(self, dir): + if self.always(): + return 'all' if self.prefix() and dir in self._fileset: return 'all' - return (not self._fileset or - '.' in self._fileset or + return ('.' in self._fileset or dir in self._fileset or dir in self._dirs or any(parentdir in self._fileset