Details
Details
- Reviewers
durin42 - Group Reviewers
hg-reviewers - Commits
- rHG35fb3367f72d: py3: use pycompat.bytestr() instead of str()
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
( )
durin42 |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
In D1795#31282, @yuja wrote:bytes() or "%d" is preferred. Can you send a follow up?
I am not sure which one needs to be changed.
mercurial/verify.py | ||
---|---|---|
110 | Looks like we cannot use "%d" here as None can be possible value also and test-treemanifest.t has tests with None as a part of output. |
mercurial/verify.py | ||
---|---|---|
110 | Ugh, it smells, but let's just leave it for now. |
at = -1 | at = -1 | ||||
atbranch = 'default' | atbranch = 'default' | ||||
nodeids = [] | nodeids = [] | ||||
id = 0 | id = 0 | ||||
ui.progress(_('building'), id, unit=_('revisions'), total=total) | ui.progress(_('building'), id, unit=_('revisions'), total=total) | ||||
for type, data in dagparser.parsedag(text): | for type, data in dagparser.parsedag(text): | ||||
if type == 'n': | if type == 'n': | ||||
ui.note(('node %s\n' % str(data))) | ui.note(('node %s\n' % pycompat.bytestr(data))) | ||||
id, ps = data | id, ps = data | ||||
files = [] | files = [] | ||||
filecontent = {} | filecontent = {} | ||||
p2 = None | p2 = None | ||||
if mergeable_file: | if mergeable_file: | ||||
fn = "mf" | fn = "mf" |
bytes()