keyword: improve help for kwfiles

This commit is contained in:
Christian Ebert 2009-06-27 13:05:25 +02:00
parent c981f8f929
commit 4a2d871161
2 changed files with 10 additions and 5 deletions

View File

@ -359,11 +359,16 @@ def expand(ui, repo, *pats, **opts):
_kwfwrite(ui, repo, True, *pats, **opts)
def files(ui, repo, *pats, **opts):
'''print files currently configured for keyword expansion
'''print filenames configured for keyword expansion
Crosscheck which files in working directory are potential targets
for keyword expansion. That is, files matched by [keyword] config
patterns but not symlinks.
Check which filenames in the working directory are matched by the
[keyword] configuration patterns.
Useful to prevent inadvertent keyword expansion and to speed up
execution by including only filenames that are actual candidates
for expansion.
Use -u/--untracked to display untracked filenames as well.
'''
kwt = kwtools['templater']
status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts)

View File

@ -50,7 +50,7 @@ list of commands:
kwdemo print [keywordmaps] configuration and an expansion example
kwexpand expand keywords in the working directory
kwfiles print files currently configured for keyword expansion
kwfiles print filenames configured for keyword expansion
kwshrink revert expanded keywords in the working directory
enabled extensions: