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

Fix tests.

Show diffs side-by-side

added added

removed removed

Lines of Context:
102
102
 
103
103
    def all_revision_ids(self):
104
104
        ret = set([revision.NULL_REVISION])
105
 
        if self._git.heads() == []:
 
105
        heads = self._git.heads()
 
106
        if heads == {}:
106
107
            return ret
107
 
        bzr_heads = [self.get_mapping().revision_id_foreign_to_bzr(h) for h in self._git.heads()]
 
108
        bzr_heads = [self.get_mapping().revision_id_foreign_to_bzr(h) for h in heads.itervalues()]
108
109
        ret = set(bzr_heads)
109
110
        graph = self.get_graph()
110
111
        for rev, parents in graph.iter_ancestry(bzr_heads):