diff hgext/largefiles/overrides.py @ 28017:d3f1b7ee5e70

match: rename "narrowmatcher" to "subdirmatcher" (API) I keep mistaking "narrowmatcher" for narrowhg's narrowmatcher. "subdirmatcher" seems more to the point anyway.
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 05 Feb 2016 21:09:32 -0800
parents 4511e8dac4c7
children cffa46cbdb8f
line wrap: on
line diff
--- a/hgext/largefiles/overrides.py	Wed Feb 03 18:59:35 2016 +0000
+++ b/hgext/largefiles/overrides.py	Fri Feb 05 21:09:32 2016 -0800
@@ -963,7 +963,7 @@
     if subrepos:
         for subpath in sorted(ctx.substate):
             sub = ctx.workingsub(subpath)
-            submatch = match_.narrowmatcher(subpath, matchfn)
+            submatch = match_.subdirmatcher(subpath, matchfn)
             sub._repo.lfstatus = True
             sub.archive(archiver, prefix, submatch)
 
@@ -1011,7 +1011,7 @@
 
     for subpath in sorted(ctx.substate):
         sub = ctx.workingsub(subpath)
-        submatch = match_.narrowmatcher(subpath, match)
+        submatch = match_.subdirmatcher(subpath, match)
         sub._repo.lfstatus = True
         sub.archive(archiver, prefix + repo._path + '/', submatch)