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

Return mapping in revision_id_bzr_to_foreign() as required by the interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
            self.heads.update([p for p in ps if not p in self.done])
65
65
            try:
66
66
                self.done.add(ret)
67
 
                return self.mapping.revision_id_bzr_to_foreign(ret)
 
67
                return self.mapping.revision_id_bzr_to_foreign(ret)[0]
68
68
            except InvalidRevisionId:
69
69
                pass
70
70
        return None
209
209
            if revision_id is None:
210
210
                ret = heads.values()
211
211
            else:
212
 
                ret = [mapping.revision_id_bzr_to_foreign(revision_id)]
 
212
                ret = [mapping.revision_id_bzr_to_foreign(revision_id)[0]]
213
213
            return [rev for rev in ret if not self.target.has_revision(mapping.revision_id_foreign_to_bzr(rev))]
214
214
        graph_walker = BzrFetchGraphWalker(self.target, mapping)
215
215
        create_pb = None
264
264
        if revision_id is None:
265
265
            determine_wants = lambda x: [y for y in x.values() if not y in r.object_store]
266
266
        else:
267
 
            args = [mapping.revision_id_bzr_to_foreign(revision_id)]
 
267
            args = [mapping.revision_id_bzr_to_foreign(revision_id)[0]]
268
268
            determine_wants = lambda x: [y for y in args if not y in r.object_store]
269
269
 
270
270
        graphwalker = SimpleFetchGraphWalker(r.heads().values(), r.get_parents)