diff mercurial/hgweb/hgweb_mod.py @ 20253:43cfad930d38

hgweb: avoid invalid infinity scroll request when overwritten web.style Infinity scroll is broken when you override the web.style in the following ways: $ hg --config='web.style=gitweb' serve $ open http://localhost:8080/shortlog?style=paper ajaxScrollInit should use http://localhost:8080/shortlog/%next%?style=paper. however, http://localhost:8080/shortlog/%next% is used actually. It is missing style parameter. This patch add style parameter to request url.
author Takumi IINO <trot.thunder@gmail.com>
date Wed, 08 Jan 2014 00:35:03 +0900
parents 507919a34c5b
children 49f2d5644f04
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Wed Jan 08 00:26:55 2014 +0900
+++ b/mercurial/hgweb/hgweb_mod.py	Wed Jan 08 00:35:03 2014 +0900
@@ -373,6 +373,7 @@
                                              "motd": motd,
                                              "sessionvars": sessionvars,
                                              "pathdef": makebreadcrumb(req.url),
+                                             "style": style,
                                             })
         return tmpl