Part of bzrlib
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 63 | Function | internal_diff | Undocumented |
| 150 | Function | external_diff | Display a diff by calling out to the external diff program. |
| 394 | Function | show_diff_trees | Show in text form the changes from one tree to another. |
| 465 | Function | get_prop_change | Undocumented |
| 471 | Function | get_executable_change | Undocumented |
| 479 | Class | DiffPath | Base type for command object that compare files |
| 521 | Class | DiffKindChange | Special differ for file kind changes. |
| 556 | Class | DiffDirectory | No class docstring; 1/1 methods documented |
| 571 | Class | DiffSymlink | No class docstring; 1/2 methods documented |
| 609 | Class | DiffText | No class docstring; 2/3 methods documented |
| 679 | Class | DiffFromTool | Undocumented |
| 772 | Class | DiffTree | Provides textual representations of the difference between two trees. |
| 54 | Class | _PrematchedMatcher | Allow SequenceMatcher operations to use predetermined blocks |
| 113 | Function | _spawn_external_diff | Spawn the externall diff process, and return the child handle. |
| 278 | Function | _get_trees_to_diff | Get the trees and specific files to diff given a list of paths. |
| 362 | Function | _get_tree_to_diff | Undocumented |
| 379 | Function | _relative_paths_in_tree | Get the relative paths within a working tree. |
| 439 | Function | _patch_header_date | Returns a timestamp suitable for use in a patch header. |
| 445 | Function | _raise_if_nonexistent | Complain if paths are not in either inventory or tree. |
| Parameters | diffcmd | The command list to spawn |
| capture_errors | Capture stderr as well as setting LANG=C and LC_ALL=C. This lets us read and understand the output of diff, and respond to any errors. | |
| Returns | A Popen object. | |
This method works out the trees to be diff'ed and the files of interest within those trees.
| Parameters | path_list | the list of arguments passed to the diff command |
| revision_specs | Zero, one or two RevisionSpecs from the diff command line, saying what revisions to compare. | |
| old_url | The url of the old branch or tree. If None, the tree to use is taken from the first path, if any, or the current working tree. | |
| new_url | The url of the new branch or tree. If None, the tree to use is taken from the first path, if any, or the current working tree. | |
| Returns | a tuple of (old_tree, new_tree, specific_files, extra_trees) where extra_trees is a sequence of additional trees to search in for file-ids. | |
Each path may be either an absolute path or a path relative to the current working directory.
Show in text form the changes from one tree to another.
It's OK with the files exist in either tree's inventory, or if they exist in the tree but are not versioned.
This can be used by operations such as bzr status that can accept unknown or ignored files.