summaryrefslogtreecommitdiff
path: root/subversion/mod_dav_svn/reports/replay.c
diff options
context:
space:
mode:
Diffstat (limited to 'subversion/mod_dav_svn/reports/replay.c')
-rw-r--r--subversion/mod_dav_svn/reports/replay.c34
1 files changed, 15 insertions, 19 deletions
diff --git a/subversion/mod_dav_svn/reports/replay.c b/subversion/mod_dav_svn/reports/replay.c
index 0d57f32..886dbba 100644
--- a/subversion/mod_dav_svn/reports/replay.c
+++ b/subversion/mod_dav_svn/reports/replay.c
@@ -44,7 +44,7 @@
typedef struct edit_baton_t {
apr_bucket_brigade *bb;
- ap_filter_t *output;
+ dav_svn__output *output;
svn_boolean_t started;
svn_boolean_t sending_textdelta;
int compression_level;
@@ -108,7 +108,7 @@ add_file_or_directory(const char *file_or_directory,
SVN_ERR(maybe_close_textdelta(eb));
- *added_baton = (void *)eb;
+ *added_baton = eb;
if (! copyfrom_path)
SVN_ERR(dav_svn__brigade_printf(eb->bb, eb->output,
@@ -135,7 +135,7 @@ open_file_or_directory(const char *file_or_directory,
{
const char *qname = apr_xml_quote_string(pool, path, 1);
SVN_ERR(maybe_close_textdelta(eb));
- *opened_baton = (void *)eb;
+ *opened_baton = eb;
return dav_svn__brigade_printf(eb->bb, eb->output,
"<S:open-%s name=\"%s\" rev=\"%ld\"/>"
DEBUG_CR,
@@ -367,7 +367,7 @@ static void
make_editor(const svn_delta_editor_t **editor,
void **edit_baton,
apr_bucket_brigade *bb,
- ap_filter_t *output,
+ dav_svn__output *output,
int compression_level,
apr_pool_t *pool)
{
@@ -401,20 +401,19 @@ make_editor(const svn_delta_editor_t **editor,
static dav_error *
malformed_element_error(const char *tagname, apr_pool_t *pool)
{
- return dav_svn__new_error_tag(pool, HTTP_BAD_REQUEST, 0,
+ return dav_svn__new_error_svn(pool, HTTP_BAD_REQUEST, 0,
apr_pstrcat(pool,
"The request's '", tagname,
"' element is malformed; there "
"is a problem with the client.",
- (char *)NULL),
- SVN_DAV_ERROR_NAMESPACE, SVN_DAV_ERROR_TAG);
+ SVN_VA_NULL));
}
dav_error *
dav_svn__replay_report(const dav_resource *resource,
const apr_xml_doc *doc,
- ap_filter_t *output)
+ dav_svn__output *output)
{
dav_error *derr = NULL;
svn_revnum_t low_water_mark = SVN_INVALID_REVNUM;
@@ -456,13 +455,11 @@ dav_svn__replay_report(const dav_resource *resource,
ns = dav_svn__find_ns(doc->namespaces, SVN_XML_NAMESPACE);
if (ns == -1)
- return dav_svn__new_error_tag(resource->pool, HTTP_BAD_REQUEST, 0,
+ return dav_svn__new_error_svn(resource->pool, HTTP_BAD_REQUEST, 0,
"The request does not contain the 'svn:' "
"namespace, so it is not going to have an "
"svn:revision element. That element is "
- "required.",
- SVN_DAV_ERROR_NAMESPACE,
- SVN_DAV_ERROR_TAG);
+ "required");
for (child = doc->root->first_child; child != NULL; child = child->next)
{
@@ -521,21 +518,20 @@ dav_svn__replay_report(const dav_resource *resource,
}
if (! SVN_IS_VALID_REVNUM(rev))
- return dav_svn__new_error_tag
+ return dav_svn__new_error_svn
(resource->pool, HTTP_BAD_REQUEST, 0,
- "Request was missing the revision argument.",
- SVN_DAV_ERROR_NAMESPACE, SVN_DAV_ERROR_TAG);
+ "Request was missing the revision argument");
if (! SVN_IS_VALID_REVNUM(low_water_mark))
- return dav_svn__new_error_tag
+ return dav_svn__new_error_svn
(resource->pool, HTTP_BAD_REQUEST, 0,
- "Request was missing the low-water-mark argument.",
- SVN_DAV_ERROR_NAMESPACE, SVN_DAV_ERROR_TAG);
+ "Request was missing the low-water-mark argument");
if (! base_dir)
base_dir = "";
- bb = apr_brigade_create(resource->pool, output->c->bucket_alloc);
+ bb = apr_brigade_create(resource->pool,
+ dav_svn__output_get_bucket_alloc(output));
if ((err = svn_fs_revision_root(&root, resource->info->repos->fs, rev,
resource->pool)))