Rev 1755: Don't print backtrace when error occurs while accessing repository root. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk

Jelmer Vernooij jelmer at samba.org
Mon Nov 10 14:20:40 GMT 2008


At http://people.samba.org/bzr/jelmer/bzr-svn/trunk

------------------------------------------------------------
revno: 1755
revision-id: jelmer at samba.org-20081110142037-1b7gvx1zq21buceu
parent: jelmer at samba.org-20081110021154-l9o267vsk25f8tf5
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Mon 2008-11-10 15:20:37 +0100
message:
  Don't print backtrace when error occurs while accessing repository root.
modified:
  NEWS                           news-20061231030336-h9fhq245ie0de8bs-1
  repository.py                  repository.py-20060306123302-1f8c5069b3fe0265
=== modified file 'NEWS'
--- a/NEWS	2008-11-10 02:11:54 +0000
+++ b/NEWS	2008-11-10 14:20:37 +0000
@@ -1,5 +1,10 @@
 bzr-svn 0.4.16	UNRELEASED
 
+  BUG FIXES
+
+   * Don't print backtrace when error occurs while accessing repository root.
+     (#296224)
+
 bzr-svn 0.4.15	2008-11-10
 
   BUG FIXES

=== modified file 'repository.py'
--- a/repository.py	2008-11-09 05:06:06 +0000
+++ b/repository.py	2008-11-10 14:20:37 +0000
@@ -38,6 +38,7 @@
 from bzrlib.plugins.svn.changes import changes_path, find_prev_location
 from bzrlib.plugins.svn.config import SvnRepositoryConfig
 from bzrlib.plugins.svn.core import SubversionException
+from bzrlib.plugins.svn.errors import convert_svn_error
 from bzrlib.plugins.svn.mapping import (SVN_REVPROP_BZR_SIGNATURE,
                      BzrSvnMapping,
                      get_default_mapping, 
@@ -257,6 +258,7 @@
     def is_write_locked(self):
         return (self._lock_mode == 'w')
 
+    @convert_svn_error
     def get_latest_revnum(self):
         if self._lock_mode in ('r','w') and self._cached_revnum:
             return self._cached_revnum




More information about the bazaar-commits mailing list