b.r.RevisionTree(tree.Tree) : class documentation

Part of bzrlib.revisiontree View In Hierarchy

Known subclasses: bzrlib.revisiontree.InventoryRevisionTree

Tree viewing a previous revision.

File text can be retrieved from the text store.

Method __init__ Undocumented
Method has_versioned_directories See Tree.has_versioned_directories.
Method supports_tree_reference Undocumented
Method get_parent_ids See Tree.get_parent_ids.
Method get_revision_id Return the revision id associated with this tree.
Method get_file_revision Return the revision id in which a file was last changed.
Method get_file_text Return the byte content of a file.
Method get_file Return a file object for the file file_id in the tree.
Method is_locked Undocumented
Method lock_read Lock this tree for multiple read only operations.
Method __repr__ Undocumented
Method unlock Undocumented
Method _get_rules_searcher See Tree._get_rules_searcher.

Inherited from Tree:

Method changes_from Return a TreeDelta of the changes from other to this tree.
Method iter_changes See InterTree.iter_changes
Method conflicts Get a list of the conflicts in the tree.
Method extras For trees that can have unversioned files, return all such paths.
Method has_filename True if the tree has given filename.
Method has_id Undocumented
Method __contains__ Undocumented
Method has_or_had_id Undocumented
Method is_ignored Check whether the filename is ignored by this tree.
Method all_file_ids Iterate through all file ids, including ids for missing files.
Method id2path Return the path for a file id.
Method iter_entries_by_dir Walk the tree in 'by_dir' order.
Method list_files List all files in this tree.
Method iter_references Undocumented
Method kind Undocumented
Method stored_kind File kind stored for this file_id.
Method path_content_summary Get a summary of the information about path.
Method get_reference_revision Undocumented
Method get_file_with_stat Get a file handle and stat object for file_id.
Method get_file_lines Return the content of a file, as lines.
Method get_file_verifier Return a verifier for a file.
Method get_file_sha1 Return the SHA1 file for a file.
Method get_file_mtime Return the modification time for a file.
Method get_file_size Return the size of a file in bytes.
Method get_file_by_path Undocumented
Method is_executable Check if a file is executable.
Method iter_files_bytes Iterate through file contents.
Method get_symlink_target Get the target for a given file_id.
Method get_root_id Return the file_id for the root of this tree.
Method annotate_iter Return an iterator of revision_id, line tuples.
Method plan_file_merge Generate a merge plan based on annotations.
Method plan_file_lca_merge Generate a merge plan based lca-newness.
Method path2id Return the id for path in this tree.
Method paths2ids Return all the ids that can be reached by walking from paths.
Method iter_children Undocumented
Method revision_tree Obtain a revision tree for the revision revision_id.
Method unknowns What files are present in this tree and unknown.
Method filter_unversioned_files Filter out paths that are versioned.
Method walkdirs Walk the contents of this tree from path down.
Method supports_content_filtering Undocumented
Method iter_search_rules Find the preferences for filenames in a tree.
Method _comparison_data Return a tuple of kind, executable, stat_value for a file.
Method _file_size Undocumented
Method _get_plan_merge_data Undocumented
Method _iter_parent_trees Iterate through parent trees, defaulting to Tree.revision_tree.
Method _get_file_revision Ensure that file_id, tree_revision is in vf to plan the merge.
Method _check_retrieved Undocumented
Method _content_filter_stack The stack of content filters for a path if filtering is supported.
Method _content_filter_stack_provider A function that returns a stack of ContentFilters.
def __init__(self, repository, revision_id):
def has_versioned_directories(self):
See Tree.has_versioned_directories.
def supports_tree_reference(self):
def get_parent_ids(self):
See Tree.get_parent_ids.

A RevisionTree's parents match the revision graph.

def get_revision_id(self):
Return the revision id associated with this tree.
def get_file_revision(self, file_id, path=None):
Return the revision id in which a file was last changed.
def get_file_text(self, file_id, path=None):
Return the byte content of a file.

If both file_id and path are supplied, an implementation may use either one.

Parametersfile_idThe file_id of the file.
pathThe path of the file.
ReturnsA single byte string for the whole file.
def get_file(self, file_id, path=None):
Return a file object for the file file_id in the tree.

If both file_id and path are defined, it is implementation defined as to which one is used.

def is_locked(self):
def lock_read(self):
Lock this tree for multiple read only operations.
ReturnsA bzrlib.lock.LogicalLockResult.
def __repr__(self):
def unlock(self):
def _get_rules_searcher(self, default_searcher):
See Tree._get_rules_searcher.
API Documentation for Bazaar, generated by pydoctor at 2020-01-24 00:41:48.