hgext/largefiles/lfutil.py
changeset 32309 16a5cb4eedb7
parent 31740 a40e979b9d97
child 33373 fb320398a21c
equal deleted inserted replaced
32308:e8569cc131d1 32309:16a5cb4eedb7
   294     if rmatcher and not rmatcher.always():
   294     if rmatcher and not rmatcher.always():
   295         pats = [wvfs.join(standindir, pat) for pat in rmatcher.files()]
   295         pats = [wvfs.join(standindir, pat) for pat in rmatcher.files()]
   296         if not pats:
   296         if not pats:
   297             pats = [wvfs.join(standindir)]
   297             pats = [wvfs.join(standindir)]
   298         match = scmutil.match(repo[None], pats, badfn=badfn)
   298         match = scmutil.match(repo[None], pats, badfn=badfn)
   299         # if pats is empty, it would incorrectly always match, so clear _always
       
   300         match._always = False
       
   301     else:
   299     else:
   302         # no patterns: relative to repo root
   300         # no patterns: relative to repo root
   303         match = scmutil.match(repo[None], [wvfs.join(standindir)], badfn=badfn)
   301         match = scmutil.match(repo[None], [wvfs.join(standindir)], badfn=badfn)
   304     return match
   302     return match
   305 
   303