hgkw/keyword.py
branchstable
changeset 391 d3f114c111ff
parent 390 ee07603fab12
child 394 fe13fe09ba2e
equal deleted inserted replaced
390:ee07603fab12 391:d3f114c111ff
   387     modified, added, removed, deleted, unknown, ignored, clean = status
   387     modified, added, removed, deleted, unknown, ignored, clean = status
   388     files = modified + added + clean
   388     files = modified + added + clean
   389     if opts.get('untracked'):
   389     if opts.get('untracked'):
   390         files += unknown
   390         files += unknown
   391     files.sort()
   391     files.sort()
   392     kwfiles = [f for f in files if _iskwfile(f, repo._link)]
   392     wctx = repo.workingctx()
       
   393     islink = lambda p: 'l' in wctx.fileflags(p)
       
   394     kwfiles = [f for f in files if _iskwfile(f, islink)]
   393     cwd = pats and repo.getcwd() or ''
   395     cwd = pats and repo.getcwd() or ''
   394     kwfstats = not opts.get('ignore') and (('K', kwfiles),) or ()
   396     kwfstats = not opts.get('ignore') and (('K', kwfiles),) or ()
   395     if opts.get('all') or opts.get('ignore'):
   397     if opts.get('all') or opts.get('ignore'):
   396         kwfstats += (('I', [f for f in files if f not in kwfiles]),)
   398         kwfstats += (('I', [f for f in files if f not in kwfiles]),)
   397     for char, filenames in kwfstats:
   399     for char, filenames in kwfstats: