largefiles: reduce OR-ing of same conditions
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Mon, 06 Feb 2012 12:16:29 +0900
changeset 16074 67a5bc8aeb1d
parent 16073 b254f827b7a6
child 16075 d2e8e79a6361
largefiles: reduce OR-ing of same conditions
hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Mon Feb 06 15:10:01 2012 -0600
+++ b/hgext/largefiles/overrides.py	Mon Feb 06 12:16:29 2012 +0900
@@ -546,7 +546,7 @@
                 match = oldmatch(ctx, pats, opts, globbed, default)
                 m = copy.copy(match)
                 def tostandin(f):
-                    if lfutil.standin(f) in ctx or lfutil.standin(f) in ctx:
+                    if lfutil.standin(f) in ctx:
                         return lfutil.standin(f)
                     elif lfutil.standin(f) in repo[None]:
                         return None