Patchwork D5603: tests: add missing b prefixes in remotefilelog-getflogheads.py

login
register
mail settings
Submitter phabricator
Date Jan. 16, 2019, 5:21 p.m.
Message ID <88e8cb5382ed962f61ea451a0e73e51e@localhost.localdomain>
Download mbox | patch
Permalink /patch/37821/
State Not Applicable
Headers show

Comments

phabricator - Jan. 16, 2019, 5:21 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG29996f6c2687: tests: add missing b prefixes in remotefilelog-getflogheads.py (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D5603?vs=13263&id=13283

REVISION DETAIL
  https://phab.mercurial-scm.org/D5603

AFFECTED FILES
  tests/remotefilelog-getflogheads.py

CHANGE DETAILS




To: durin42, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/tests/remotefilelog-getflogheads.py b/tests/remotefilelog-getflogheads.py
--- a/tests/remotefilelog-getflogheads.py
+++ b/tests/remotefilelog-getflogheads.py
@@ -9,23 +9,23 @@ 
 cmdtable = {}
 command = registrar.command(cmdtable)
 
-@command('getflogheads',
+@command(b'getflogheads',
          [],
-         'path')
+         b'path')
 def getflogheads(ui, repo, path):
     """
     Extension printing a remotefilelog's heads
 
     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'))