[PATCH 03 of 19 STABLE] largefiles: use 'match.convert()' to create STANDIN matcher for 'status()'

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Mon Feb 27 10:46:28 UTC 2012


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1330335216 -32400
# Branch stable
# Node ID 9e4f862ec92fa665a609c01477f9641facb80834
# Parent  5cb66b4539fc04204657121f0f09bfd4335227bb
largefiles: use 'match.convert()' to create STANDIN matcher for 'status()'

this patch just replaces 'accessing/modifying internal information of
matcher' implementation by 'using match.convert()' one.

diff -r 5cb66b4539fc -r 9e4f862ec92f hgext/largefiles/reposetup.py
--- a/hgext/largefiles/reposetup.py	Mon Feb 27 18:33:36 2012 +0900
+++ b/hgext/largefiles/reposetup.py	Mon Feb 27 18:33:36 2012 +0900
@@ -143,8 +143,10 @@
                 def _ignoreoverride(self):
                     return False
 
-                m = copy.copy(match)
-                m._files = [tostandin(f) for f in m._files]
+                def filefn(files):
+                    for f in files:
+                        yield tostandin(f)
+                m = match.convert(filefn)
 
                 # Get ignored files here even if we weren't asked for them; we
                 # must use the result here for filtering later



More information about the Mercurial-devel mailing list