~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/readonly.py

Remove shutil dependency in upgrade - create a delete_tree method for transports.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
        """See Transport.delete()."""
63
63
        raise TransportNotPossible('readonly transport')
64
64
 
 
65
    def delete_tree(self, relpath):
 
66
        """See Transport.delete_tree()."""
 
67
        raise TransportNotPossible('readonly transport')
 
68
 
65
69
    def get(self, relpath):
66
70
        """See Transport.get()."""
67
71
        return self._decorated.get(relpath)
90
94
        """See Transport.list_dir()."""
91
95
        return self._decorated.list_dir(relpath)
92
96
    
 
97
    def rmdir(self, relpath):
 
98
        """See Transport.rmdir."""
 
99
        raise TransportNotPossible('readonly transport')
 
100
 
93
101
    def should_cache(self):
94
102
        """See Transport.should_cache()."""
95
103
        return self._decorated.should_cache()