Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
18407:50dc5b244474 | 18408:f332a64fef51 |
---|---|
770 "branches": webutil.nodebranchdict(repo, iterfctx)}) | 770 "branches": webutil.nodebranchdict(repo, iterfctx)}) |
771 for e in reversed(l): | 771 for e in reversed(l): |
772 yield e | 772 yield e |
773 | 773 |
774 nodefunc = lambda x: fctx.filectx(fileid=x) | 774 nodefunc = lambda x: fctx.filectx(fileid=x) |
775 nav = webutil.revnav(nodefunc).gen(end - 1, revcount, count) | 775 nav = webutil.filerevnav(nodefunc).gen(end - 1, revcount, count) |
776 return tmpl("filelog", file=f, node=fctx.hex(), nav=nav, | 776 return tmpl("filelog", file=f, node=fctx.hex(), nav=nav, |
777 entries=lambda **x: entries(latestonly=False, **x), | 777 entries=lambda **x: entries(latestonly=False, **x), |
778 latestentry=lambda **x: entries(latestonly=True, **x), | 778 latestentry=lambda **x: entries(latestonly=True, **x), |
779 revcount=revcount, morevars=morevars, lessvars=lessvars) | 779 revcount=revcount, morevars=morevars, lessvars=lessvars) |
780 | 780 |