~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/versionedfile.py

(mbp) handle doubly-stacked repositories in get_known_graph_ancestry (bug
 715000) (Martin Pool)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1090
1090
    def _extract_blocks(self, version_id, source, target):
1091
1091
        return None
1092
1092
 
 
1093
    def _transitive_fallbacks(self):
 
1094
        """Return the whole stack of fallback versionedfiles.
 
1095
 
 
1096
        This VersionedFiles may have a list of fallbacks, but it doesn't
 
1097
        necessarily know about the whole stack going down, and it can't know
 
1098
        at open time because they may change after the objects are opened.
 
1099
        """
 
1100
        all_fallbacks = []
 
1101
        for a_vfs in self._fallback_vfs:
 
1102
            all_fallbacks.append(a_vfs)
 
1103
            all_fallbacks.extend(a_vfs._transitive_fallbacks())
 
1104
        return all_fallbacks
 
1105
 
1093
1106
 
1094
1107
class ThunkedVersionedFiles(VersionedFiles):
1095
1108
    """Storage for many versioned files thunked onto a 'VersionedFile' class.