hgkw/keyword.py
changeset 539 c04db4a88523
parent 538 db71342ad29d
child 540 e30c2a251010
equal deleted inserted replaced
537:37a22db17285 539:c04db4a88523
   377     patterns but not symlinks.
   377     patterns but not symlinks.
   378     '''
   378     '''
   379     kwt = kwtools['templater']
   379     kwt = kwtools['templater']
   380     status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts)
   380     status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts)
   381     modified, added, removed, deleted, unknown, ignored, clean = status
   381     modified, added, removed, deleted, unknown, ignored, clean = status
   382     files = util.sort(modified + added + clean + unknown)
   382     files = sorted(modified + added + clean + unknown)
   383     wctx = repo[None]
   383     wctx = repo[None]
   384     kwfiles = [f for f in files if kwt.iskwfile(f, wctx.flags)]
   384     kwfiles = [f for f in files if kwt.iskwfile(f, wctx.flags)]
   385     cwd = pats and repo.getcwd() or ''
   385     cwd = pats and repo.getcwd() or ''
   386     kwfstats = not opts.get('ignore') and (('K', kwfiles),) or ()
   386     kwfstats = not opts.get('ignore') and (('K', kwfiles),) or ()
   387     if opts.get('all') or opts.get('ignore'):
   387     if opts.get('all') or opts.get('ignore'):