[PATCH 1 of 2 STABLE] largefiles: reduce OR-ing of same conditions

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Sun Feb 5 21:22:30 CST 2012


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1328498189 -32400
# Branch stable
# Node ID 66b2efef53f57f17bd50ebbe4e0c7d548b19bc68
# Parent  7e5a281a082cdbff4ae9553e01b5ff36dc2c11ee
largefiles: reduce OR-ing of same conditions

diff -r 7e5a281a082c -r 66b2efef53f5 hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py	Fri Feb 03 19:47:09 2012 +0100
+++ 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


More information about the Mercurial-devel mailing list