Rev 2190: Translate ReadOnlyError in RemoteBranch._remote_lock_write. in http://bazaar.launchpad.net/~bzr/bzr/hpss

Robert Collins robertc at robertcollins.net
Thu Mar 29 05:22:53 BST 2007


At http://bazaar.launchpad.net/~bzr/bzr/hpss

------------------------------------------------------------
revno: 2190
revision-id: robertc at robertcollins.net-20070329042156-28vdpsyvcbrw7wy9
parent: robertc at robertcollins.net-20070329040816-w9220t3gkdb45n3i
committer: Robert Collins <robertc at robertcollins.net>
branch nick: hpss
timestamp: Thu 2007-03-29 14:21:56 +1000
message:
  Translate ReadOnlyError in RemoteBranch._remote_lock_write.
modified:
  bzrlib/remote.py               remote.py-20060720103555-yeeg2x51vn0rbtdp-1
=== modified file 'bzrlib/remote.py'
--- a/bzrlib/remote.py	2007-03-29 02:38:48 +0000
+++ b/bzrlib/remote.py	2007-03-29 04:21:56 +0000
@@ -725,6 +725,8 @@
             raise errors.TokenMismatch(tokens, '(remote tokens)')
         elif response[0] == 'UnlockableTransport':
             raise errors.UnlockableTransport(self.bzrdir.root_transport)
+        elif response[0] == 'ReadOnlyError':
+            raise errors.ReadOnlyError(self)
         else:
             assert False, 'unexpected response code %r' % (response,)
             



More information about the bazaar-commits mailing list