Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 31494:a992caaf0e22
py3: convert log opts to bytes-key dict
Now simple log command works.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Tue, 14 Mar 2017 18:23:59 +0900 |
parents | 06d3c40fc3e7 |
children | 2abba5068aa1 |
comparison
equal
deleted
inserted
replaced
31493:06d3c40fc3e7 | 31494: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'): |