Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHGc1628a5eac87: py3: use pycompat.bytestr instead of str
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
| hg-reviewers |
| Lint Skipped |
| Unit Tests Skipped |
| else: | else: | ||||
| hexfn = rootfm.hexfunc | hexfn = rootfm.hexfunc | ||||
| formatrev = formathex = pycompat.bytestr | formatrev = formathex = pycompat.bytestr | ||||
| opmap = [('user', ' ', lambda x: x.fctx.user(), ui.shortuser), | opmap = [('user', ' ', lambda x: x.fctx.user(), ui.shortuser), | ||||
| ('number', ' ', lambda x: x.fctx.rev(), formatrev), | ('number', ' ', lambda x: x.fctx.rev(), formatrev), | ||||
| ('changeset', ' ', lambda x: hexfn(x.fctx.node()), formathex), | ('changeset', ' ', lambda x: hexfn(x.fctx.node()), formathex), | ||||
| ('date', ' ', lambda x: x.fctx.date(), util.cachefunc(datefunc)), | ('date', ' ', lambda x: x.fctx.date(), util.cachefunc(datefunc)), | ||||
| ('file', ' ', lambda x: x.fctx.path(), str), | ('file', ' ', lambda x: x.fctx.path(), pycompat.bytestr), | ||||
| ('line_number', ':', lambda x: x.lineno, str), | ('line_number', ':', lambda x: x.lineno, pycompat.bytestr), | ||||
| ] | ] | ||||
| fieldnamemap = {'number': 'rev', 'changeset': 'node'} | fieldnamemap = {'number': 'rev', 'changeset': 'node'} | ||||
| if (not opts.get('user') and not opts.get('changeset') | if (not opts.get('user') and not opts.get('changeset') | ||||
| and not opts.get('date') and not opts.get('file')): | and not opts.get('date') and not opts.get('file')): | ||||
| opts['number'] = True | opts['number'] = True | ||||
| linenumber = opts.get('line_number') is not None | linenumber = opts.get('line_number') is not None | ||||