[PATCH] Fix hgweb.filediff

Alexis S. L. Carvalho alexis at cecm.usp.br
Fri May 12 19:58:30 CDT 2006


# HG changeset patch
# User Alexis S. L. Carvalho <alexis at cecm.usp.br>
# Node ID 3ee009369e9acca5306948d3b2ed99f810796077
# Parent  ba7afc7dd9013e2805098d19a6371f12d916fe25
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".

diff -r ba7afc7dd901 -r 3ee009369e9a mercurial/hgweb.py
--- a/mercurial/hgweb.py	Wed May 10 16:55:55 2006 -0500
+++ b/mercurial/hgweb.py	Fri May 12 21:48:13 2006 -0300
@@ -684,7 +684,7 @@ class hgweb(object):
         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,


More information about the Mercurial mailing list