mercurial/commands.py
changeset 2573 82e3b2966862
parent 2567 2748253b49c2
child 2574 78c2903fcabe
equal deleted inserted replaced
2567:2748253b49c2 2573:82e3b2966862
   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