~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/decorator.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-04-12 08:40:15 UTC
  • mfrom: (1651.1.7 bzr.mbp.escape-stores)
  • Revision ID: pqm@pqm.ubuntu.com-20060412084015-e6472a0717edbca6
(mbp) storage escaping, cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
        
43
43
        _decorated is a private parameter for cloning."""
44
44
        prefix = self._get_url_prefix()
45
 
        assert url.startswith(prefix)
 
45
        assert url.startswith(prefix), \
 
46
                "url %r doesn't start with decorator prefix %r" % \
 
47
                (url, prefix)
46
48
        decorated_url = url[len(prefix):]
47
49
        if _decorated is None:
48
50
            self._decorated = get_transport(decorated_url)
109
111
    def list_dir(self, relpath):
110
112
        """See Transport.list_dir()."""
111
113
        return self._decorated.list_dir(relpath)
 
114
 
 
115
    def rename(self, rel_from, rel_to):
 
116
        return self._decorated.rename(rel_from, rel_to)
112
117
    
113
118
    def rmdir(self, relpath):
114
119
        """See Transport.rmdir."""