diff hgext/largefiles/overrides.py @ 16074:67a5bc8aeb1d

largefiles: reduce OR-ing of same conditions
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 06 Feb 2012 12:16:29 +0900
parents 32b9aee3602c
children d2e8e79a6361
line wrap: on
line diff
--- 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