Lines Matching defs:eb

278   struct edit_baton *eb = pb->edit_baton;
286 full_path = svn_fspath__join(eb->base_path,
306 SVN_ERR(check_authz(eb, full_path, eb->txn_root,
308 SVN_ERR(check_authz(eb, pb->path, eb->txn_root,
315 SVN_ERR(svn_fs_check_path(&kind, eb->txn_root, full_path, subpool));
322 repos_url_len = strlen(eb->repos_url);
323 if (strncmp(copy_path, eb->repos_url, repos_url_len) != 0)
332 SVN_ERR(svn_fs_revision_root(&copy_root, eb->fs,
337 SVN_ERR(check_authz(eb, fs_path, copy_root, required, subpool));
340 eb->txn_root, full_path, subpool));
350 SVN_ERR(check_authz(eb, full_path, eb->txn_root,
352 SVN_ERR(check_authz(eb, pb->path, eb->txn_root,
355 SVN_ERR(svn_fs_make_dir(eb->txn_root, full_path, subpool));
357 SVN_ERR(svn_fs_make_file(eb->txn_root, full_path, subpool));
366 *return_baton = make_dir_baton(eb, pb, full_path, was_copied,
372 new_fb->edit_baton = eb;
392 struct edit_baton *eb = edit_baton;
398 SVN_ERR(svn_fs_youngest_rev(&youngest, eb->fs, eb->pool));
402 if (eb->txn_owner)
404 SVN_ERR(svn_repos_fs_begin_txn_for_commit2(&(eb->txn),
405 eb->repos,
407 eb->revprop_table,
408 eb->pool));
413 apr_array_header_t *props = svn_prop_hash_to_array(eb->revprop_table,
415 SVN_ERR(svn_repos_fs_change_txn_props(eb->txn, props, pool));
417 SVN_ERR(svn_fs_txn_name(&(eb->txn_name), eb->txn, eb->pool));
418 SVN_ERR(svn_fs_txn_root(&(eb->txn_root), eb->txn, eb->pool));
428 dirb->path = apr_pstrdup(pool, eb->base_path);
444 struct edit_baton *eb = parent->edit_baton;
450 full_path = svn_fspath__join(eb->base_path,
454 SVN_ERR(svn_fs_check_path(&kind, eb->txn_root, full_path, pool));
460 SVN_ERR(check_authz(eb, full_path, eb->txn_root,
462 SVN_ERR(check_authz(eb, parent->path, eb->txn_root,
471 SVN_ERR(svn_fs_node_created_rev(&cr_rev, eb->txn_root, full_path, pool));
478 return svn_fs_delete(eb->txn_root, full_path, pool);
503 struct edit_baton *eb = pb->edit_baton;
507 full_path = svn_fspath__join(eb->base_path,
512 SVN_ERR(svn_fs_check_path(&kind, eb->txn_root, full_path, pool));
519 *child_baton = make_dir_baton(eb, pb, full_path, pb->was_copied,
570 struct edit_baton *eb = pb->edit_baton;
575 full_path = svn_fspath__join(eb->base_path,
579 SVN_ERR(check_authz(eb, full_path, eb->txn_root,
583 SVN_ERR(svn_fs_node_created_rev(&cr_rev, eb->txn_root, full_path,
593 new_fb->edit_baton = eb;
612 struct edit_baton *eb = fb->edit_baton;
615 SVN_ERR(check_authz(eb, fb->path, eb->txn_root,
618 return svn_repos_fs_change_node_prop(eb->txn_root, fb->path,
658 struct edit_baton *eb = db->edit_baton;
661 SVN_ERR(check_authz(eb, db->path, eb->txn_root,
670 eb->txn_root, db->path, pool));
676 return svn_repos_fs_change_node_prop(eb->txn_root, db->path,
748 struct edit_baton *eb = edit_baton;
757 if (! eb->txn)
762 err = svn_repos_fs_commit_txn(&conflict, eb->repos,
763 &new_revision, eb->txn, pool);
771 if (eb->txn_root)
772 svn_fs_close_root(eb->txn_root);
801 eb->txn_aborted = TRUE;
805 svn_fs_abort_txn(eb->txn, pool)));
815 return svn_error_trace(invoke_commit_cb(eb->commit_callback,
816 eb->commit_callback_baton,
817 eb->repos->fs,
828 struct edit_baton *eb = edit_baton;
829 if ((! eb->txn) || (! eb->txn_owner) || eb->txn_aborted)
832 eb->txn_aborted = TRUE;
835 if (eb->txn_root)
836 svn_fs_close_root(eb->txn_root);
838 return svn_error_trace(svn_fs_abort_txn(eb->txn, pool));
850 struct edit_baton *eb = baton;
854 SVN_ERR(svn_fs_revision_root(&fs_root, eb->fs,
855 svn_fs_txn_base_revision(eb->txn),
877 struct edit_baton *eb = baton;
881 base_revision = svn_fs_txn_base_revision(eb->txn);
883 SVN_ERR(svn_fs_revision_root(&fs_root, eb->fs, base_revision, scratch_pool));
898 struct edit_baton *eb = baton;
906 base_revision = svn_fs_txn_base_revision(eb->txn);
908 SVN_ERR(svn_fs_revision_root(&fs_root, eb->fs, base_revision, scratch_pool));
950 struct edit_baton *eb;
969 eb = apr_pcalloc(subpool, sizeof(*eb));
986 eb->pool = subpool;
987 eb->revprop_table = svn_prop_hash_dup(revprop_table, subpool);
988 eb->commit_callback = commit_callback;
989 eb->commit_callback_baton = commit_baton;
990 eb->authz_callback = authz_callback;
991 eb->authz_baton = authz_baton;
992 eb->base_path = svn_fspath__canonicalize(base_path, subpool);
993 eb->repos = repos;
994 eb->repos_url = repos_url;
995 eb->repos_name = svn_dirent_basename(svn_repos_path(repos, subpool),
997 eb->fs = svn_repos_fs(repos);
998 eb->txn = txn;
999 eb->txn_owner = txn == NULL;
1001 *edit_baton = eb;
1007 shim_callbacks->fetch_baton = eb;
1010 eb->repos_url, eb->base_path,
1019 ev2_check_authz(const struct ev2_baton *eb,
1027 if (eb->authz == NULL)
1035 SVN_ERR(svn_repos_authz_check_access(eb->authz, eb->authz_repos_name, fspath,
1036 eb->authz_user, required,
1058 struct ev2_baton *eb = baton;
1060 SVN_ERR(svn_editor_add_directory(eb->inner, relpath, children, props,
1076 struct ev2_baton *eb = baton;
1078 SVN_ERR(svn_editor_add_file(eb->inner, relpath, checksum, contents, props,
1093 struct ev2_baton *eb = baton;
1095 SVN_ERR(svn_editor_add_symlink(eb->inner, relpath, target, props,
1109 struct ev2_baton *eb = baton;
1111 SVN_ERR(svn_editor_add_absent(eb->inner, relpath, kind, replaces_rev));
1125 struct ev2_baton *eb = baton;
1127 SVN_ERR(svn_editor_alter_directory(eb->inner, relpath, revision,
1143 struct ev2_baton *eb = baton;
1145 SVN_ERR(svn_editor_alter_file(eb->inner, relpath, revision, props,
1160 struct ev2_baton *eb = baton;
1162 SVN_ERR(svn_editor_alter_symlink(eb->inner, relpath, revision, props,
1175 struct ev2_baton *eb = baton;
1177 SVN_ERR(svn_editor_delete(eb->inner, relpath, revision));
1191 struct ev2_baton *eb = baton;
1193 SVN_ERR(svn_editor_copy(eb->inner, src_relpath, src_revision, dst_relpath,
1208 struct ev2_baton *eb = baton;
1210 SVN_ERR(svn_editor_move(eb->inner, src_relpath, src_revision, dst_relpath,
1223 struct ev2_baton *eb = baton;
1225 SVN_ERR(svn_editor_rotate(eb->inner, relpaths, revisions));
1235 struct ev2_baton *eb = baton;
1244 SVN_ERR(svn_repos__parse_hooks_env(&hooks_env, eb->repos->hooks_env_path,
1249 SVN_ERR(svn_repos__hooks_pre_commit(eb->repos, hooks_env,
1250 eb->txn_name, scratch_pool));
1254 eb->inner, scratch_pool, scratch_pool));
1266 err = svn_repos__hooks_post_commit(eb->repos, hooks_env, revision,
1267 eb->txn_name, scratch_pool);
1284 return svn_error_trace(invoke_commit_cb(eb->commit_cb, eb->commit_baton,
1285 eb->repos->fs, revision,
1296 struct ev2_baton *eb = baton;
1298 SVN_ERR(svn_editor_abort(eb->inner));
1355 struct ev2_baton *eb;
1368 eb = apr_palloc(result_pool, sizeof(*eb));
1369 eb->repos = repos;
1370 eb->authz = authz;
1371 eb->authz_repos_name = authz_repos_name;
1372 eb->authz_user = authz_user;
1373 eb->commit_cb = commit_cb;
1374 eb->commit_baton = commit_baton;
1376 SVN_ERR(svn_fs__editor_create(&eb->inner, &eb->txn_name,
1382 SVN_ERR(apply_revprops(repos->fs, eb->txn_name, revprops, scratch_pool));
1388 eb->txn_name, scratch_pool));
1391 SVN_ERR(svn_editor_create(editor, eb, cancel_func, cancel_baton,