hgext/largefiles/overrides.py
changeset 23145 97b6e762f218
parent 23144 55325a327754
child 23183 51c9196a6bd0
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.