tests: add missing b prefixes in remotefilelog-getflogheads.py
authorAugie Fackler <augie@google.com>
Wed, 16 Jan 2019 10:59:09 -0500
changeset 41253 29996f6c2687
parent 41252 a495435d980e
child 41254 2888d12b80a6
tests: add missing b prefixes in remotefilelog-getflogheads.py # skip-blame just b prefixes Differential Revision: https://phab.mercurial-scm.org/D5603
tests/remotefilelog-getflogheads.py
--- 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'))