mercurial/cmdutil.py
changeset 24301 18b5b2c9d921
parent 24275 e1cb460a3524
child 24306 6ddc86eedc3b
--- 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':