Rev 517: Don't be verbose when trying to connect unless -Dtransport was specified. Fixes #124858. in file:///data/jelmer/bzr-svn/0.4/

Jelmer Vernooij jelmer at samba.org
Thu Jul 12 09:28:38 BST 2007


At file:///data/jelmer/bzr-svn/0.4/

------------------------------------------------------------
revno: 517
revision-id: jelmer at samba.org-20070709164826-v6kgvuded2zl16qx
parent: jelmer at samba.org-20070708141353-6npnskwaakaak292
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Mon 2007-07-09 17:48:26 +0100
message:
  Don't be verbose when trying to connect unless -Dtransport was specified. Fixes #124858.
modified:
  NEWS                           news-20061231030336-h9fhq245ie0de8bs-1
  transport.py                   transport.py-20060406231150-b3472d06b3a0818d
=== modified file 'NEWS'
--- a/NEWS	2007-07-03 16:42:54 +0000
+++ b/NEWS	2007-07-09 16:48:26 +0000
@@ -30,6 +30,8 @@
 
    * Consistently treat property changes as actual changes (#122115)
 
+   * Be a bit less verbose when trying to connect (#124858)
+
   PERFORMANCE
 
    * do_update() is now used to find the contents of a directory recursively. 

=== modified file 'transport.py'
--- a/transport.py	2007-06-24 17:52:51 +0000
+++ b/transport.py	2007-07-09 16:48:26 +0000
@@ -15,6 +15,7 @@
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 """Simple transport for accessing Subversion smart servers."""
 
+from bzrlib import debug
 from bzrlib.errors import (NoSuchFile, NotBranchError, TransportNotPossible, 
                            FileExists, NotLocalUrl)
 from bzrlib.trace import mutter
@@ -103,7 +104,8 @@
         self._client.config = svn_config
 
         try:
-            mutter('opening SVN RA connection to %r' % self.svn_url)
+            if 'transport' in debug.debug_flags:
+                mutter('opening SVN RA connection to %r' % self.svn_url)
             self._ra = svn.client.open_ra_session(self.svn_url.encode('utf8'), 
                     self._client, self.pool)
         except SubversionException, (_, num):




More information about the bazaar-commits mailing list