tests: add missing b prefixes in remotefilelog-getflogheads.py
# skip-blame just b prefixes
Differential Revision: https://phab.mercurial-scm.org/D5603
--- a/tests/remotefilelog-getflogheads.py Wed Jan 16 10:58:31 2019 -0500
+++ b/tests/remotefilelog-getflogheads.py Wed Jan 16 10:59:09 2019 -0500
@@ -9,9 +9,9 @@
cmdtable = {}
command = registrar.command(cmdtable)
-@command('getflogheads',
+@command(b'getflogheads',
[],
- 'path')
+ b'path')
def getflogheads(ui, repo, path):
"""
Extension printing a remotefilelog's heads
@@ -19,13 +19,13 @@
Used for testing purpose
"""
- dest = repo.ui.expandpath('default')
+ dest = repo.ui.expandpath(b'default')
peer = hg.peer(repo, {}, dest)
flogheads = peer.x_rfl_getflogheads(path)
if flogheads:
for head in flogheads:
- ui.write(head + '\n')
+ ui.write(head + b'\n')
else:
- ui.write(_('EMPTY\n'))
+ ui.write(_(b'EMPTY\n'))