comparison 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
comparison
equal deleted inserted replaced
24300:a07314472a80 24301:18b5b2c9d921
2220 return bad, forgot 2220 return bad, forgot
2221 2221
2222 def files(ui, ctx, m, fm, fmt): 2222 def files(ui, ctx, m, fm, fmt):
2223 rev = ctx.rev() 2223 rev = ctx.rev()
2224 ret = 1 2224 ret = 1
2225 ds = ctx._repo.dirstate 2225 ds = ctx.repo().dirstate
2226 2226
2227 for f in ctx.matches(m): 2227 for f in ctx.matches(m):
2228 if rev is None and ds[f] == 'r': 2228 if rev is None and ds[f] == 'r':
2229 continue 2229 continue
2230 fm.startitem() 2230 fm.startitem()