hgkw/keyword.py
changeset 258 dab61b56b6b8
parent 255 c4f37735be9b
child 260 af9ddafeeb96
equal deleted inserted replaced
257:1090221301cf 258:dab61b56b6b8
   370 
   370 
   371     crosscheck which files are matched by [keyword] config patterns
   371     crosscheck which files are matched by [keyword] config patterns
   372     '''
   372     '''
   373     kwfmatcher = _keywordmatcher(ui, repo)
   373     kwfmatcher = _keywordmatcher(ui, repo)
   374     if kwfmatcher is not None:
   374     if kwfmatcher is not None:
   375         ctx = repo.changectx()
   375         ctx = repo.workingctx()
   376         files = _weedcandidates(ctx.manifest(), kwfmatcher, None)
   376         man = ctx.manifest()
       
   377         for f in ctx.unknown():
       
   378             del man[f]
       
   379         files = _weedcandidates(man, kwfmatcher, None)
   377         files.sort()
   380         files.sort()
   378         ui.write('\n'.join(files) + '\n')
   381         ui.write('\n'.join(files) + '\n')
   379 
   382 
   380 def demo(ui, repo, *args, **opts):
   383 def demo(ui, repo, *args, **opts):
   381     '''print [keywordmaps] configuration and an expansion example
   384     '''print [keywordmaps] configuration and an expansion example