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

Alexander Plavin alexander at plav.in
Fri Aug 9 13:57:28 CDT 2013


# HG changeset patch
# User Alexander Plavin <alexander at 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

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)
 


More information about the Mercurial-devel mailing list