changeset 8950:be6b57b2bdb8

keyword: improve help for kwfiles
author Christian Ebert <blacktrash@gmx.net>
date Sat, 27 Jun 2009 13:05:25 +0200
parents 8d985f0e54ae
children 835a51e63c5b
files hgext/keyword.py tests/test-keyword.out
diffstat 2 files changed, 10 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Sat Jun 27 13:08:07 2009 +0200
+++ b/hgext/keyword.py	Sat Jun 27 13:05:25 2009 +0200
@@ -359,11 +359,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)
--- a/tests/test-keyword.out	Sat Jun 27 13:08:07 2009 +0200
+++ b/tests/test-keyword.out	Sat Jun 27 13:05:25 2009 +0200
@@ -50,7 +50,7 @@
 
  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: