Submitter | via Mercurial-devel |
---|---|
Date | May 18, 2017, 4:13 p.m. |
Message ID | <64ac7ed2ee4e9b3fe99b.1495124009@martinvonz.svl.corp.google.com> |
Download | mbox | patch |
Permalink | /patch/20674/ |
State | Accepted |
Headers | show |
Comments
On Thu, 18 May 2017 09:13:29 -0700, Martin von Zweigbergk via Mercurial-devel wrote: > # HG changeset patch > # User Martin von Zweigbergk <martinvonz@google.com> > # Date 1495090483 25200 > # Wed May 17 23:54:43 2017 -0700 > # Node ID 64ac7ed2ee4e9b3fe99bc3bec68191ded607e896 > # Parent 0d6b3572ad924103128bb9cd296000fc6fd821ef > fsmonitor: use modern match API Looks good. Queued, thanks.
Patch
diff --git a/hgext/fsmonitor/__init__.py b/hgext/fsmonitor/__init__.py --- a/hgext/fsmonitor/__init__.py +++ b/hgext/fsmonitor/__init__.py @@ -253,10 +253,10 @@ fresh_instance = False exact = skipstep3 = False - if matchfn == match.exact: # match.exact + if match.isexact(): # match.exact exact = True dirignore = util.always # skip step 2 - elif match.files() and not match.anypats(): # match.match, no patterns + elif match.prefix(): # match.match, no patterns skipstep3 = True if not exact and self._checkcase: