Part of bzrlib.repository View In Hierarchy
Known subclasses: bzrlib.tests.test_repository.InterDummy, bzrlib.vf_repository.InterVersionedFileRepository
Its instances have methods like copy_content and fetch, and contain references to the source and target repositories these operations can be carried out on.
Often we will provide convenience methods on 'repository' which carry out operations with another repository - they will always forward to InterRepository.get(other).method_name(parameters).
Method | copy_content | Make a complete copy of the content in self into destination. |
Method | fetch | Fetch the content required to construct revision_id. |
Method | search_missing_revision_ids | Return the revision ids that source has that target does not. |
Static Method | _same_model | True if source and target have the same data representation. |
Static Method | _assert_same_model | Raise an exception if two repositories do not use the same model. |
Inherited from InterObject:
Method | __init__ | Construct a default InterObject instance. Please use 'get'. |
Class Method | get | Retrieve a Inter worker object for these objects. |
Method | lock_read | Take out a logical read lock. |
Method | lock_write | Take out a logical write lock. |
Class Method | register_optimiser | Register an InterObject optimiser. |
Method | unlock | Release the locks on source and target. |
Class Method | unregister_optimiser | Unregister an InterObject optimiser. |
Method | _double_lock | Take out two locks, rolling back the first if the second throws. |
This is a destructive operation! Do not use it on existing repositories.
Parameters | revision_id | Only copy the content needed to construct revision_id and its parents. |
The content is copied from self.source to self.target.
Parameters | revision_id | if None all content is copied, if NULL_REVISION no content is copied. |
Returns | None. |
Parameters | revision_id | only return revision ids included by this revision_id. |
revision_ids | return revision ids included by these revision_ids. NoSuchRevision will be raised if any of these revisions are not present. | |
if_present_ids | like revision_ids, but will not cause NoSuchRevision if any of these are absent, instead they will simply not be in the result. This is useful for e.g. finding revisions to fetch for tags, which may reference absent revisions. | |
find_ghosts | If True find missing revisions in deep history rather than just finding the surface difference. | |
limit | Maximum number of revisions to return, topologically ordered | |
Returns | A bzrlib.graph.SearchResult. |