svn_fs_contents_changed

Function svn_fs_contents_changed 

Source
pub unsafe extern "C" fn svn_fs_contents_changed(
    changed_p: *mut svn_boolean_t,
    root1: *mut svn_fs_root_t,
    path1: *const c_char,
    root2: *mut svn_fs_root_t,
    path2: *const c_char,
    pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Check if the contents of two root/path combos have changed.

Set @a *changed_p to #TRUE if the file contents at @a path1 under @a root1 differ from those at @a path2 under @a root2, or set it to #FALSE if they are the same. Both paths must exist under their respective roots, and both roots must be in the same filesystem. Do any necessary temporary allocation in @a pool.

@note svn_fs_contents_changed() was not designed to be used to detect when two files have different content, but really to detect when the contents of a given file have changed across two points in its history. For the purposes of preserving accurate history, certain bits of code (such as the repository dump code) need to care about this distinction. For example, it’s not an error from the FS API point of view to call svn_fs_apply_textdelta() and explicitly set a file’s contents to exactly what they were before the edit was made. We have a pair of functions that can answer both of these questions, svn_fs_contents_changed() and svn_fs_contents_different(). See issue 4598 for more details.

@see svn_fs_contents_different