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

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Jan 16 12:21:25 EST 2019


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

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)
 
- at command('getflogheads',
+ at 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'))



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


More information about the Mercurial-devel mailing list