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

use dfetch_refs, to prepare for dpush to remote repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
144
144
        if stop_revision is None:
145
145
            stop_revision = source.last_revision()
146
146
        # FIXME: Check for diverged branches
147
 
        revidmap = self.repository.dfetch(source.repository, stop_revision)
 
147
        revidmap, gitidmap = self.repository.dfetch_refs(source.repository, 
 
148
                { "refs/heads/master": stop_revision })
148
149
        if revidmap != {}:
149
150
            self.generate_revision_history(revidmap[stop_revision])
150
 
        return revidmap
 
151
        return revidmap, gitidmap
151
152
 
152
153
    def generate_revision_history(self, revid, old_revid=None):
153
154
        # FIXME: Check that old_revid is in the ancestry of revid