Part of bzrlib.remote View In Hierarchy
For the moment most operations are performed using local transport-backed Repository objects.
Method | __init__ | Create a RemoteRepository instance. |
Method | user_transport | Undocumented |
Method | control_transport | Undocumented |
Method | __str__ | Undocumented |
Method | abort_write_group | Complete a write group on the decorated repository. |
Method | chk_bytes | Decorate the real repository for now. |
Method | commit_write_group | Complete a write group on the decorated repository. |
Method | resume_write_group | Undocumented |
Method | suspend_write_group | Undocumented |
Method | get_missing_parent_inventories | Undocumented |
Method | get_rev_id_for_revno | See Repository.get_rev_id_for_revno. |
Method | find_text_key_references | Find the text key references within the repository. |
Method | get_file_graph | Undocumented |
Method | has_revision | True if this repository has a copy of the revision. |
Method | has_revisions | Probe to find out the presence of multiple revisions. |
Method | has_same_location | Undocumented |
Method | get_graph | Return the graph for this repository format |
Method | get_known_graph_ancestry | Return the known graph for a set of revision ids and their ancestors. |
Method | gather_stats | See Repository.gather_stats(). |
Method | find_branches | See Repository.find_branches(). |
Method | get_physical_lock_status | See Repository.get_physical_lock_status(). |
Method | is_in_write_group | Return True if there is an open write group. |
Method | is_locked | Undocumented |
Method | is_shared | See Repository.is_shared(). |
Method | is_write_locked | Undocumented |
Method | lock_read | Lock the repository for read operations. |
Method | lock_write | Undocumented |
Method | leave_lock_in_place | Undocumented |
Method | dont_leave_lock_in_place | Undocumented |
Method | start_write_group | Start a write group on the decorated repository. |
Method | unlock | Undocumented |
Method | break_lock | Undocumented |
Method | sprout | Undocumented |
Method | revision_tree | Undocumented |
Method | get_serializer_format | Undocumented |
Method | get_commit_builder | Undocumented |
Method | add_fallback_repository | Add a repository to use for looking up data not held locally. |
Method | add_inventory | Undocumented |
Method | add_inventory_by_delta | Undocumented |
Method | add_revision | Undocumented |
Method | get_inventory | Undocumented |
Method | iter_inventories | Undocumented |
Method | get_revision | Undocumented |
Method | get_transaction | Undocumented |
Method | clone | Undocumented |
Method | make_working_trees | See Repository.make_working_trees |
Method | refresh_data | Re-read any data needed to synchronise with disk. |
Method | revision_ids_to_search_result | Convert a set of revision ids to a graph SearchResult. |
Method | search_missing_revision_ids | Return the revision ids that other has that this does not. |
Method | fetch | Undocumented |
Method | create_bundle | Undocumented |
Method | get_ancestry | Undocumented |
Method | fileids_altered_by_revision_ids | Undocumented |
Method | iter_files_bytes | See Repository.iter_file_bytes. |
Method | get_cached_parent_map | See bzrlib.CachingParentsProvider.get_cached_parent_map |
Method | get_parent_map | See bzrlib.Graph.get_parent_map(). |
Method | get_signature_text | Undocumented |
Method | reconcile | Undocumented |
Method | all_revision_ids | Undocumented |
Method | get_deltas_for_revisions | Undocumented |
Method | get_revision_delta | Undocumented |
Method | revision_trees | Undocumented |
Method | get_revision_reconcile | Undocumented |
Method | check | Undocumented |
Method | copy_content_into | Undocumented |
Method | inventories | Decorate the real repository for now. |
Method | pack | Compress the data within the repository. |
Method | revisions | Decorate the real repository for now. |
Method | set_make_working_trees | Undocumented |
Method | signatures | Decorate the real repository for now. |
Method | sign_revision | Undocumented |
Method | texts | Decorate the real repository for now. |
Method | get_revisions | Undocumented |
Method | supports_rich_root | Undocumented |
Method | iter_reverse_revision_history | Undocumented |
Method | store_revision_signature | Undocumented |
Method | add_signature_text | Undocumented |
Method | has_signature_for_revision_id | Undocumented |
Method | item_keys_introduced_by | Undocumented |
Method | autopack | Undocumented |
Method | _get_rev_id_for_revno_vfs | Undocumented |
Method | _ensure_real | Ensure that there is a _real_repository set. |
Method | _translate_error | Undocumented |
Method | _generate_text_key_index | Generate a new text key index for the repository. |
Method | _get_revision_graph | Private method for using with old (< 1.2) servers to fallback. |
Method | _get_sink | See Repository._get_sink(). |
Method | _get_source | Return a source for streaming from this repository. |
Method | _has_same_fallbacks | Returns true if the repositories have the same fallbacks. |
Method | _warn_if_deprecated | Undocumented |
Method | _remote_lock_write | Undocumented |
Method | _set_real_repository | Set the _real_repository for this repository. |
Method | _unlock | Undocumented |
Method | _get_tarball | Return a TemporaryFile containing a repository tarball. |
Method | _check_fallback_repository | Check that this repository can fallback to repository safely. |
Method | _get_versioned_file_checker | Undocumented |
Method | _get_parent_map_rpc | Helper for get_parent_map that performs the RPC. |
Method | _get_inventory_xml | Undocumented |
Method | _copy_repository_tarball | Undocumented |
Method | _serializer | Undocumented |
Method | _find_inconsistent_revision_parents | Undocumented |
Method | _check_for_inconsistent_revision_parents | Undocumented |
Method | _make_parents_provider | Undocumented |
Method | _serialise_search_recipe | Serialise a graph search recipe. |
Method | _serialise_search_result | Undocumented |
Inherited from _RpcHelper:
Method | _call | Undocumented |
Method | _call_expecting_body | Undocumented |
Method | _call_with_body_bytes | Undocumented |
Method | _call_with_body_bytes_expecting_body | Undocumented |
Inherited from _RelockDebugMixin:
Method | _note_lock | Undocumented |
Inherited from ControlComponent:
Method | control_url | Undocumented |
Method | user_url | Undocumented |
Parameters | remote_bzrdir | The bzrdir hosting this repository. |
format | The RemoteFormat object to use. | |
real_repository | If not None, a local implementation of the repository logic for the repository, usually accessing the data via the VFS. | |
_client | Private testing parameter - override the smart client to be used by the repository. |
Smart methods perform operations in a single step so this API is not really applicable except as a compatibility thunk for older plugins that don't use e.g. the CommitBuilder facility.
Parameters | suppress_errors | see Repository.abort_write_group. |
In the long term a full blown network facility is needed to avoid creating a real repository object locally.
Smart methods perform operations in a single step so this API is not really applicable except as a compatibility thunk for older plugins that don't use e.g. the CommitBuilder facility.
Used before calls to self._real_repository.
Note that _ensure_real causes many roundtrips to the server which are not desirable, and prevents the use of smart one-roundtrip RPC's to perform complex operations (such as accessing parent data, streaming revisions etc). Adding calls to _ensure_real should only be done when bringing up new functionality, adding fallbacks for smart methods that require a fallback path, and never to replace an existing smart method invocation. If in doubt chat to the bzr network team.
Returns | A dictionary mapping text keys ((fileid, revision_id) tuples) to whether they were referred to by the inventory of the revision_id that they contain. The inventory texts from all present revision ids are assessed to generate this report. |
This is an expensive function that will take considerable time to run.
Returns | A dict mapping (file_id, revision_id) tuples to a list of parents, also (file_id, revision_id) tuples. |
Parameters | revision_ids | An iterable of revision_ids. |
Returns | A set of the revision_ids that were present. |
write groups are only applicable locally for the smart server..
Returns | A bzrlib.lock.LogicalLockResult. |
Parameters | repository | The repository to fallback to for non-hpss implemented operations. |
Smart methods perform operations in a single step so this API is not really applicable except as a compatibility thunk for older plugins that don't use e.g. the CommitBuilder facility.
Returns None if the server does not support sending tarballs.
Parameters | repository | A repository. |
Raise an error if not.
Parameters | repository | A repository to fallback to. |
This method is intended to be called after another repository instance (such as one used by a smart server) has inserted data into the repository. On all repositories this will work outside of write groups. Some repository formats (pack and newer for bzrlib native formats) support refresh_data inside write groups. If called inside a write group on a repository that does not support refreshing in a write group IsInWriteGroupError will be raised.
These are returned in topological order.
revision_id: only return revision ids included by revision_id.
In the long term a full blown network facility is needed to avoid creating a real repository object locally.
This is not currently implemented within the smart server.
In the short term this should become a real object to intercept graph lookups.
In the long term a full blown network facility is needed.
In the long term a full blown network facility is needed to avoid creating a real repository object locally.
In the long term a full blown network facility is needed to avoid creating a real repository object locally.