/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

Provide views.

Show diffs side-by-side

added added

removed removed

Lines of Context:
139
139
        """See Repository.get_ancestry().
140
140
        """
141
141
        if revision_id is None:
142
 
            return self._all_revision_ids()
 
142
            return [None, revision.NULL_REVISION] + self._all_revision_ids()
143
143
        assert isinstance(revision_id, str)
144
144
        ancestry = []
145
145
        graph = self.get_graph()
146
146
        for rev, parents in graph.iter_ancestry([revision_id]):
147
 
            if rev == revision.NULL_REVISION:
148
 
                rev = None
149
147
            ancestry.append(rev)
150
148
        ancestry.reverse()
151
 
        return ancestry
 
149
        return [None] + ancestry
152
150
 
153
151
    def import_revision_gist(self, source, revid, parent_lookup):
154
152
        """Impor the gist of another revision into this Git repository.