diff -r a07314472a80 -r 18b5b2c9d921 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':