mercurial/hgweb.py
changeset 645 a55048b2ae3a
parent 635 85e2209d401c
child 688 b50cd98bb7e4
--- 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,