Compress kwfstats intitialization
authorChristian Ebert <blacktrash@gmx.net>
Wed, 02 Jan 2008 16:42:17 +0100
changeset 320 83dad6b67ed9
parent 319 2da9ab0bc400
child 321 ce5474dd2a9a
Compress kwfstats intitialization
hgkw/keyword.py
--- a/hgkw/keyword.py	Wed Jan 02 16:31:49 2008 +0100
+++ b/hgkw/keyword.py	Wed Jan 02 16:42:17 2008 +0100
@@ -370,10 +370,7 @@
     files.sort()
     kwfiles = [f for f in files if _iskwfile(f, repo._link)]
     cwd = pats and repo.getcwd() or ''
-    if opts.get('ignore'):
-        kwfstats = ()
-    else:
-        kwfstats = (('K', kwfiles),)
+    kwfstats = not opts.get('ignore') and (('K', kwfiles),) or ()
     if opts.get('all') or opts.get('ignore'):
         kwfstats += (('I', [f for f in files if f not in kwfiles]),)
     for char, filenames in kwfstats: