Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_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 | 1dba26575dba |
children | 3d77e567de56 |
comparison
equal
deleted
inserted
replaced
20252:1bcf669084bb | 20253:43cfad930d38 |
---|---|
446 "motd": motd, | 446 "motd": motd, |
447 "url": url, | 447 "url": url, |
448 "logourl": logourl, | 448 "logourl": logourl, |
449 "logoimg": logoimg, | 449 "logoimg": logoimg, |
450 "staticurl": staticurl, | 450 "staticurl": staticurl, |
451 "sessionvars": sessionvars}) | 451 "sessionvars": sessionvars, |
452 "style": style, | |
453 }) | |
452 return tmpl | 454 return tmpl |
453 | 455 |
454 def updatereqenv(self, env): | 456 def updatereqenv(self, env): |
455 if self._baseurl is not None: | 457 if self._baseurl is not None: |
456 name, port, path = geturlcgivars(self._baseurl, env['SERVER_PORT']) | 458 name, port, path = geturlcgivars(self._baseurl, env['SERVER_PORT']) |