Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2274:89b15372df18 | 2275:714f4d25a7a9 |
---|---|
682 p1 = cl.parents(n)[0] | 682 p1 = cl.parents(n)[0] |
683 cs = cl.read(n) | 683 cs = cl.read(n) |
684 mf = self.repo.manifest.read(cs[0]) | 684 mf = self.repo.manifest.read(cs[0]) |
685 | 685 |
686 def diff(**map): | 686 def diff(**map): |
687 yield self.diff(p1, n, file) | 687 yield self.diff(p1, n, [file]) |
688 | 688 |
689 yield self.t("filediff", | 689 yield self.t("filediff", |
690 file=file, | 690 file=file, |
691 filenode=hex(mf.get(file, nullid)), | 691 filenode=hex(mf.get(file, nullid)), |
692 node=changeset, | 692 node=changeset, |