Mercurial > hg
comparison mercurial/commands.py @ 24274:9640820bc957
files: use ctx object to access dirstate
This allows the cmdutil method to not need to be passed the repo as well as the
ctx.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sun, 08 Mar 2015 16:45:29 -0400 |
parents | 093e8a5e995f |
children | e1cb460a3524 |
comparison
equal
deleted
inserted
replaced
24273:ce847603040b | 24274:9640820bc957 |
---|---|
3266 end = '\0' | 3266 end = '\0' |
3267 fm = ui.formatter('files', opts) | 3267 fm = ui.formatter('files', opts) |
3268 fmt = '%s' + end | 3268 fmt = '%s' + end |
3269 | 3269 |
3270 m = scmutil.match(ctx, pats, opts) | 3270 m = scmutil.match(ctx, pats, opts) |
3271 ds = repo.dirstate | 3271 ds = ctx._repo.dirstate |
3272 for f in ctx.matches(m): | 3272 for f in ctx.matches(m): |
3273 if rev is None and ds[f] == 'r': | 3273 if rev is None and ds[f] == 'r': |
3274 continue | 3274 continue |
3275 fm.startitem() | 3275 fm.startitem() |
3276 if ui.verbose: | 3276 if ui.verbose: |