/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 bzrlib/index.py

  • Committer: Martin Pool
  • Date: 2009-03-13 07:46:26 UTC
  • mto: This revision was merged to the branch mainline in revision 4189.
  • Revision ID: mbp@sourcefrog.net-20090313074626-i3ycz4wubq6nbiuw
Remove APIs deprecated up to and including 1.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1170
1170
                self.__class__.__name__,
1171
1171
                ', '.join(map(repr, self._indices)))
1172
1172
 
1173
 
    @symbol_versioning.deprecated_method(symbol_versioning.one_one)
1174
 
    def get_parents(self, revision_ids):
1175
 
        """See graph._StackedParentsProvider.get_parents.
1176
 
        
1177
 
        This implementation thunks the graph.Graph.get_parents api across to
1178
 
        GraphIndex.
1179
 
 
1180
 
        :param revision_ids: An iterable of graph keys for this graph.
1181
 
        :return: A list of parent details for each key in revision_ids.
1182
 
            Each parent details will be one of:
1183
 
             * None when the key was missing
1184
 
             * (NULL_REVISION,) when the key has no parents.
1185
 
             * (parent_key, parent_key...) otherwise.
1186
 
        """
1187
 
        parent_map = self.get_parent_map(revision_ids)
1188
 
        return [parent_map.get(r, None) for r in revision_ids]
1189
 
 
1190
1173
    def get_parent_map(self, keys):
1191
1174
        """See graph._StackedParentsProvider.get_parent_map"""
1192
1175
        search_keys = set(keys)