/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: Martin Pool
  • Date: 2007-09-14 06:31:28 UTC
  • mfrom: (2822 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2823.
  • Revision ID: mbp@sourcefrog.net-20070914063128-0p7mh6zfb4pzdg9p
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
    def append_file(self, relpath, f, mode=None):
90
90
        return self._call('append_file', relpath, f, mode)
91
91
 
 
92
    def _can_roundtrip_unix_modebits(self):
 
93
        return self.server.backing_transport._can_roundtrip_unix_modebits()
 
94
 
92
95
    def clone(self, relpath):
93
96
        return ChrootTransport(self.server, self.abspath(relpath))
94
97
 
98
101
    def delete_tree(self, relpath):
99
102
        return self._call('delete_tree', relpath)
100
103
 
 
104
    def external_url(self):
 
105
        """See bzrlib.transport.Transport.external_url."""
 
106
        # Chroots, like MemoryTransport depend on in-process
 
107
        # state and thus the base cannot simply be handed out.
 
108
        # See the base class docstring for more details and
 
109
        # possible directions. For now we return the chrooted
 
110
        # url. 
 
111
        return self.server.backing_transport.external_url()
 
112
 
101
113
    def get(self, relpath):
102
114
        return self._call('get', relpath)
103
115
 
124
136
    def mkdir(self, relpath, mode=None):
125
137
        return self._call('mkdir', relpath, mode)
126
138
 
 
139
    def open_write_stream(self, relpath, mode=None):
 
140
        return self._call('open_write_stream', relpath, mode)
 
141
 
127
142
    def put_file(self, relpath, f, mode=None):
128
143
        return self._call('put_file', relpath, f, mode)
129
144