comparison hgext/largefiles/overrides.py @ 23145:97b6e762f218

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.
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 27 Oct 2014 21:10:24 -0700
parents 55325a327754
children 51c9196a6bd0
comparison
equal deleted inserted replaced
23144:55325a327754 23145:97b6e762f218
33 manifest) 33 manifest)
34 m._files = filter(notlfile, m._files) 34 m._files = filter(notlfile, m._files)
35 m._fmap = set(m._files) 35 m._fmap = set(m._files)
36 m._always = False 36 m._always = False
37 origmatchfn = m.matchfn 37 origmatchfn = m.matchfn
38 m.matchfn = lambda f: notlfile(f) and origmatchfn(f) or None 38 m.matchfn = lambda f: notlfile(f) and origmatchfn(f)
39 return m 39 return m
40 oldmatch = installmatchfn(overridematch) 40 oldmatch = installmatchfn(overridematch)
41 41
42 def installmatchfn(f): 42 def installmatchfn(f):
43 '''monkey patch the scmutil module with a custom match function. 43 '''monkey patch the scmutil module with a custom match function.