httprepo: send URL redirection notices to stderr (issue2828)
authorMatt Mackall <mpm@selenic.com>
Tue, 24 May 2011 17:16:31 -0500
changeset 14428 f0c43c63f742
parent 14427 9d4cabd189df
child 14429 c4c5e3802e9c
httprepo: send URL redirection notices to stderr (issue2828)
mercurial/httprepo.py
--- a/mercurial/httprepo.py	Tue May 24 19:17:22 2011 +0300
+++ b/mercurial/httprepo.py	Tue May 24 17:16:31 2011 -0500
@@ -127,7 +127,8 @@
         if resp_url.endswith(qs):
             resp_url = resp_url[:-len(qs)]
         if self._url.rstrip('/') != resp_url.rstrip('/'):
-            self.ui.status(_('real URL is %s\n') % resp_url)
+            if not self.ui.quiet:
+                self.ui.warn(_('real URL is %s\n') % resp_url)
         self._url = resp_url
         try:
             proto = resp.getheader('content-type')