mercurial/commands.py
changeset 2574 78c2903fcabe
parent 2572 b13a98bd078e
parent 2573 82e3b2966862
child 2579 0875cda033fd
equal deleted inserted replaced
2572:b13a98bd078e 2574:78c2903fcabe
   763     if not opts['user'] and not opts['changeset'] and not opts['date']:
   763     if not opts['user'] and not opts['changeset'] and not opts['date']:
   764         opts['number'] = 1
   764         opts['number'] = 1
   765 
   765 
   766     ctx = repo.changectx(opts['rev'] or repo.dirstate.parents()[0])
   766     ctx = repo.changectx(opts['rev'] or repo.dirstate.parents()[0])
   767 
   767 
   768     for src, abs, rel, exact in walk(repo, pats, opts, node=node):
   768     for src, abs, rel, exact in walk(repo, pats, opts, node=ctx.node()):
   769         fctx = ctx.filectx(abs)
   769         fctx = ctx.filectx(abs)
   770         if not opts['text'] and util.binary(fctx.data()):
   770         if not opts['text'] and util.binary(fctx.data()):
   771             ui.write(_("%s: binary file\n") % ((pats and rel) or abs))
   771             ui.write(_("%s: binary file\n") % ((pats and rel) or abs))
   772             continue
   772             continue
   773 
   773