/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 remote.py

make send_pack accessible.

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
        except GitProtocolError, e:
110
110
            raise BzrError(e)
111
111
 
 
112
    def send_pack(self, get_changed_refs, generate_pack_contents):
 
113
        client = self._get_client()
 
114
        try:
 
115
            client.send_pack(self._path, get_changed_refs, 
 
116
                generate_pack_contents)
 
117
        except GitProtocolError, e:
 
118
            raise BzrError(e)
 
119
 
112
120
    def get(self, path):
113
121
        raise NoSuchFile(path)
114
122
 
238
246
        self._transport.fetch_pack(determine_wants, graph_walker, pack_data, 
239
247
            progress)
240
248
 
 
249
    def send_pack(self, get_changed_refs, generate_pack_contents):
 
250
        self._transport.send_pack(get_changed_refs, generate_pack_contents)
 
251
 
241
252
    def fetch_objects(self, determine_wants, graph_walker, resolve_ext_ref, progress=None):
242
253
        fd, path = tempfile.mkstemp(suffix=".pack")
243
254
        self.fetch_pack(determine_wants, graph_walker, lambda x: os.write(fd, x), progress)