files: replace 'ctx._repo' with 'ctx.repo()'
authorMatt Harbison <matt_harbison@yahoo.com>
Thu, 12 Mar 2015 22:55:35 -0400
changeset 24301 18b5b2c9d921
parent 24300 a07314472a80
child 24302 6e092ea2eff1
files: replace 'ctx._repo' with 'ctx.repo()'
mercurial/cmdutil.py
--- a/mercurial/cmdutil.py	Thu Mar 12 22:54:53 2015 -0400
+++ b/mercurial/cmdutil.py	Thu Mar 12 22:55:35 2015 -0400
@@ -2222,7 +2222,7 @@
 def files(ui, ctx, m, fm, fmt):
     rev = ctx.rev()
     ret = 1
-    ds = ctx._repo.dirstate
+    ds = ctx.repo().dirstate
 
     for f in ctx.matches(m):
         if rev is None and ds[f] == 'r':