b.t.p.t.TestIterChanges(TestCaseWithTwoTrees) : class documentation

Part of bzrlib.tests.per_intertree.test_compare View In Hierarchy

Test the comparison iterator
Method assertEqualIterChanges Assert that left_changes == right_changes.
Method do_iter_changes Helper to run iter_changes from tree1 to tree2.
Method check_has_changes Undocumented
Method mutable_trees_to_locked_test_trees Convert the working trees into test trees.
Method make_tree_with_special_names Create a tree with filenames chosen to exercise the walk order.
Method make_trees_with_special_names Both trees will use the special names.
Method test_compare_empty_trees Undocumented
Method added Undocumented
Static Method get_path_entry Undocumented
Method content_changed Undocumented
Method kind_changed Undocumented
Method missing Undocumented
Method deleted Undocumented
Method renamed Undocumented
Method unchanged Undocumented
Method unversioned Create an unversioned result.
Method test_empty_to_abc_content Undocumented
Method test_empty_specific_files Undocumented
Method test_no_specific_files Undocumented
Method test_empty_to_abc_content_a_only Undocumented
Method test_abc_content_to_empty_a_only Undocumented
Method test_abc_content_to_empty_b_only Undocumented
Method test_empty_to_abc_content_a_and_c_only Undocumented
Method test_abc_content_to_empty Undocumented
Method test_content_modification Undocumented
Method test_meta_modification Undocumented
Method test_empty_dir an empty dir should not cause glitches to surrounding files.
Method test_file_rename Undocumented
Method test_file_rename_and_modification Undocumented
Method test_specific_content_modification_grabs_parents Undocumented
Method test_specific_content_modification_grabs_parents_root_changes Undocumented
Method test_specific_with_rename_under_new_dir_reports_new_dir Undocumented
Method test_specific_with_rename_under_dir_under_new_dir_reports_new_dir Undocumented
Method test_specific_old_parent_same_path_new_parent Undocumented
Method test_specific_old_parent_becomes_file Undocumented
Method test_specific_old_parent_is_deleted Undocumented
Method test_specific_old_parent_child_collides_with_unselected_new Undocumented
Method test_specific_old_parent_child_dir_stops_being_dir Undocumented
Method test_file_rename_and_meta_modification Undocumented
Method test_file_becomes_unversionable_bug_438569 Undocumented
Method test_missing_in_target Test with the target files versioned but absent from disk.
Method test_missing_and_renamed Undocumented
Method test_only_in_source_and_missing Undocumented
Method test_only_in_target_and_missing Undocumented
Method test_only_in_target_missing_subtree_specific_bug_367632 Undocumented
Method test_unchanged_with_renames_and_modifications want_unchanged should generate a list of unchanged entries.
Method test_compare_subtrees Undocumented
Method test_disk_in_subtrees_skipped subtrees are considered not-in-the-current-tree.
Method test_default_ignores_unversioned_files Undocumented
Method test_unversioned_paths_in_tree Undocumented
Method test_unversioned_paths_in_tree_specific_files Undocumented
Method test_unversioned_paths_in_target_matching_source_old_names Undocumented
Method test_similar_filenames Test when we have a few files with similar names.
Method test_unversioned_subtree_only_emits_root Undocumented
Method make_trees_with_symlinks Undocumented
Method test_versioned_symlinks Undocumented
Method test_versioned_symlinks_specific_files Undocumented
Method test_tree_with_special_names Undocumented
Method test_trees_with_special_names Undocumented
Method test_trees_with_deleted_dir Undocumented
Method test_added_unicode Undocumented
Method test_deleted_unicode Undocumented
Method test_modified_unicode Undocumented
Method test_renamed_unicode Undocumented
Method test_unchanged_unicode Undocumented
Method test_unknown_unicode Undocumented
Method test_unknown_empty_dir Undocumented
Method test_rename_over_deleted Undocumented
Method test_deleted_and_unknown Test a file marked removed, but still present on disk.
Method test_renamed_and_added Test when we have renamed a file, and put another in its place.
Method test_renamed_and_unknown A file was moved on the filesystem, but not in bzr.
Method _create_special_names Create a tree with paths that expose differences in sort orders.

Inherited from TestCaseWithTwoTrees:

Method not_applicable_if_cannot_represent_unversioned Undocumented
Method not_applicable_if_missing_in Undocumented
Method make_to_branch_and_tree Make a to_workingtree_format branch and tree.

Inherited from TestCaseWithTree (via TestCaseWithTwoTrees):

Method make_branch_and_tree Undocumented
Method workingtree_to_test_tree Undocumented
Method get_tree_no_parents_no_content Make a tree with no parents and no contents from empty_tree.
Method get_tree_no_parents_abc_content return a test tree with a, b/, b/c contents.
Method get_tree_no_parents_abc_content_2 return a test tree with a, b/, b/c contents.
Method get_tree_no_parents_abc_content_3 return a test tree with a, b/, b/c contents.
Method get_tree_no_parents_abc_content_4 return a test tree with d, b/, b/c contents.
Method get_tree_no_parents_abc_content_5 return a test tree with d, b/, b/c contents.
Method get_tree_no_parents_abc_content_6 return a test tree with a, b/, e contents.
Method get_tree_no_parents_abc_content_7 return a test tree with a, b/, d/e contents.
Method get_tree_with_subdirs_and_all_content_types Return a test tree with subdirs and all content types.
Method get_tree_with_subdirs_and_all_supported_content_types Return a test tree with subdirs and all supported content types.
Method get_tree_with_utf8 Generate a tree with a utf8 revision and unicode paths.
Method get_tree_with_merged_utf8 Generate a tree with utf8 ancestors.
Method _convert_tree helper to convert using the converter or a supplied one.
Method _make_abc_tree setup an abc content tree.
Method _create_tree_with_utf8 Generate a tree with a utf8 revision and unicode paths.
def assertEqualIterChanges(self, left_changes, right_changes):
Assert that left_changes == right_changes.
Parametersleft_changesA list of the output from iter_changes.
right_changesA list of the output from iter_changes.
def do_iter_changes(self, tree1, tree2, **extra_args):
Helper to run iter_changes from tree1 to tree2.

:param tree1, tree2:  The source and target trees. These will be locked
    automatically.
:param **extra_args: Extra args to pass to iter_changes. This is not
    inspected by this test helper.
def check_has_changes(self, expected, tree1, tree2):
Undocumented
def mutable_trees_to_locked_test_trees(self, tree1, tree2):
Convert the working trees into test trees.

Read lock them, and add the unlock to the cleanup.

def make_tree_with_special_names(self):
Create a tree with filenames chosen to exercise the walk order.
def make_trees_with_special_names(self):
Both trees will use the special names.

But the contents will differ for each file.

def _create_special_names(self, tree, base_path):
Create a tree with paths that expose differences in sort orders.
def test_compare_empty_trees(self):
Undocumented
def added(self, tree, file_id):
Undocumented
@staticmethod
def get_path_entry(tree, file_id):
Undocumented
def content_changed(self, tree, file_id):
Undocumented
def kind_changed(self, from_tree, to_tree, file_id):
Undocumented
def missing(self, file_id, from_path, to_path, parent_id, kind):
Undocumented
def deleted(self, tree, file_id):
Undocumented
def renamed(self, from_tree, to_tree, file_id, content_changed):
Undocumented
def unchanged(self, tree, file_id):
Undocumented
def unversioned(self, tree, path):
Create an unversioned result.
def test_empty_to_abc_content(self):
Undocumented
def test_empty_specific_files(self):
Undocumented
def test_no_specific_files(self):
Undocumented
def test_empty_to_abc_content_a_only(self):
Undocumented
def test_abc_content_to_empty_a_only(self):
Undocumented
def test_abc_content_to_empty_b_only(self):
Undocumented
def test_empty_to_abc_content_a_and_c_only(self):
Undocumented
def test_abc_content_to_empty(self):
Undocumented
def test_content_modification(self):
Undocumented
def test_meta_modification(self):
Undocumented
def test_empty_dir(self):
an empty dir should not cause glitches to surrounding files.
def test_file_rename(self):
Undocumented
def test_file_rename_and_modification(self):
Undocumented
def test_specific_content_modification_grabs_parents(self):
Undocumented
def test_specific_content_modification_grabs_parents_root_changes(self):
Undocumented
def test_specific_with_rename_under_new_dir_reports_new_dir(self):
Undocumented
def test_specific_with_rename_under_dir_under_new_dir_reports_new_dir(self):
Undocumented
def test_specific_old_parent_same_path_new_parent(self):
Undocumented
def test_specific_old_parent_becomes_file(self):
Undocumented
def test_specific_old_parent_is_deleted(self):
Undocumented
def test_specific_old_parent_child_collides_with_unselected_new(self):
Undocumented
def test_specific_old_parent_child_dir_stops_being_dir(self):
Undocumented
def test_file_rename_and_meta_modification(self):
Undocumented
def test_file_becomes_unversionable_bug_438569(self):
Undocumented
def test_missing_in_target(self):
Test with the target files versioned but absent from disk.
def test_missing_and_renamed(self):
Undocumented
def test_only_in_source_and_missing(self):
Undocumented
def test_only_in_target_and_missing(self):
Undocumented
def test_only_in_target_missing_subtree_specific_bug_367632(self):
Undocumented
def test_unchanged_with_renames_and_modifications(self):
want_unchanged should generate a list of unchanged entries.
def test_compare_subtrees(self):
Undocumented
def test_disk_in_subtrees_skipped(self):
subtrees are considered not-in-the-current-tree.

This test tests the trivial case, where the basis has no paths in the current trees subtree.

def test_default_ignores_unversioned_files(self):
Undocumented
def test_unversioned_paths_in_tree(self):
Undocumented
def test_unversioned_paths_in_tree_specific_files(self):
Undocumented
def test_unversioned_paths_in_target_matching_source_old_names(self):
Undocumented
def test_similar_filenames(self):
Test when we have a few files with similar names.
def test_unversioned_subtree_only_emits_root(self):
Undocumented
def make_trees_with_symlinks(self):
Undocumented
def test_versioned_symlinks(self):
Undocumented
def test_versioned_symlinks_specific_files(self):
Undocumented
def test_tree_with_special_names(self):
Undocumented
def test_trees_with_special_names(self):
Undocumented
def test_trees_with_deleted_dir(self):
Undocumented
def test_added_unicode(self):
Undocumented
def test_deleted_unicode(self):
Undocumented
def test_modified_unicode(self):
Undocumented
def test_renamed_unicode(self):
Undocumented
def test_unchanged_unicode(self):
Undocumented
def test_unknown_unicode(self):
Undocumented
def test_unknown_empty_dir(self):
Undocumented
def test_rename_over_deleted(self):
Undocumented
def test_deleted_and_unknown(self):
Test a file marked removed, but still present on disk.
def test_renamed_and_added(self):
Test when we have renamed a file, and put another in its place.
def test_renamed_and_unknown(self):
A file was moved on the filesystem, but not in bzr.
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.