Part of bzrlib.shelf View In Hierarchy
Method | __init__ | Constructor. |
Method | iter_shelvable | Iterable of tuples describing shelvable changes. |
Method | shelve_change | Shelve a change in the iter_shelvable format. |
Method | shelve_all | Shelve all changes. |
Method | shelve_rename | Shelve a file rename. |
Method | shelve_modify_target | Shelve a change of symlink target. |
Method | shelve_lines | Shelve text changes to a file, using provided lines. |
Method | shelve_content_change | Shelve a kind change or binary file content change. |
Method | shelve_creation | Shelve creation of a file. |
Method | shelve_deletion | Shelve deletion of a file. |
Method | finalize | Release all resources used by this ShelfCreator. |
Method | transform | Shelve changes from working tree. |
Method | write_shelf | Serialize the shelved changes to a file. |
Static Method | _content_from_tree | Undocumented |
Method | _shelve_creation | Undocumented |
Method | _inverse_lines | Produce a version with only those changes removed from new_lines. |
Parameters | work_tree | The working tree to apply changes to. This is not required to be locked - a tree_write lock will be taken out. |
target_tree | The tree to make the working tree more similar to. This is not required to be locked - a read_lock will be taken out. | |
file_list | The files to make more similar to the target. |
Iterable of tuples describing shelvable changes.
As well as generating the tuples, this updates several members. Tuples may be:
('add file', file_id, work_kind, work_path) ('delete file', file_id, target_kind, target_path) ('rename', file_id, target_path, work_path) ('change kind', file_id, target_kind, work_kind, target_path) ('modify text', file_id) ('modify target', file_id, target_target, work_target)
Parameters | file_id | The file id of the file to shelve the renaming of. |
Parameters | file_id | The file id of the symlink which changed target. |
new_target | The target that the symlink should have due to shelving. |
Parameters | file_id | The file id of the file to shelve the text of. |
new_lines | The lines that the file should have due to shelving. |
Parameters | file_id | The file id of the file to shelve the content change of. |
This handles content and inventory id. :param file_id: The file_id of the file to shelve creation of.
This handles content and inventory id. :param file_id: The file_id of the file to shelve deletion of.