FreeBSD/contrib/subversion/subversion/libsvn_fs_x/tree.c
/* Adds mergeinfo for each descendant of PATH (but not PATH itself)
   under ROOT to RESULT_CATALOG.  Returned values are allocated in
   RESULT_POOL; temporary values in POOL. */
Adds mergeinfo for each descendant of PATH (but not PATH itself)
under ROOT to RESULT_CATALOG.  Returned values are allocated in
RESULT_POOL; temporary values in POOL.
Adds mergeinfo for each descendant of PATH ( but not PATH itself ) under ROOT to RESULT_CATALOG . Returned values are allocated in RESULT_POOL ; temporary values in POOL .
static svn_error_t *
add_descendant_mergeinfo(svn_mergeinfo_catalog_t result_catalog,
                         svn_fs_root_t *root,
                         const char *path,
                         apr_pool_t *result_pool,
                         apr_pool_t *scratch_pool)
{
  dag_node_t *this_dag;
  svn_boolean_t go_down;
  SVN_ERR(get_dag(&this_dag, root, path, scratch_pool));
  SVN_ERR(svn_fs_x__dag_has_descendants_with_mergeinfo(&go_down,
                                                       this_dag));
  if (go_down)
    SVN_ERR(crawl_directory_dag_for_mergeinfo(root,
                                              path,
                                              this_dag,
                                              result_catalog,
                                              result_pool,
                                              scratch_pool));
  return SVN_NO_ERROR;
}
static svn_error_t * add_descendant_mergeinfo ( svn_mergeinfo_catalog_t result_catalog , svn_fs_root_t * root , const char * path , apr_pool_t * result_pool , apr_pool_t * scratch_pool ) { dag_node_t * this_dag ; svn_boolean_t go_down ; SVN_ERR ( get_dag ( & this_dag , root , path , scratch_pool ) ) ; SVN_ERR ( svn_fs_x__dag_has_descendants_with_mergeinfo ( & go_down , this_dag ) ) ; if ( go_down ) SVN_ERR ( crawl_directory_dag_for_mergeinfo ( root , path , this_dag , result_catalog , result_pool , scratch_pool ) ) ; return SVN_NO_ERROR ; }
Adds mergeinfo for each descendant of PATH (but not PATH itself)
under ROOT to RESULT_CATALOG.
Adds mergeinfo for each descendant of PATH ( but not PATH itself ) under ROOT to RESULT_CATALOG .