D4594: py3: call hgweb.hgweb() with bytes values
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Fri Sep 14 21:43:11 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
skip-blame because just b'' prefixes
====================================
I believe this should fix some tests.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D4594
AFFECTED FILES
tests/test-extension.t
tests/test-hgweb-commands.t
tests/test-mq.t
tests/test-newercgi.t
tests/test-oldcgi.t
tests/test-push-cgi.t
CHANGE DETAILS
diff --git a/tests/test-push-cgi.t b/tests/test-push-cgi.t
--- a/tests/test-push-cgi.t
+++ b/tests/test-push-cgi.t
@@ -21,7 +21,7 @@
> from mercurial import demandimport; demandimport.enable()
> from mercurial.hgweb import hgweb
> from mercurial.hgweb import wsgicgi
- > application = hgweb('.', 'test repository')
+ > application = hgweb(b'.', b'test repository')
> wsgicgi.launch(application)
> HGWEB
$ chmod 755 hgweb.cgi
diff --git a/tests/test-oldcgi.t b/tests/test-oldcgi.t
--- a/tests/test-oldcgi.t
+++ b/tests/test-oldcgi.t
@@ -14,7 +14,7 @@
> # sys.path.insert(0, "/path/to/python/lib") # if not a system-wide install
> from mercurial import hgweb
>
- > h = hgweb.hgweb("test", "Empty test repository")
+ > h = hgweb.hgweb(b"test", b"Empty test repository")
> h.run()
> HGWEB
diff --git a/tests/test-newercgi.t b/tests/test-newercgi.t
--- a/tests/test-newercgi.t
+++ b/tests/test-newercgi.t
@@ -16,7 +16,7 @@
> from mercurial.hgweb import hgweb
> from mercurial.hgweb import wsgicgi
>
- > application = hgweb("test", "Empty test repository")
+ > application = hgweb(b"test", b"Empty test repository")
> wsgicgi.launch(application)
> HGWEB
diff --git a/tests/test-mq.t b/tests/test-mq.t
--- a/tests/test-mq.t
+++ b/tests/test-mq.t
@@ -1565,7 +1565,7 @@
> from mercurial.hgweb import wsgicgi
> import cgitb
> cgitb.enable()
- > app = hgweb('.', 'test')
+ > app = hgweb(b'.', b'test')
> wsgicgi.launch(app)
> HGWEB
$ . "$TESTDIR/cgienv"
diff --git a/tests/test-hgweb-commands.t b/tests/test-hgweb-commands.t
--- a/tests/test-hgweb-commands.t
+++ b/tests/test-hgweb-commands.t
@@ -2276,7 +2276,7 @@
> from mercurial import demandimport; demandimport.enable()
> from mercurial.hgweb import hgweb
> from mercurial.hgweb import wsgicgi
- > app = hgweb('.', 'test')
+ > app = hgweb(b'.', b'test')
> wsgicgi.launch(app)
> HGWEB
$ . "$TESTDIR/cgienv"
diff --git a/tests/test-extension.t b/tests/test-extension.t
--- a/tests/test-extension.t
+++ b/tests/test-extension.t
@@ -140,7 +140,7 @@
> from mercurial import demandimport; demandimport.enable()
> from mercurial.hgweb import hgweb
> from mercurial.hgweb import wsgicgi
- > application = hgweb('.', 'test repo')
+ > application = hgweb(b'.', b'test repo')
> wsgicgi.launch(application)
> EOF
$ . "$TESTDIR/cgienv"
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list