# HG changeset patch # User Christian Ebert # Date 1199288537 -3600 # Node ID 83dad6b67ed9e5dc3269cde7d70bb8f510e3f324 # Parent 2da9ab0bc400c820e9e368d755ca04d2396aaa40 Compress kwfstats intitialization diff -r 2da9ab0bc400 -r 83dad6b67ed9 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: