/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/chroot.py

  • Committer: John Arbash Meinel
  • Date: 2008-06-05 16:27:16 UTC
  • mfrom: (3475 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3476.
  • Revision ID: john@arbash-meinel.com-20080605162716-a3hn238tnctbfd8j
merge bzr.dev, resolve NEWS

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
        self.backing_transport = backing_transport
46
46
 
47
47
    def _factory(self, url):
48
 
        assert url.startswith(self.scheme)
49
48
        return ChrootTransport(self, url)
50
49
 
51
50
    def get_url(self):
79
78
 
80
79
    def _safe_relpath(self, relpath):
81
80
        safe_relpath = self._combine_paths(self.base_path, relpath)
82
 
        assert safe_relpath.startswith('/')
 
81
        if not safe_relpath.startswith('/'):
 
82
            raise ValueError(safe_relpath)
83
83
        return safe_relpath[1:]
84
84
 
85
85
    # Transport methods
116
116
    def has(self, relpath):
117
117
        return self._call('has', relpath)
118
118
 
 
119
    def is_readonly(self):
 
120
        return self.server.backing_transport.is_readonly()
 
121
 
119
122
    def iter_files_recursive(self):
120
123
        backing_transport = self.server.backing_transport.clone(
121
124
            self._safe_relpath('.'))