Mercurial > public > mercurial-scm > hg
diff mercurial/manifest.py @ 24448:55c449345b10
match: add isexact() method to hide internals
Comparing a function reference seems bad.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 29 Oct 2014 08:43:39 -0700 |
parents | 1297480ed347 |
children | bfb754050ccd |
line wrap: on
line diff
--- a/mercurial/manifest.py Wed Nov 19 15:56:58 2014 -0800 +++ b/mercurial/manifest.py Wed Oct 29 08:43:39 2014 -0700 @@ -164,7 +164,7 @@ return self.copy() files = match.files() - if (len(files) < 100 and (match.matchfn == match.exact or + if (len(files) < 100 and (match.isexact() or (not match.anypats() and util.all(fn in self for fn in files)))): return self.intersectfiles(files) @@ -519,7 +519,7 @@ return self.copy() files = match.files() - if (match.matchfn == match.exact or + if (match.isexact() or (not match.anypats() and util.all(fn in self for fn in files))): return self.intersectfiles(files)