# HG changeset patch # User FUJIWARA Katsunori # Date 1328498189 -32400 # Node ID d2e8e79a6361b35a0d07040948c05595cbd7e9b3 # Parent 67a5bc8aeb1d170b2ee57e1fa94527a79615acd8 largefiles: reduce redundant splitstandin/standin combination assumptions: - 'lfutil.splitstandin(f)' strips 'f' of '.hglf/', if it can - 'lfile(f)' examines 'lfutil.standin(f) in manifest' - 'lfutil.standin(f)' adds '.hglf/' to 'f' and - 'f' should start with '.hglf/' there, because it is already examined by 'lfutil.isstandin(f)' then: lfile(lfutil.splitstandin(f)) => lfile() => lfutil.standin() in manifest => < with '.hglf/'> in manifest => f in manifest diff -r 67a5bc8aeb1d -r d2e8e79a6361 hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py Mon Feb 06 12:16:29 2012 +0900 +++ b/hgext/largefiles/overrides.py Mon Feb 06 12:16:29 2012 +0900 @@ -454,7 +454,7 @@ m._fmap = set(m._files) orig_matchfn = m.matchfn m.matchfn = lambda f: (lfutil.isstandin(f) and - lfile(lfutil.splitstandin(f)) and + (f in manifest) and orig_matchfn(lfutil.splitstandin(f)) or None) return m