# HG changeset patch # User Martin von Zweigbergk # Date 2014-10-28 04:10:24 # Node ID 97b6e762f2188013147bab9128e1233236cccd7f # Parent 55325a327754b92e068256c11d88f5057877d1a7 largefiles: remove confusing 'or None' from predicate The match function that is overriden returns a boolean value, so adding 'or None' is both unnecessary and confusing. diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py --- a/hgext/largefiles/overrides.py +++ b/hgext/largefiles/overrides.py @@ -35,7 +35,7 @@ def installnormalfilesmatchfn(manifest): m._fmap = set(m._files) m._always = False origmatchfn = m.matchfn - m.matchfn = lambda f: notlfile(f) and origmatchfn(f) or None + m.matchfn = lambda f: notlfile(f) and origmatchfn(f) return m oldmatch = installmatchfn(overridematch)