--- a/mercurial/hgweb/hgweb_mod.py Fri Jan 11 06:07:43 2008 +0300
+++ b/mercurial/hgweb/hgweb_mod.py Fri Jan 11 13:06:38 2008 -0600
@@ -8,7 +8,7 @@
import os, mimetypes, re, mimetools, cStringIO
from mercurial.node import *
-from mercurial import mdiff, ui, hg, util, archival, patch
+from mercurial import mdiff, ui, hg, util, archival, patch, hook
from mercurial import revlog, templater
from common import ErrorResponse, get_mtime, style_map, paritygen, get_contact
from request import wsgirequest
@@ -85,6 +85,7 @@
else:
self.repo = repo
+ hook.redirect(True)
self.mtime = -1
self.reponame = name
self.archives = 'zip', 'gz', 'bz2'