py3: add b'' prefixes in tests/test-rebase-scenario-global.t
authorPulkit Goyal <7895pulkit@gmail.com>
Wed, 28 Feb 2018 21:43:35 +0530
changeset 36476 263368dc143f
parent 36475 7b84b737352d
child 36477 035b77bf01d2
py3: add b'' prefixes in tests/test-rebase-scenario-global.t # skip-blame because just b'' prefixes Differential Revision: https://phab.mercurial-scm.org/D2500
tests/test-rebase-scenario-global.t
--- a/tests/test-rebase-scenario-global.t	Wed Feb 28 21:42:37 2018 +0530
+++ b/tests/test-rebase-scenario-global.t	Wed Feb 28 21:43:35 2018 +0530
@@ -954,14 +954,14 @@
   > def _rebase(orig, ui, repo, *args, **kwargs):
   >     with repo.wlock():
   >         with repo.lock():
-  >             with repo.transaction('wrappedrebase'):
+  >             with repo.transaction(b'wrappedrebase'):
   >                 return orig(ui, repo, *args, **kwargs)
   > def wraprebase(loaded):
   >     assert loaded
-  >     rebasemod = extensions.find('rebase')
-  >     extensions.wrapcommand(rebasemod.cmdtable, 'rebase', _rebase)
+  >     rebasemod = extensions.find(b'rebase')
+  >     extensions.wrapcommand(rebasemod.cmdtable, b'rebase', _rebase)
   > def extsetup(ui):
-  >     extensions.afterloaded('rebase', wraprebase)
+  >     extensions.afterloaded(b'rebase', wraprebase)
   > EOF
 
   $ cat >> .hg/hgrc <<EOF