Module compare

Source
Expand description

File comparison utilities.

Structs§

DiffRequest
Used to signal diff channels to calculate diffs of the requested entity.

Functions§

diff_content_digest
Check whether content digests of files and directories in xvc_path_store has changed.
diff_dir_content_digest
This is used to detect content changes in elements of path collections, e.g., directories or globs. When the content of these elements change, their content digests also change. We collect them together and calculate their digest to detect changes in the collection.
diff_file_content_digest
Compare the content of a file with the stored content digest.
diff_recheck_method
For each command, we have a single requested_recheck_method. We build an actual store by repeating it for all entities we have.
diff_text_or_binary
For each command, we have a single requested_text_or_binary. We build an actual store by repeating it for all entities we have. This is used to find when the user wants to change recheck method.
diff_xvc_path_metadata
Compare the records and the actual info from pmm to find the differences in paths. This is used to detect changes between actual paths and our records. New entities are created for those paths missing from the records.
make_file_content_digest_diff_handler
This is a channel version of diff_file_content_digest. It creates a thread that listens to requests diff_request channel and sends the calculated diffs to the diff_result channel.