diff mercurial/cmdutil.py @ 24301:18b5b2c9d921

files: replace 'ctx._repo' with 'ctx.repo()'
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 12 Mar 2015 22:55:35 -0400
parents e1cb460a3524
children 6ddc86eedc3b
line wrap: on
line diff
--- 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':