hgkw/keyword.py
branchstable
changeset 468 235800d4708a
parent 467 1dfcc2e2cdb3
child 469 8b8a196602ac
equal deleted inserted replaced
467:1dfcc2e2cdb3 468:235800d4708a
   386     modified, added, removed, deleted, unknown, ignored, clean = status
   386     modified, added, removed, deleted, unknown, ignored, clean = status
   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.workingctx()
   391     wctx = repo.changectx(None)
   392     islink = lambda p: 'l' in wctx.fileflags(p)
   392     islink = lambda p: 'l' in wctx.fileflags(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'):