changeset 14504:c59968e8b579 stable

httprepo: send URL redirection notices to stderr (issue2828)
author Matt Mackall <mpm@selenic.com>
date Tue, 24 May 2011 17:16:31 -0500
parents 4e958f2a193f
children 90ef40bf97e3
files mercurial/httprepo.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httprepo.py	Mon Mar 07 14:47:30 2011 +0100
+++ b/mercurial/httprepo.py	Tue May 24 17:16:31 2011 -0500
@@ -102,7 +102,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')