Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hgweb-commands.t @ 35654:59c842a3d1e1
hgweb: remove unused second argument of nextPageVarGet()
nextPageVarGet is a function that's used in ajaxScrollInit() to produce URL of
the next page. Before f84b01257e06, its second argument previousVal was a
number on /graph pages, and the code was simply adding 60 to it and returning
the resulting value. Now previousVal can only be a string containing changeset
hash, which can't be used the same way (and in fact isn't used in any way).
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Mon, 15 Jan 2018 19:44:18 +0800 |
parents | 45a816361926 |
children | 1d118f9f4f57 |
line wrap: on
line diff
--- a/tests/test-hgweb-commands.t Sun Jan 14 20:06:56 2018 -0800 +++ b/tests/test-hgweb-commands.t Mon Jan 15 19:44:18 2018 +0800 @@ -816,7 +816,7 @@ ajaxScrollInit( '/shortlog/%next%', '', <!-- NEXTHASH - function (htmlText, previousVal) { + function (htmlText) { var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); return m ? m[1] : null; }, @@ -1837,7 +1837,7 @@ ajaxScrollInit( '/graph/%next%?graphtop=cad8025a2e87f88c06259790adfa15acb4080123&style=gitweb', '', <!-- NEXTHASH - function (htmlText, previousVal) { + function (htmlText) { var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); return m ? m[1] : null; },