Mercurial > hg-stable
changeset 36211:8173eeb69fb3
tests: port fakemergerecord to python3
Differential Revision: https://phab.mercurial-scm.org/D2248
author | Augie Fackler <augie@google.com> |
---|---|
date | Tue, 13 Feb 2018 18:49:06 -0500 |
parents | 21f4697ef789 |
children | b42c47b8c9d4 |
files | tests/fakemergerecord.py |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/fakemergerecord.py Tue Feb 13 18:48:47 2018 -0500 +++ b/tests/fakemergerecord.py Tue Feb 13 18:49:06 2018 -0500 @@ -12,15 +12,15 @@ cmdtable = {} command = registrar.command(cmdtable) -@command('fakemergerecord', - [('X', 'mandatory', None, 'add a fake mandatory record'), - ('x', 'advisory', None, 'add a fake advisory record')], '') +@command(b'fakemergerecord', + [(b'X', b'mandatory', None, b'add a fake mandatory record'), + (b'x', b'advisory', None, b'add a fake advisory record')], '') def fakemergerecord(ui, repo, *pats, **opts): with repo.wlock(): ms = merge.mergestate.read(repo) records = ms._makerecords() if opts.get('mandatory'): - records.append(('X', 'mandatory record')) + records.append((b'X', b'mandatory record')) if opts.get('advisory'): - records.append(('x', 'advisory record')) + records.append((b'x', b'advisory record')) ms._writerecords(records)