changeset 38450:afa96dd5a483

py3: add b'' prefixes in tests/test-obsolete-divergent.t This makes the test pass on Python 3. # skip-blame because just b'' prefixes. Differential Revision: https://phab.mercurial-scm.org/D3832
author Pulkit Goyal <7895pulkit@gmail.com>
date Mon, 25 Jun 2018 15:54:56 +0530
parents a0c3d83d5f04
children 5b04a0c30f3f
files contrib/python3-whitelist tests/test-obsolete-divergent.t
diffstat 2 files changed, 6 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/python3-whitelist	Mon Jun 25 01:07:23 2018 +0530
+++ b/contrib/python3-whitelist	Mon Jun 25 15:54:56 2018 +0530
@@ -338,6 +338,7 @@
 test-obsolete-changeset-exchange.t
 test-obsolete-checkheads.t
 test-obsolete-distributed.t
+test-obsolete-divergent.t
 test-obsolete-tag-cache.t
 test-pager.t
 test-parents.t
--- a/tests/test-obsolete-divergent.t	Mon Jun 25 01:07:23 2018 +0530
+++ b/tests/test-obsolete-divergent.t	Mon Jun 25 15:54:56 2018 +0530
@@ -704,16 +704,16 @@
   > from mercurial import registrar, scmutil
   > cmdtable = {}
   > command = registrar.command(cmdtable)
-  > @command('cleanup')
+  > @command(b'cleanup')
   > def cleanup(ui, repo):
   >     def node(expr):
   >         unfi = repo.unfiltered()
   >         rev = unfi.revs(expr).first()
   >         return unfi.changelog.node(rev)
-  >     with repo.wlock(), repo.lock(), repo.transaction('delayedstrip'):
-  >         mapping = {node('desc(B1)'): [node('desc(B3)')],
-  >                    node('desc(B3)'): [node('desc(B4)')]}
-  >         scmutil.cleanupnodes(repo, mapping, 'test')
+  >     with repo.wlock(), repo.lock(), repo.transaction(b'delayedstrip'):
+  >         mapping = {node(b'desc(B1)'): [node(b'desc(B3)')],
+  >                    node(b'desc(B3)'): [node(b'desc(B4)')]}
+  >         scmutil.cleanupnodes(repo, mapping, b'test')
   > EOF
 
   $ rm .hg/localtags