mercurial/commands.py
changeset 24189 8b4b9ee6001a
parent 24171 9cb1f82a2571
child 24191 8fe5fc8d7b8e
equal deleted inserted replaced
24188:5a7920c4d2ea 24189:8b4b9ee6001a
  4476     specifying custom templates.
  4476     specifying custom templates.
  4477 
  4477 
  4478     Returns 0 on success.
  4478     Returns 0 on success.
  4479 
  4479 
  4480     """
  4480     """
       
  4481     if opts.get('follow') and opts.get('rev'):
       
  4482         opts['rev'] = [revset.formatspec('reverse(::%lr)', opts.get('rev'))]
       
  4483         del opts['follow']
       
  4484 
  4481     if opts.get('graph'):
  4485     if opts.get('graph'):
  4482         return cmdutil.graphlog(ui, repo, *pats, **opts)
  4486         return cmdutil.graphlog(ui, repo, *pats, **opts)
  4483 
  4487 
  4484     revs, expr, filematcher = cmdutil.getlogrevs(repo, pats, opts)
  4488     revs, expr, filematcher = cmdutil.getlogrevs(repo, pats, opts)
  4485     limit = cmdutil.loglimit(opts)
  4489     limit = cmdutil.loglimit(opts)