hgext/largefiles/overrides.py
changeset 25440 1a95c57959f6
parent 25189 1c8c33eaea0a
child 25467 f64dbe06f3d0
equal deleted inserted replaced
25439:aaede04c0ba6 25440:1a95c57959f6
    98         lfpats = ui.configlist(lfutil.longname, 'patterns', default=[])
    98         lfpats = ui.configlist(lfutil.longname, 'patterns', default=[])
    99         if lfpats:
    99         if lfpats:
   100             lfmatcher = match_.match(repo.root, '', list(lfpats))
   100             lfmatcher = match_.match(repo.root, '', list(lfpats))
   101 
   101 
   102     lfnames = []
   102     lfnames = []
   103     m = copy.copy(matcher)
   103     m = matcher
   104     m.bad = lambda x, y: None
   104 
   105     wctx = repo[None]
   105     wctx = repo[None]
   106     for f in repo.walk(m):
   106     for f in repo.walk(match_.badmatch(m, lambda x, y: None)):
   107         exact = m.exact(f)
   107         exact = m.exact(f)
   108         lfile = lfutil.standin(f) in wctx
   108         lfile = lfutil.standin(f) in wctx
   109         nfile = f in wctx
   109         nfile = f in wctx
   110         exists = lfile or nfile
   110         exists = lfile or nfile
   111 
   111