Fix hgweb's patch display in changeset view.
authorThomas Arendsen Hein <thomas@intevation.de>
Fri, 18 Aug 2006 13:06:38 +0200
changeset 2927 ee6ed2b29e1a
parent 2899 8743188f4d2e
child 2928 27da6dddd0ee
Fix hgweb's patch display in changeset view.
mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Tue Aug 15 23:17:06 2006 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Fri Aug 18 13:06:38 2006 +0200
@@ -134,7 +134,7 @@
             modified, added, removed = map(lambda x: filterfiles(files, x),
                                            (modified, added, removed))
 
-        diffopts = patch.diffopts(ui)
+        diffopts = patch.diffopts(self.repo.ui)
         for f in modified:
             to = r.file(f).read(mmap1[f])
             tn = r.file(f).read(mmap2[f])