Lines Matching defs:ctx

750   proppatch_context_t *ctx = baton;
766 for (hi = apr_hash_first(scratch_pool, ctx->prop_changes);
773 || (ctx->old_props && svn_hash_gets(ctx->old_props, prop->name)))
784 SVN_ERR(write_prop_xml(ctx, body_bkt, alloc, prop,
798 for (hi = apr_hash_first(scratch_pool, ctx->prop_changes);
805 && !(ctx->old_props && svn_hash_gets(ctx->old_props, prop->name)))
816 SVN_ERR(write_prop_xml(ctx, body_bkt, alloc, prop,
895 file_context_t *ctx = baton;
897 if (SVN_IS_VALID_REVNUM(ctx->base_revision))
900 apr_psprintf(pool, "%ld", ctx->base_revision));
903 if (ctx->base_checksum)
906 ctx->base_checksum);
909 if (ctx->result_checksum)
912 ctx->result_checksum);
915 SVN_ERR(maybe_set_lock_token_header(headers, ctx->commit_ctx,
916 ctx->relpath, pool));
1402 delete_context_t *ctx = baton;
1409 svn_ra_serf__merge_lock_token_list(ctx->commit_ctx->lock_tokens,
1410 ctx->relpath, body, alloc, pool);
1946 file_context_t *ctx = file_baton;
1961 ctx->svndiff =
1963 ctx->pool);
1964 ctx->stream = svn_ra_serf__request_body_get_stream(ctx->svndiff);
1967 ctx->commit_ctx->session);
1970 svn_stream_disown(ctx->stream, pool),
1974 ctx->base_checksum = apr_pstrdup(ctx->pool, base_checksum);
2060 file_context_t *ctx = file_baton;
2071 ctx->svndiff_sent = TRUE;
2072 ctx->base_checksum = base_checksum;
2074 handler = svn_ra_serf__create_handler(ctx->commit_ctx->session,
2077 handler->path = ctx->url;
2081 prc->file_ctx = ctx;
2086 open_txdelta_baton.session = ctx->commit_ctx->session;
2096 handler->header_delegate_baton = ctx;
2108 if (ctx->added && !ctx->copy_path)
2143 file_context_t *ctx = file_baton;
2146 ctx->result_checksum = text_checksum;
2151 if ((!ctx->svndiff) && ctx->added && (!ctx->copy_path))
2155 if ((ctx->svndiff || put_empty_file) && !ctx->svndiff_sent)
2160 handler = svn_ra_serf__create_handler(ctx->commit_ctx->session,
2164 handler->path = ctx->url;
2172 handler->body_delegate_baton = ctx;
2177 SVN_ERR(svn_stream_close(ctx->stream));
2181 ctx->svndiff);
2186 handler->header_delegate_baton = ctx;
2190 if (ctx->added && ! ctx->copy_path)
2200 if (ctx->svndiff)
2201 SVN_ERR(svn_ra_serf__request_body_cleanup(ctx->svndiff, scratch_pool));
2204 if (apr_hash_count(ctx->prop_changes))
2210 proppatch->relpath = ctx->relpath;
2211 proppatch->path = ctx->url;
2212 proppatch->commit_ctx = ctx->commit_ctx;
2213 proppatch->prop_changes = ctx->prop_changes;
2214 proppatch->base_revision = ctx->base_revision;
2216 SVN_ERR(proppatch_resource(ctx->commit_ctx->session,
2220 if (ctx->result_checksum && ctx->remote_result_checksum)
2225 ctx->result_checksum, scratch_pool));
2227 if (!svn_checksum_match(result_checksum, ctx->remote_result_checksum))
2229 ctx->remote_result_checksum,
2232 svn_dirent_local_style(ctx->relpath,
2236 ctx->commit_ctx->open_batons--;
2245 commit_context_t *ctx = edit_baton;
2247 ctx->activity_url ? ctx->activity_url : ctx->txn_url;
2251 if (ctx->open_batons > 0)
2258 ctx->session,
2260 ctx->lock_tokens,
2261 ctx->keep_locks,
2264 ctx->txn_url = NULL; /* If HTTPv2, the txn is now done */
2267 if (ctx->callback)
2268 err = ctx->callback(commit_info, ctx->callback_baton, pool);
2271 if (ctx->activity_url)
2275 handler = svn_ra_serf__create_handler(ctx->session, pool);
2278 handler->path = ctx->activity_url;
2283 ctx->activity_url = NULL; /* Don't try again in abort_edit() on fail */
2302 commit_context_t *ctx = edit_baton;
2307 if (! (ctx->activity_url || ctx->txn_url))
2312 serf_connection_reset(ctx->session->conns[0]->conn);
2315 handler = svn_ra_serf__create_handler(ctx->session, pool);
2323 if (USING_HTTPV2_COMMIT_SUPPORT(ctx)) /* HTTP v2 */
2324 handler->path = ctx->txn_url;
2326 handler->path = ctx->activity_url;
2341 ctx->activity_url = NULL;
2342 ctx->txn_url = NULL;
2360 commit_context_t *ctx;
2365 ctx = apr_pcalloc(pool, sizeof(*ctx));
2367 ctx->pool = pool;
2369 ctx->session = session;
2371 ctx->revprop_table = svn_prop_hash_dup(revprop_table, pool);
2380 svn_hash_sets(ctx->revprop_table,
2383 svn_hash_sets(ctx->revprop_table,
2388 ctx->callback = callback;
2389 ctx->callback_baton = callback_baton;
2391 ctx->lock_tokens = (lock_tokens && apr_hash_count(lock_tokens))
2393 ctx->keep_locks = keep_locks;
2395 ctx->deleted_entries = apr_hash_make(ctx->pool);
2419 *edit_baton = ctx;