From 4a2d8711612f74bf3a9dae6db4f55dd2a4b94827 Mon Sep 17 00:00:00 2001 From: Christian Ebert Date: Sat, 27 Jun 2009 13:05:25 +0200 Subject: [PATCH] keyword: improve help for kwfiles --- hgext/keyword.py | 13 +++++++++---- tests/test-keyword.out | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/hgext/keyword.py b/hgext/keyword.py index 3c6eedc66d..44af3c9b07 100644 --- a/hgext/keyword.py +++ b/hgext/keyword.py @@ -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) diff --git a/tests/test-keyword.out b/tests/test-keyword.out index 3a1d6f7e85..9ffb96e61a 100644 --- a/tests/test-keyword.out +++ b/tests/test-keyword.out @@ -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: