[PATCH 2 of 4] keyword: make kwfiles --all show unknown files too

Christian Ebert blacktrash at gmx.net
Wed Sep 23 09:05:17 CDT 2009


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1253655525 -7200
# Node ID cf348908bed37dd9118418151aa1ec154810c037
# Parent  fb8be929dbc67e748e41785da40b27f3acb0a9be
keyword: make kwfiles --all show unknown files too

More consistent and similar to hg status.

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -249,7 +249,7 @@
     Returns status of working directory.'''
     if kwt:
         match = cmdutil.match(repo, pats, opts)
-        unknown = opts.get('unknown')
+        unknown = opts.get('unknown') or opts.get('all')
         return repo.status(match=match, unknown=unknown, clean=True)
     if ui.configitems('keyword'):
         raise util.Abort(_('[keyword] patterns cannot match'))


More information about the Mercurial-devel mailing list