diff mercurial/hgweb/hgweb_mod.py @ 5833:323b9c55b328

hook: redirect stdout to stderr for ssh and http servers
author Matt Mackall <mpm@selenic.com>
date Fri, 11 Jan 2008 13:06:38 -0600
parents e9f68860d5ed
children dd1998dd6f3b
line wrap: on
line diff
--- 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'