/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: Andrew Bennetts
  • Date: 2010-03-17 11:37:38 UTC
  • mto: This revision was merged to the branch mainline in revision 5141.
  • Revision ID: andrew.bennetts@canonical.com-20100317113738-lc730nxmyi2j0la9
Add public set_sibling_indices API so that AggregateIndex doesn't have to poke at _sibling_indices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1290
1290
        :param index: The index to insert.
1291
1291
        :param name: a name for this index, e.g. a pack name.  These names can
1292
1292
            be used to reflect index reorderings to related CombinedGraphIndex
1293
 
            instances that use the same names.
 
1293
            instances that use the same names.  (see set_sibling_indices)
1294
1294
        """
1295
1295
        self._indices.insert(pos, index)
1296
1296
        self._index_names.insert(pos, name)
1540
1540
                         ' Raising original exception.')
1541
1541
            raise exc_type, exc_value, exc_traceback
1542
1542
 
 
1543
    def set_sibling_indices(self, sibling_combined_graph_indices):
 
1544
        """Set the CombinedGraphIndex objects to reorder after reordering self.
 
1545
        """
 
1546
        self._sibling_indices = sibling_combined_graph_indices
 
1547
 
1543
1548
    def validate(self):
1544
1549
        """Validate that everything in the index can be accessed."""
1545
1550
        while True: