changeset 38596:1fad808f2a6b

py3: byte-stringify literals in hook script in test-bundle.t # skip-blame just some b''
author Yuya Nishihara <yuya@tcha.org>
date Sun, 08 Jul 2018 17:37:05 +0900
parents f8b46245b26a
children afef1e362d65
files tests/test-bundle.t
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-bundle.t	Sun Jul 08 17:17:54 2018 +0900
+++ b/tests/test-bundle.t	Sun Jul 08 17:37:05 2018 +0900
@@ -339,20 +339,20 @@
   > from __future__ import absolute_import
   > 
   > def showtip(ui, repo, hooktype, **kwargs):
-  >     ui.warn('%s: %s\n' % (hooktype, repo['tip'].hex()[:12]))
+  >     ui.warn(b'%s: %s\n' % (hooktype, repo[b'tip'].hex()[:12]))
   > 
   > def reposetup(ui, repo):
   >     # this confirms (and ensures) that (empty) 00changelog.i
   >     # before streamclone is already cached as repo.changelog
-  >     ui.setconfig('hooks', 'pretxnopen.showtip', showtip)
+  >     ui.setconfig(b'hooks', b'pretxnopen.showtip', showtip)
   > 
   >     # this confirms that streamclone-ed changes are visible to
   >     # in-process procedures before closing transaction
-  >     ui.setconfig('hooks', 'pretxnclose.showtip', showtip)
+  >     ui.setconfig(b'hooks', b'pretxnclose.showtip', showtip)
   > 
   >     # this confirms that streamclone-ed changes are still visible
   >     # after closing transaction
-  >     ui.setconfig('hooks', 'txnclose.showtip', showtip)
+  >     ui.setconfig(b'hooks', b'txnclose.showtip', showtip)
   > EOF
   $ cat >> $HGRCPATH <<EOF
   > [extensions]