httprepo: send URL redirection notices to stderr (issue2828) stable
authorMatt Mackall <mpm@selenic.com>
Tue, 24 May 2011 17:16:31 -0500
branchstable
changeset 14504 c59968e8b579
parent 14503 4e958f2a193f
child 14505 90ef40bf97e3
httprepo: send URL redirection notices to stderr (issue2828)
mercurial/httprepo.py
--- 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')