Part of bzrlib.memorytree View In Hierarchy
It maintains nearly no state outside of read_lock and write_lock transactions. (it keeps a reference to the branch, and its last-revision only).
Method | __init__ | Construct a MemoryTree for branch using revision_id. |
Method | is_control_filename | True if filename is the name of a control file in this tree. |
Method | basis_tree | See Tree.basis_tree(). |
Static Method | create_on_branch | Create a MemoryTree for branch, using the last-revision of branch. |
Method | get_file | See Tree.get_file. |
Method | get_file_sha1 | See Tree.get_file_sha1(). |
Method | get_root_id | Undocumented |
Method | rename_one | Undocumented |
Method | path_content_summary | See Tree.path_content_summary. |
Method | get_parent_ids | See Tree.get_parent_ids. |
Method | has_filename | See Tree.has_filename(). |
Method | is_executable | Undocumented |
Method | kind | Undocumented |
Method | mkdir | See MutableTree.mkdir(). |
Method | last_revision | See MutableTree.last_revision. |
Method | lock_read | Lock the memory tree for reading. |
Method | lock_tree_write | See MutableTree.lock_tree_write(). |
Method | lock_write | See MutableTree.lock_write(). |
Method | put_file_bytes_non_atomic | See MutableTree.put_file_bytes_non_atomic. |
Method | unlock | Release a lock. |
Method | unversion | Remove the file ids in file_ids from the current versioned set. |
Method | set_parent_ids | See MutableTree.set_parent_trees(). |
Method | set_parent_trees | See MutableTree.set_parent_trees(). |
Method | _add | See MutableTree._add. |
Method | _gather_kinds | See MutableTree._gather_kinds. |
Method | _comparison_data | See Tree._comparison_data. |
Method | _file_size | See Tree._file_size. |
Method | _populate_from_branch | Populate the in-tree state from the branch. |
Method | _set_basis | Undocumented |
Inherited from MutableInventoryTree:
Method | apply_inventory_delta | Apply changes to the inventory as an atomic operation. |
Method | smart_add | Version file_list, optionally recursing into directories. |
Method | update_basis_by_delta | Update the parents of this tree after a commit. |
Method | _fix_case_of_inventory_path | If our tree isn't case sensitive, return the canonical path |
Inherited from MutableTree (via MutableInventoryTree):
Method | add | Add paths to the set of versioned paths. |
Method | add_reference | Add a TreeReference to the tree, pointing at sub_tree |
Method | commit | Undocumented |
Method | has_changes | Quickly check that the tree contains at least one commitable change. |
Method | check_changed_or_out_of_date | Check the tree for uncommitted changes and branch synchronization. |
Method | _add_reference | Standard add_reference implementation, for use by subclasses |
Method | _observed_sha1 | Tell the tree we have observed a paths sha1. |
This is true IF and ONLY IF the filename is part of the meta data that bzr controls in this tree. I.E. a random .bzr directory placed on disk will not be a control file for this tree.
Parameters | filename | A filename within the tree. This is a relative path from the root of this tree. |
This implementation does not care about the file kind of missing files, so is a no-op.
See Tree.get_parent_ids.
This triggers population of data from the branch for its revision.
This frees all cached state when the last lock context for the tree is left.
When a file_id is unversioned, all of its children are automatically unversioned.
Parameters | file_ids | The file ids to stop versioning. |
Raises | NoSuchId if any fileid is not currently versioned. |