svn_fs_contents_different

Function svn_fs_contents_different 

Source
pub unsafe extern "C" fn svn_fs_contents_different(
    different_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,
    scratch_pool: *mut apr_pool_t,
) -> *mut svn_error_t
Expand description

Check if the contents of two root/path combos are different.

Set @a *different_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 scratch_pool.

@note For the purposes of preserving accurate history, certain bits of code (such as the repository dump code) need to care about the distinction between situations when two files have “different” content and when the contents of a given file “have changed” across two points in its history. We have a pair of functions that can answer both of these questions, svn_fs_contents_different() and svn_fs_contents_changed(). See issue 4598 for more details.

@see svn_fs_contents_changed

@since New in 1.9.