changeset 2900:26c37ebda1bb

hgweb: partially revert 4ec58b157265 The change from self.repo.ui.diffopts() to ui.diffopts() causes a traceback when the diff of a changeset should be displayed in the web interface. Revert to self.repo.ui.diffopts() for now.
author Giorgos Keramidas <keramida@ceid.upatras.gr>
date Mon, 14 Aug 2006 16:06:37 +0300
parents bd29a3067b97
children 9826af4841ef
files mercurial/hgweb/hgweb_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Sun Aug 13 17:03:33 2006 -0700
+++ b/mercurial/hgweb/hgweb_mod.py	Mon Aug 14 16:06:37 2006 +0300
@@ -134,7 +134,7 @@
             modified, added, removed = map(lambda x: filterfiles(files, x),
                                            (modified, added, removed))
 
-        diffopts = ui.diffopts()
+        diffopts = self.repo.ui.diffopts()
         for f in modified:
             to = r.file(f).read(mmap1[f])
             tn = r.file(f).read(mmap2[f])