this patch permits hgweb to show the deleted files in the changeset diff
# HG changeset patch
# User kreijack@inwind.REMOVEME.it
# Node ID
08b33970007e753f12b2b2f9d0e169981a6e8c3c
# Parent
7369ec5d93f2ffd490a43970edd9adf8d2bbe269
this patch permits hgweb to show the deleted files in the changeset diff
--- a/TODO Wed Jul 06 22:28:35 2005 -0800
+++ b/TODO Wed Jul 06 22:28:50 2005 -0800
@@ -33,7 +33,6 @@
- hgweb: deliver static files (e.g. favicon, stylesheets)
- hgweb personalization: timezone (display/change), display of
features
-- hg export 240 shows -tkmerge (good), hgweb does not (bad).
- some web servers think hgweb.cgi.[di] is a CGI script with old-http://
(use quoting (see foo.d in Core) or document server configurations?)
- link children in hgweb
--- a/mercurial/hgweb.py Wed Jul 06 22:28:35 2005 -0800
+++ b/mercurial/hgweb.py Wed Jul 06 22:28:50 2005 -0800
@@ -208,7 +208,8 @@
date2 = self.date(change2)
c, a, d, u = r.changes(node1, node2)
- c, a, d = map(lambda x: filterfiles(x, files), (c, a, d))
+ if files:
+ c, a, d = map(lambda x: filterfiles(x, files), (c, a, d))
for f in c:
to = r.file(f).read(mmap1[f])
@@ -361,7 +362,7 @@
filenode = hex(mf.get(f, nullid)), file = f))
def diff():
- yield self.diff(p1, n, changes[3])
+ yield self.diff(p1, n, None)
yield self.t('changeset',
diff = diff,