--- a/mercurial/hgweb/server.py Thu Jan 31 14:44:00 2008 -0600
+++ b/mercurial/hgweb/server.py Tue Jan 22 22:13:29 2008 +0100
@@ -206,7 +206,9 @@
myui = repo.ui
address = myui.config("web", "address", "")
port = int(myui.config("web", "port", 8000))
- prefix = myui.config("web", "prefix", "").rstrip("/")
+ prefix = myui.config("web", "prefix", "")
+ if prefix:
+ prefix = "/" + prefix.strip("/")
use_ipv6 = myui.configbool("web", "ipv6")
webdir_conf = myui.config("web", "webdir_conf")
ssl_cert = myui.config("web", "certificate")