D2500: py3: add b'' prefixes in tests/test-rebase-scenario-global.t

2018-03-01 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG23fce34de96e: py3: add b'' prefixes in 
tests/test-rebase-scenario-global.t (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2500?vs=6200&id=6232

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

AFFECTED FILES
  tests/test-rebase-scenario-global.t

CHANGE DETAILS

diff --git a/tests/test-rebase-scenario-global.t 
b/tests/test-rebase-scenario-global.t
--- a/tests/test-rebase-scenario-global.t
+++ b/tests/test-rebase-scenario-global.t
@@ -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 

D2500: py3: add b'' prefixes in tests/test-rebase-scenario-global.t

2018-02-28 Thread pulkit (Pulkit Goyal)
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  1. skip-blame because just b'' prefixes

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  tests/test-rebase-scenario-global.t

CHANGE DETAILS

diff --git a/tests/test-rebase-scenario-global.t 
b/tests/test-rebase-scenario-global.t
--- a/tests/test-rebase-scenario-global.t
+++ b/tests/test-rebase-scenario-global.t
@@ -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