~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/readonly.py

Move working tree initialisation out from  Branch.initialize, deprecated Branch.initialize to Branch.create.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
        """See Transport.stat()."""
107
107
        return self._decorated.stat(relpath)
108
108
 
109
 
#    def lock_read(self, relpath):
110
 
#   TODO if needed / when tested
111
 
#
112
 
#    def lock_write(self, relpath):
113
 
#   TODO if needed / when tested.
 
109
    def lock_read(self, relpath):
 
110
        """See Transport.lock_read."""
 
111
        return self._decorated.lock_read(relpath)
 
112
 
 
113
    def lock_write(self, relpath):
 
114
        """See Transport.lock_write."""
 
115
        raise TransportNotPossible('readonly transport')
114
116
 
115
117
 
116
118
class ReadonlyServer(Server):