[PATCH 05 of 19 STABLE] largefiles: refactoring for file list generation to create new matcher

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


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1330335216 -32400
# Branch stable
# Node ID 983e2f9456bd274ca7e26410c1316fb4372e94be
# Parent  658bc73648340b844c75c3fdd071747c0f27ba76
largefiles: refactoring for file list generation to create new matcher

this patch avoids file list creation in 'working' case, because file
list of match object is never used in this case.

diff -r 658bc7364834 -r 983e2f9456bd 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
@@ -139,6 +139,8 @@
                 # Create a copy of match that matches standins instead
                 # of largefiles.
                 def filefn(files):
+                    if not working:
+                        return # 'match.files()' is never used in this case
                     for f in files:
                         if not lfutil.isstandin(f):
                             sf = lfutil.standin(f)



More information about the Mercurial-devel mailing list