comparison mercurial/commands.py @ 31486:06d3c40fc3e7

graphlog: pass function arguments without expansion It's annoying on Python 3 because keys must be unicode type. Let's stop using **opts expansion when not necessary.
author Yuya Nishihara <yuya@tcha.org>
date Tue, 14 Mar 2017 18:16:13 +0900
parents 3fb2081ef896
children a992caaf0e22
comparison
equal deleted inserted replaced
31485:cad95575dc46 31486:06d3c40fc3e7
3396 if opts.get('follow') and opts.get('rev'): 3396 if opts.get('follow') and opts.get('rev'):
3397 opts['rev'] = [revsetlang.formatspec('reverse(::%lr)', opts.get('rev'))] 3397 opts['rev'] = [revsetlang.formatspec('reverse(::%lr)', opts.get('rev'))]
3398 del opts['follow'] 3398 del opts['follow']
3399 3399
3400 if opts.get('graph'): 3400 if opts.get('graph'):
3401 return cmdutil.graphlog(ui, repo, *pats, **opts) 3401 return cmdutil.graphlog(ui, repo, pats, opts)
3402 3402
3403 revs, expr, filematcher = cmdutil.getlogrevs(repo, pats, opts) 3403 revs, expr, filematcher = cmdutil.getlogrevs(repo, pats, opts)
3404 limit = cmdutil.loglimit(opts) 3404 limit = cmdutil.loglimit(opts)
3405 count = 0 3405 count = 0
3406 3406