diff mercurial/hgweb.py @ 2275:714f4d25a7a9

Fix hgweb.filediff The third argument to hgweb.diff should be a list, not a string. This fixes a bug found by xorAxAx, where hgweb would also show the diff for "README" when you ask for the diff for "Demo/cgi/README".
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Fri, 12 May 2006 21:25:07 -0700
parents 3044a3fdae76
children
line wrap: on
line diff
--- a/mercurial/hgweb.py	Fri May 12 18:39:37 2006 +0200
+++ b/mercurial/hgweb.py	Fri May 12 21:25:07 2006 -0700
@@ -684,7 +684,7 @@
         mf = self.repo.manifest.read(cs[0])
 
         def diff(**map):
-            yield self.diff(p1, n, file)
+            yield self.diff(p1, n, [file])
 
         yield self.t("filediff",
                      file=file,