hgkw/keyword.py
changeset 328 f5154819a11b
parent 327 06f3c6b3dd93
child 330 c5bba07dadd5
equal deleted inserted replaced
327:06f3c6b3dd93 328:f5154819a11b
   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'):