[PATCH] keyword: improve help for kwfiles (take 2)

Christian Ebert blacktrash at gmx.net
Sat Jun 27 06:00:19 CDT 2009


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1246099849 -7200
# Node ID 656bf86d36f2fd49e3abc4c8058b7c7f5af3606c
# Parent  7b3d837ca60e6e9fc84cdf92e64dedac41881f5d
keyword: improve help for kwfiles

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -359,11 +359,15 @@
     _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 exclude
+    binary files from being being processed by the extension (speedup).
+
+    Use "hg kwfiles -u" 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
--- a/tests/test-keyword.out
+++ b/tests/test-keyword.out
@@ -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:


More information about the Mercurial-devel mailing list