375 patterns but not symlinks. |
375 patterns but not symlinks. |
376 ''' |
376 ''' |
377 kwt = kwtools['templater'] |
377 kwt = kwtools['templater'] |
378 status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts) |
378 status = _status(ui, repo, kwt, opts.get('untracked'), *pats, **opts) |
379 modified, added, removed, deleted, unknown, ignored, clean = status |
379 modified, added, removed, deleted, unknown, ignored, clean = status |
380 files = util.sort(modified + added + clean + unknown) |
380 files = sorted(modified + added + clean + unknown) |
381 wctx = repo[None] |
381 wctx = repo[None] |
382 kwfiles = [f for f in files if kwt.iskwfile(f, wctx.flags)] |
382 kwfiles = [f for f in files if kwt.iskwfile(f, wctx.flags)] |
383 cwd = pats and repo.getcwd() or '' |
383 cwd = pats and repo.getcwd() or '' |
384 kwfstats = not opts.get('ignore') and (('K', kwfiles),) or () |
384 kwfstats = not opts.get('ignore') and (('K', kwfiles),) or () |
385 if opts.get('all') or opts.get('ignore'): |
385 if opts.get('all') or opts.get('ignore'): |