# HG changeset patch # User Christian Ebert # Date 1246111126 -7200 # Node ID 748c766e642467c6ad92979bc2c472c62172b746 # Parent 3cad5778d217cc22b4aae9055fc3893491df059d (0.9.2compat) improve help for kwfiles diff -r 3cad5778d217 -r 748c766e6424 hgkw/keyword.py --- a/hgkw/keyword.py Wed Jun 24 14:29:48 2009 +0200 +++ b/hgkw/keyword.py Sat Jun 27 15:58:46 2009 +0200 @@ -536,11 +536,16 @@ _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 + + Check which filenames in the working directory are matched by the + [keyword] configuration patterns. - Crosscheck which files in working directory are potential targets - for keyword expansion. That is, files matched by [keyword] config - patterns but not symlinks. + 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) diff -r 3cad5778d217 -r 748c766e6424 tests/test-keyword.out --- a/tests/test-keyword.out Wed Jun 24 14:29:48 2009 +0200 +++ b/tests/test-keyword.out Sat Jun 27 15:58:46 2009 +0200 @@ -38,7 +38,7 @@ Or, better, use bundle/unbundle to share changes. 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 % hg kwdemo [extensions]