Mercurial > hg
changeset 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 | ce847603040b |
children | e1cb460a3524 |
files | mercurial/commands.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/commands.py Tue Mar 10 13:56:05 2015 -0700 +++ b/mercurial/commands.py Sun Mar 08 16:45:29 2015 -0400 @@ -3268,7 +3268,7 @@ fmt = '%s' + end m = scmutil.match(ctx, pats, opts) - ds = repo.dirstate + ds = ctx._repo.dirstate for f in ctx.matches(m): if rev is None and ds[f] == 'r': continue