This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: compatibility of hgweb.cgi template with Python 3
ClosedPublic

Authored by haraldkl on Sep 2 2020, 9:16 AM.

Details

Summary

When running Mercurial on Python 3 hgweb expects the config variable to be a
bytestring.
The solution proposed by Anton Shestakov is to use a byteprefix to the literal
string defined cgi script as provided in this patch for hgweb.cgi,
contrib/hgweb.fcgi and contrib/hgweb.wsgi.
I am not sure whether this covers all relevant templates, but I couldn't find
others.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

haraldkl created this revision.Sep 2 2020, 9:16 AM
pulkit accepted this revision.Sep 2 2020, 12:04 PM
This revision is now accepted and ready to land.Sep 2 2020, 12:04 PM