From 51dee7bc7d5f0fd0c4b7482cafd2f735ca036483 Mon Sep 17 00:00:00 2001 From: Matt Harbison Date: Sun, 8 Mar 2015 16:45:29 -0400 Subject: [PATCH] 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. --- mercurial/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mercurial/commands.py b/mercurial/commands.py index f0490e37d2..dbe3caac59 100644 --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3268,7 +3268,7 @@ def files(ui, repo, *pats, **opts): 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