mercurial/commands.py
changeset 31487 a992caaf0e22
parent 31486 06d3c40fc3e7
child 31534 2abba5068aa1
equal deleted inserted replaced
31486:06d3c40fc3e7 31487:a992caaf0e22
  3391     specifying custom templates.
  3391     specifying custom templates.
  3392 
  3392 
  3393     Returns 0 on success.
  3393     Returns 0 on success.
  3394 
  3394 
  3395     """
  3395     """
       
  3396     opts = pycompat.byteskwargs(opts)
  3396     if opts.get('follow') and opts.get('rev'):
  3397     if opts.get('follow') and opts.get('rev'):
  3397         opts['rev'] = [revsetlang.formatspec('reverse(::%lr)', opts.get('rev'))]
  3398         opts['rev'] = [revsetlang.formatspec('reverse(::%lr)', opts.get('rev'))]
  3398         del opts['follow']
  3399         del opts['follow']
  3399 
  3400 
  3400     if opts.get('graph'):
  3401     if opts.get('graph'):