Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/webcommands.py @ 18408:f332a64fef51
hgweb: introduction a filerevnav subclass
It'll be use to implement the file specific behavior.
author | Pierre-Yves David <pierre-yves.david@logilab.fr> |
---|---|
date | Mon, 14 Jan 2013 16:55:48 +0100 |
parents | 1da84a6b136a |
children | e3f5cef11d6a |
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py Thu Jan 10 19:09:32 2013 +0100 +++ b/mercurial/hgweb/webcommands.py Mon Jan 14 16:55:48 2013 +0100 @@ -772,7 +772,7 @@ yield e nodefunc = lambda x: fctx.filectx(fileid=x) - nav = webutil.revnav(nodefunc).gen(end - 1, revcount, count) + nav = webutil.filerevnav(nodefunc).gen(end - 1, revcount, count) return tmpl("filelog", file=f, node=fctx.hex(), nav=nav, entries=lambda **x: entries(latestonly=False, **x), latestentry=lambda **x: entries(latestonly=True, **x),