FreeBSD/contrib/subversion/subversion/libsvn_ra_serf/update.c
/* Initiates additional requests needed for a directory when not in "send-all"
 * mode */
Initiates additional requests needed for a directory when not in "send-all"
mode
Initiates additional requests needed for a directory when not in " send - all " mode
static svn_error_t *
fetch_for_dir(dir_baton_t *dir,
              apr_pool_t *scratch)
{
  report_context_t *ctx = dir->ctx;
  svn_ra_serf__connection_t *conn;
  if (ctx->sess->num_conns < ctx->sess->max_connections)
    SVN_ERR(open_connection_if_needed(ctx->sess, ctx->num_active_fetches +
                                                 ctx->num_active_propfinds));
  conn = get_best_connection(ctx);
  if (dir->fetch_props)
    {
      SVN_ERR(svn_ra_serf__create_propfind_handler(&dir->propfind_handler,
                                                   ctx->sess, dir->url,
                                                   ctx->target_rev, "0",
                                                   all_props,
                                                   set_dir_prop, dir,
                                                   dir->pool));
      dir->propfind_handler->conn = conn;
      dir->propfind_handler->done_delegate = dir_props_done;
      dir->propfind_handler->done_delegate_baton = dir;
      svn_ra_serf__request_create(dir->propfind_handler);
      ctx->num_active_propfinds++;
    }
  else
    SVN_ERR_MALFUNCTION();
  return SVN_NO_ERROR;
}
static svn_error_t * fetch_for_dir ( dir_baton_t * dir , apr_pool_t * scratch ) { report_context_t * ctx = dir -> ctx ; svn_ra_serf__connection_t * conn ; if ( ctx -> sess -> num_conns < ctx -> sess -> max_connections ) SVN_ERR ( open_connection_if_needed ( ctx -> sess , ctx -> num_active_fetches + ctx -> num_active_propfinds ) ) ; conn = get_best_connection ( ctx ) ; if ( dir -> fetch_props ) { SVN_ERR ( svn_ra_serf__create_propfind_handler ( & dir -> propfind_handler , ctx -> sess , dir -> url , ctx -> target_rev , " " , all_props , set_dir_prop , dir , dir -> pool ) ) ; dir -> propfind_handler -> conn = conn ; dir -> propfind_handler -> done_delegate = dir_props_done ; dir -> propfind_handler -> done_delegate_baton = dir ; svn_ra_serf__request_create ( dir -> propfind_handler ) ; ctx -> num_active_propfinds ++ ; } else SVN_ERR_MALFUNCTION ( ) ; return SVN_NO_ERROR ; }
Initiates additional requests needed for a directory when not in "send-all"
 mode
Initiates additional requests needed for a directory when not in " send - all " mode
/* Open extra connections if we have enough requests to send. */ /* What connection should we go on? */ /* If needed, create the PROPFIND to retrieve the file's properties. */ /* Create a serf request for the PROPFIND.  */