360 keyword expansion. |
360 keyword expansion. |
361 That is, files matched by [keyword] config patterns but not symlinks. |
361 That is, files matched by [keyword] config patterns but not symlinks. |
362 ''' |
362 ''' |
363 status = _status(ui, repo, *pats, **opts) |
363 status = _status(ui, repo, *pats, **opts) |
364 modified, added, removed, deleted, unknown, ignored, clean = status |
364 modified, added, removed, deleted, unknown, ignored, clean = status |
|
365 files = modified + added + clean |
365 if opts.get('untracked'): |
366 if opts.get('untracked'): |
366 files = modified + added + unknown + clean |
367 files += unknown |
367 else: |
|
368 files = modified + added + clean |
|
369 files.sort() |
368 files.sort() |
370 kwfiles = [f for f in files if _iskwfile(f, repo._link)] |
369 kwfiles = [f for f in files if _iskwfile(f, repo._link)] |
371 cwd = pats and repo.getcwd() or '' |
370 cwd = pats and repo.getcwd() or '' |
372 kwfstats = not opts.get('ignore') and (('K', kwfiles),) or () |
371 kwfstats = not opts.get('ignore') and (('K', kwfiles),) or () |
373 if opts.get('all') or opts.get('ignore'): |
372 if opts.get('all') or opts.get('ignore'): |