comparison mercurial/commands.py @ 22591:9fe33afc00b4

files: actually filter out removed files 'hg files' makes an attempt to filter out removed files, but that doesn't work because repo.dirstate[f] returns lowercase 'r', not uppercase.
author Siddharth Agarwal <sid0@fb.com>
date Tue, 30 Sep 2014 15:45:48 -0700
parents c3c3dd31fe1c
children ff3ccc592af4
comparison
equal deleted inserted replaced
22590:d4c972b97fee 22591:9fe33afc00b4
3218 fm = ui.formatter('files', opts) 3218 fm = ui.formatter('files', opts)
3219 fmt = '%s' + end 3219 fmt = '%s' + end
3220 3220
3221 m = scmutil.match(ctx, pats, opts) 3221 m = scmutil.match(ctx, pats, opts)
3222 for f in ctx.walk(m): 3222 for f in ctx.walk(m):
3223 if rev is None and repo.dirstate[f] in 'R?!': 3223 if rev is None and repo.dirstate[f] in 'r?!':
3224 continue 3224 continue
3225 fm.startitem() 3225 fm.startitem()
3226 if ui.verbose: 3226 if ui.verbose:
3227 fc = ctx[f] 3227 fc = ctx[f]
3228 fm.write('size flags', '% 10d % 1s ', fc.size(), fc.flags()) 3228 fm.write('size flags', '% 10d % 1s ', fc.size(), fc.flags())