Fix hgweb.filediff
authorAlexis S. L. Carvalho <alexis@cecm.usp.br>
Fri, 12 May 2006 21:25:07 -0700
changeset 2275 714f4d25a7a9
parent 2274 89b15372df18
child 2276 766c3c852786
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".
mercurial/hgweb.py
--- 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,