FreeBSD/contrib/subversion/subversion/libsvn_client/delete.c
/* Verify that the path can be deleted without losing stuff,
   i.e. ensure that there are no modified or unversioned resources
   under PATH.  This is similar to checking the output of the status
   command.  CTX is used for the client's config options.  POOL is
   used for all temporary allocations. */
Verify that the path can be deleted without losing stuff,
i.e. ensure that there are no modified or unversioned resources
under PATH.  This is similar to checking the output of the status
command.  CTX is used for the client's config options.  POOL is
used for all temporary allocations.
Verify that the path can be deleted without losing stuff i . e . ensure that there are no modified or unversioned resources under PATH . This is similar to checking the output of the status command . CTX is used for the client ' s config options . POOL is used for all temporary allocations .
static svn_error_t *
can_delete_node(svn_boolean_t *target_missing,
                const char *local_abspath,
                svn_client_ctx_t *ctx,
                apr_pool_t *scratch_pool)
{
  apr_array_header_t *ignores;
  struct can_delete_baton_t cdt;
  SVN_ERR(svn_wc_get_default_ignores(&ignores, ctx->config, scratch_pool));
  cdt.root_abspath = local_abspath;
  cdt.target_missing = FALSE;
  SVN_ERR(svn_wc_walk_status(ctx->wc_ctx,
                             local_abspath,
                             svn_depth_infinity,
                             FALSE ,
                             FALSE ,
                             FALSE ,
                             ignores,
                             find_undeletables, &cdt,
                             ctx->cancel_func,
                             ctx->cancel_baton,
                             scratch_pool));
  if (target_missing)
    *target_missing = cdt.target_missing;
  return SVN_NO_ERROR;
}
static svn_error_t * can_delete_node ( svn_boolean_t * target_missing , const char * local_abspath , svn_client_ctx_t * ctx , apr_pool_t * scratch_pool ) { apr_array_header_t * ignores ; struct can_delete_baton_t cdt ; SVN_ERR ( svn_wc_get_default_ignores ( & ignores , ctx -> config , scratch_pool ) ) ; cdt . root_abspath = local_abspath ; cdt . target_missing = FALSE ; SVN_ERR ( svn_wc_walk_status ( ctx -> wc_ctx , local_abspath , svn_depth_infinity , FALSE , FALSE , FALSE , ignores , find_undeletables , & cdt , ctx -> cancel_func , ctx -> cancel_baton , scratch_pool ) ) ; if ( target_missing ) * target_missing = cdt . target_missing ; return SVN_NO_ERROR ; }
Verify that the path can be deleted without losing stuff,
i.e.
Verify that the path can be deleted without losing stuff i . e .
/* Use an infinite-depth status check to see if there's anything in
     or under PATH which would make it unsafe for deletion.  The
     status callback function find_undeletables() makes the
     determination, returning an error if it finds anything that shouldn't
     be deleted. */ /* get_all */ /* no_ignore */ /* ignore_text_mod */