keyword: make kwfiles --all show unknown files too
authorChristian Ebert <blacktrash@gmx.net>
Wed, 30 Sep 2009 23:59:03 +0200
changeset 9492 3b1864bcc58f
parent 9491 12e340b9f1bf
child 9493 fe1ecd15c6bd
keyword: make kwfiles --all show unknown files too More consistent and similar to hg status.
hgext/keyword.py
--- a/hgext/keyword.py	Wed Sep 30 22:39:56 2009 +0200
+++ b/hgext/keyword.py	Wed Sep 30 23:59:03 2009 +0200
@@ -248,7 +248,8 @@
     '''Bails out if [keyword] configuration is not active.
     Returns status of working directory.'''
     if kwt:
-        unknown = opts.get('unknown') or opts.get('untracked')
+        unknown = (opts.get('unknown') or opts.get('all')
+                   or opts.get('untracked'))
         return repo.status(match=cmdutil.match(repo, pats, opts), clean=True,
                            unknown=unknown)
     if ui.configitems('keyword'):