changeset 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 b254f827b7a6
children d2e8e79a6361
files hgext/largefiles/overrides.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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