Patchwork [03,of,20] hgweb: add oldestentry as the opposite for latestentry to changelog

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 9, 2013, 6:57 p.m.
Message ID <b1dddc5714f61caf7eb6.1376074648@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2109/
State Changes Requested
Headers show

Comments

Alexander Plavin - Aug. 9, 2013, 6:57 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1376045644 -14400
#      Fri Aug 09 14:54:04 2013 +0400
# Node ID b1dddc5714f61caf7eb68ca300e62ad3715c4271
# Parent  952b2d0f6f1eeed1b2cd40214097b44e2d72b256
hgweb: add oldestentry as the opposite for latestentry to changelog

Patch

diff -r 952b2d0f6f1e -r b1dddc5714f6 mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Fri Aug 09 07:22:36 2013 +0400
+++ b/mercurial/hgweb/webcommands.py	Fri Aug 09 14:54:04 2013 +0400
@@ -310,11 +310,12 @@ 
 
     entries = list(changelist())
     latestentry = entries[:1]
+    oldestentry = entries[-1:]
 
     return tmpl(shortlog and 'shortlog' or 'changelog', changenav=changenav,
                 node=ctx.hex(), rev=pos, changesets=count,
                 entries=entries,
-                latestentry=latestentry,
+                latestentry=latestentry, oldestentry=oldestentry,
                 archives=web.archivelist("tip"), revcount=revcount,
                 morevars=morevars, lessvars=lessvars, query=query)