diff mercurial/hgweb/webutil.py @ 7311:de9c87fe1620

hgweb: move another utility function into the webutil module
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Mon, 03 Nov 2008 20:31:53 +0100
parents bd522d09d5e3
children 55651328dfcc
line wrap: on
line diff
--- a/mercurial/hgweb/webutil.py	Mon Nov 03 20:41:48 2008 +0100
+++ b/mercurial/hgweb/webutil.py	Mon Nov 03 20:31:53 2008 +0100
@@ -143,6 +143,12 @@
 
     return fctx
 
+def listfilediffs(tmpl, files, node, max):
+    for f in files[:max]:
+        yield tmpl('filedifflink', node=hex(node), file=f)
+    if len(files) > max:
+        yield tmpl('fileellipses')
+
 def diffs(repo, tmpl, ctx, files, parity):
 
     def countgen():