FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Return the cache key as a combination of REV_ROOT->REV, the inheritance
   flags INHERIT and ADJUST_INHERITED_MERGEINFO, and the PATH.  The result
   will be allocated in RESULT_POOL.
 */
Return the cache key as a combination of REV_ROOT->REV, the inheritance
flags INHERIT and ADJUST_INHERITED_MERGEINFO, and the PATH.  The result
will be allocated in RESULT_POOL.
Return the cache key as a combination of REV_ROOT - > REV the inheritance flags INHERIT and ADJUST_INHERITED_MERGEINFO and the PATH . The result will be allocated in RESULT_POOL .
static const char *
mergeinfo_cache_key(const char *path,
                    svn_fs_root_t *rev_root,
                    svn_mergeinfo_inheritance_t inherit,
                    svn_boolean_t adjust_inherited_mergeinfo,
                    apr_pool_t *result_pool)
{
  apr_int64_t number = rev_root->rev;
  number = number * 4
         + (inherit == svn_mergeinfo_nearest_ancestor ? 2 : 0)
         + (adjust_inherited_mergeinfo ? 1 : 0);
  return svn_fs_x__combine_number_and_string(number, path, result_pool);
}
static const char * mergeinfo_cache_key ( const char * path , svn_fs_root_t * rev_root , svn_mergeinfo_inheritance_t inherit , svn_boolean_t adjust_inherited_mergeinfo , apr_pool_t * result_pool ) { apr_int64_t number = rev_root -> rev ; number = number * 4 + ( inherit == svn_mergeinfo_nearest_ancestor ? 2 : 0 ) + ( adjust_inherited_mergeinfo ? 1 : 0 ) ; return svn_fs_x__combine_number_and_string ( number , path , result_pool ) ; }
Return the cache key as a combination of REV_ROOT->REV, the inheritance
flags INHERIT and ADJUST_INHERITED_MERGEINFO, and the PATH.
Return the cache key as a combination of REV_ROOT - > REV the inheritance flags INHERIT and ADJUST_INHERITED_MERGEINFO and the PATH .