hgkw/keyword.py
branchstable
changeset 469 8b8a196602ac
parent 468 235800d4708a
child 470 2c530e5df1d4
equal deleted inserted replaced
468:235800d4708a 469:8b8a196602ac
   387     files = modified + added + clean
   387     files = modified + added + clean
   388     if opts.get('untracked'):
   388     if opts.get('untracked'):
   389         files += unknown
   389         files += unknown
   390     files.sort()
   390     files.sort()
   391     wctx = repo.changectx(None)
   391     wctx = repo.changectx(None)
   392     islink = lambda p: 'l' in wctx.fileflags(p)
   392     islink = lambda p: 'l' in wctx.flags(p)
   393     kwfiles = [f for f in files if kwt.iskwfile(f, islink)]
   393     kwfiles = [f for f in files if kwt.iskwfile(f, islink)]
   394     cwd = pats and repo.getcwd() or ''
   394     cwd = pats and repo.getcwd() or ''
   395     kwfstats = not opts.get('ignore') and (('K', kwfiles),) or ()
   395     kwfstats = not opts.get('ignore') and (('K', kwfiles),) or ()
   396     if opts.get('all') or opts.get('ignore'):
   396     if opts.get('all') or opts.get('ignore'):
   397         kwfstats += (('I', [f for f in files if f not in kwfiles]),)
   397         kwfstats += (('I', [f for f in files if f not in kwfiles]),)