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: