Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
20252:1bcf669084bb | 20253:43cfad930d38 |
---|---|
371 "repo": self.reponame, | 371 "repo": self.reponame, |
372 "encoding": encoding.encoding, | 372 "encoding": encoding.encoding, |
373 "motd": motd, | 373 "motd": motd, |
374 "sessionvars": sessionvars, | 374 "sessionvars": sessionvars, |
375 "pathdef": makebreadcrumb(req.url), | 375 "pathdef": makebreadcrumb(req.url), |
376 "style": style, | |
376 }) | 377 }) |
377 return tmpl | 378 return tmpl |
378 | 379 |
379 def archivelist(self, nodeid): | 380 def archivelist(self, nodeid): |
380 allowed = self.configlist("web", "allow_archive") | 381 allowed = self.configlist("web", "allow_archive") |