~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/index.py

CombinedGraphIndex.validate() will now reload.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1274
1274
 
1275
1275
    def validate(self):
1276
1276
        """Validate that everything in the index can be accessed."""
1277
 
        for index in self._indices:
1278
 
            index.validate()
 
1277
        while True:
 
1278
            try:
 
1279
                for index in self._indices:
 
1280
                    index.validate()
 
1281
                return
 
1282
            except errors.NoSuchFile:
 
1283
                self._reload_or_raise()
1279
1284
 
1280
1285
 
1281
1286
class InMemoryGraphIndex(GraphIndexBuilder):