FreeBSD/contrib/subversion/subversion/svnserve/serve.c
/* Set BATON->FS_PATH for the repository URL found in PARAMS. */
Set BATON->FS_PATH for the repository URL found in PARAMS.
Set BATON - > FS_PATH for the repository URL found in PARAMS .
static svn_error_t *reparent(svn_ra_svn_conn_t *conn, apr_pool_t *pool,
                             apr_array_header_t *params, void *baton)
{
  server_baton_t *b = baton;
  const char *url;
  const char *fs_path;
  SVN_ERR(svn_ra_svn__parse_tuple(params, pool, "c", &url));
  url = svn_uri_canonicalize(url, pool);
  SVN_ERR(trivial_auth_request(conn, pool, b));
  SVN_CMD_ERR(get_fs_path(svn_path_uri_decode(b->repository->repos_url, pool),
                          svn_path_uri_decode(url, pool),
                          &fs_path));
  SVN_ERR(log_command(b, conn, pool, "%s", svn_log__reparent(fs_path, pool)));
  svn_stringbuf_set(b->repository->fs_path, fs_path);
  SVN_ERR(svn_ra_svn__write_cmd_response(conn, pool, ""));
  return SVN_NO_ERROR;
}
static svn_error_t * reparent ( svn_ra_svn_conn_t * conn , apr_pool_t * pool , apr_array_header_t * params , void * baton ) { server_baton_t * b = baton ; const char * url ; const char * fs_path ; SVN_ERR ( svn_ra_svn__parse_tuple ( params , pool , " " , & url ) ) ; url = svn_uri_canonicalize ( url , pool ) ; SVN_ERR ( trivial_auth_request ( conn , pool , b ) ) ; SVN_CMD_ERR ( get_fs_path ( svn_path_uri_decode ( b -> repository -> repos_url , pool ) , svn_path_uri_decode ( url , pool ) , & fs_path ) ) ; SVN_ERR ( log_command ( b , conn , pool , " " , svn_log__reparent ( fs_path , pool ) ) ) ; svn_stringbuf_set ( b -> repository -> fs_path , fs_path ) ; SVN_ERR ( svn_ra_svn__write_cmd_response ( conn , pool , " " ) ) ; return SVN_NO_ERROR ; }
Set BATON->FS_PATH for the repository URL found in PARAMS.
Set BATON - > FS_PATH for the repository URL found in PARAMS .