comparison mercurial/commands.py @ 35548:b14c8bcfbad9

log: drop unused expr from return value of getlogrevs() Future patches will move some processing of the --follow option out of _makelogrevset(), where the returned 'expr' value will be less consistent with the 'revs'. So let's remove it from the public interface.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 22 Oct 2017 22:49:11 +0900
parents 349bcd7fa670
children dda3cae3c9c5
comparison
equal deleted inserted replaced
35547:b6dbc860570d 35548:b14c8bcfbad9
3408 if opts.get('follow') and opts.get('rev'): 3408 if opts.get('follow') and opts.get('rev'):
3409 opts['rev'] = [revsetlang.formatspec('reverse(::%lr)', opts.get('rev'))] 3409 opts['rev'] = [revsetlang.formatspec('reverse(::%lr)', opts.get('rev'))]
3410 del opts['follow'] 3410 del opts['follow']
3411 3411
3412 repo = scmutil.unhidehashlikerevs(repo, opts.get('rev'), 'nowarn') 3412 repo = scmutil.unhidehashlikerevs(repo, opts.get('rev'), 'nowarn')
3413 revs, expr, filematcher = cmdutil.getlogrevs(repo, pats, opts) 3413 revs, filematcher = cmdutil.getlogrevs(repo, pats, opts)
3414 hunksfilter = None 3414 hunksfilter = None
3415 3415
3416 if opts.get('graph'): 3416 if opts.get('graph'):
3417 if linerange: 3417 if linerange:
3418 raise error.Abort(_('graph not supported with line range patterns')) 3418 raise error.Abort(_('graph not supported with line range patterns'))