# HG changeset patch # User Christian Ebert # Date 1191679623 -7200 # Node ID dab61b56b6b85f5c843306f14f8b2a7091cba3a2 # Parent 1090221301cf1adb96e15182bebff7f7b06f7318 Determine kwfiles on workingctx Added but not yet committed files should be shown. Removed but not yet committed files should not be shown. diff -r 1090221301cf -r dab61b56b6b8 hgkw/keyword.py --- a/hgkw/keyword.py Fri Oct 05 15:53:28 2007 +0200 +++ b/hgkw/keyword.py Sat Oct 06 16:07:03 2007 +0200 @@ -372,8 +372,11 @@ ''' kwfmatcher = _keywordmatcher(ui, repo) if kwfmatcher is not None: - ctx = repo.changectx() - files = _weedcandidates(ctx.manifest(), kwfmatcher, None) + ctx = repo.workingctx() + man = ctx.manifest() + for f in ctx.unknown(): + del man[f] + files = _weedcandidates(man, kwfmatcher, None) files.sort() ui.write('\n'.join(files) + '\n')