Lines Matching defs:eb

52   struct dump_edit_baton *eb;
92 struct dump_edit_baton *eb;
186 struct dump_edit_baton *eb = edit_baton;
201 new_db->eb = eb;
219 * PB->eb). PB is the directory baton of this directory's parent, or
229 new_fb->eb = pb->eb;
338 do_dump_newlines(struct dump_edit_baton *eb,
344 SVN_ERR(svn_stream_puts(eb->stream, "\n\n"));
362 dump_node(struct dump_edit_baton *eb,
379 if (eb->update_anchor_relpath)
380 node_relpath = svn_relpath_join(eb->update_anchor_relpath,
384 SVN_ERR(svn_stream_printf(eb->stream, pool,
390 SVN_ERR(svn_stream_printf(eb->stream, pool,
393 SVN_ERR(svn_stream_printf(eb->stream, pool,
406 SVN_ERR(svn_stream_puts(eb->stream,
415 SVN_ERR(dump_node(eb, repos_relpath, db, fb, svn_node_action_delete,
417 SVN_ERR(dump_node(eb, repos_relpath, db, fb, svn_node_action_add,
423 SVN_ERR(svn_stream_puts(eb->stream,
438 SVN_ERR(svn_stream_puts(eb->stream,
444 SVN_ERR(svn_stream_puts(eb->stream, "\n\n"));
450 SVN_ERR(svn_stream_puts(eb->stream,
456 SVN_ERR(svn_stream_printf(eb->stream, pool,
503 dump_mkdir(struct dump_edit_baton *eb,
512 SVN_ERR(svn_stream_printf(eb->stream, pool,
517 SVN_ERR(svn_stream_printf(eb->stream, pool,
521 SVN_ERR(svn_stream_puts(eb->stream,
529 SVN_ERR(svn_stream_write(eb->stream, prop_header->data, &len));
533 SVN_ERR(svn_stream_puts(eb->stream, buf));
534 SVN_ERR(svn_stream_puts(eb->stream, "\n"));
535 SVN_ERR(svn_stream_write(eb->stream, prop_content->data, &len));
538 SVN_ERR(svn_stream_puts(eb->stream, "\n\n"));
546 dump_pending(struct dump_edit_baton *eb,
549 if (! eb->pending_baton)
552 if (eb->pending_kind == svn_node_dir)
554 struct dir_baton *db = eb->pending_baton;
557 SVN_ERR(do_dump_props(NULL, eb->stream, db->props, db->deleted_props,
561 SVN_ERR(do_dump_newlines(eb, &(db->dump_newlines), scratch_pool));
563 else if (eb->pending_kind == svn_node_file)
565 struct file_baton *fb = eb->pending_baton;
568 SVN_ERR(do_dump_props(NULL, eb->stream, fb->props, fb->deleted_props,
575 eb->pending_baton = NULL;
576 eb->pending_kind = svn_node_none;
592 struct dump_edit_baton *eb = edit_baton;
596 svn_pool_clear(eb->pool);
600 if (eb->update_anchor_relpath)
603 const char *parent_path = eb->update_anchor_relpath;
625 SVN_ERR(dump_mkdir(eb, dir_to_add, iterpool));
633 SVN_ERR(dump_node(eb, new_db->repos_relpath, new_db,
640 eb->pending_baton = new_db;
641 eb->pending_kind = svn_node_dir;
667 SVN_ERR(dump_pending(pb->eb, pool));
673 svn_hash_sets(pb->deleted_entries, apr_pstrdup(pb->eb->pool, path), pb);
693 SVN_ERR(dump_pending(pb->eb, pool));
695 new_db = make_dir_baton(path, copyfrom_path, copyfrom_rev, pb->eb,
696 pb, TRUE, pb->eb->pool);
705 SVN_ERR(dump_node(pb->eb, new_db->repos_relpath, new_db, NULL,
719 pb->eb->pending_baton = new_db;
720 pb->eb->pending_kind = svn_node_dir;
740 SVN_ERR(dump_pending(pb->eb, pool));
748 pb->eb->pool);
752 new_db = make_dir_baton(path, copyfrom_path, copyfrom_rev, pb->eb, pb,
753 FALSE, pb->eb->pool);
770 this_pending = (db->eb->pending_baton == db);
772 SVN_ERR(dump_pending(db->eb, pool));
785 SVN_ERR(dump_node(db->eb, db->repos_relpath, db, NULL,
788 db->eb->pending_baton = db;
789 db->eb->pending_kind = svn_node_dir;
790 SVN_ERR(dump_pending(db->eb, pool));
799 SVN_ERR(dump_node(db->eb, path, NULL, NULL, svn_node_action_delete,
823 SVN_ERR(dump_pending(pb->eb, pool));
860 SVN_ERR(dump_pending(pb->eb, pool));
871 pb->eb->pool);
892 this_pending = (db->eb->pending_baton == db);
894 SVN_ERR(dump_pending(db->eb, pool));
965 struct dump_edit_baton *eb = fb->eb;
972 hb = apr_pcalloc(eb->pool, sizeof(*hb));
975 delta_filestream = svn_stream_from_aprfile2(eb->delta_file, TRUE, pool);
984 fb->base_checksum = apr_pstrdup(eb->pool, base_checksum);
1001 struct dump_edit_baton *eb = fb->eb;
1007 SVN_ERR(dump_pending(eb, pool));
1010 SVN_ERR(dump_node(eb, fb->repos_relpath, NULL, fb,
1017 SVN_ERR(do_dump_props(&propstring, eb->stream, fb->props, fb->deleted_props,
1026 SVN_ERR(svn_stream_puts(eb->stream,
1030 err = apr_file_info_get(info, APR_FINFO_SIZE, eb->delta_file);
1036 SVN_ERR(svn_stream_printf(eb->stream, pool,
1042 SVN_ERR(svn_stream_printf(eb->stream, pool,
1048 SVN_ERR(svn_stream_printf(eb->stream, pool,
1057 SVN_ERR(svn_stream_printf(eb->stream, pool,
1062 SVN_ERR(svn_stream_printf(eb->stream, pool,
1070 SVN_ERR(svn_stream_write(eb->stream, propstring->data,
1083 and copy the stream to eb->stream. Then close the stream and
1090 SVN_ERR(svn_io_file_seek(eb->delta_file, APR_SET, &offset, pool));
1091 delta_filestream = svn_stream_from_aprfile2(eb->delta_file, TRUE, pool);
1092 SVN_ERR(svn_stream_copy3(delta_filestream, eb->stream, NULL, NULL, pool));
1096 SVN_ERR(svn_io_file_trunc(eb->delta_file, 0, pool));
1101 SVN_ERR(svn_stream_puts(eb->stream, "\n\n"));
1120 struct dump_edit_baton *eb = baton;
1128 base_revision = eb->current_revision - 1;
1134 err = svn_ra_get_file(eb->ra_session, path, base_revision,
1160 struct dump_edit_baton *eb = baton;
1167 base_revision = eb->current_revision - 1;
1169 SVN_ERR(svn_ra_check_path(eb->ra_session, path, base_revision, &node_kind,
1174 SVN_ERR(svn_ra_get_file(eb->ra_session, path, base_revision,
1181 SVN_ERR(svn_ra_get_dir2(eb->ra_session, NULL, NULL, props, path,
1204 struct dump_edit_baton *eb = baton;
1210 base_revision = eb->current_revision - 1;
1212 SVN_ERR(svn_ra_check_path(eb->ra_session, path, base_revision, kind,
1229 struct dump_edit_baton *eb;
1234 eb = apr_pcalloc(pool, sizeof(struct dump_edit_baton));
1235 eb->stream = stream;
1236 eb->ra_session = ra_session;
1237 eb->update_anchor_relpath = update_anchor_relpath;
1238 eb->current_revision = revision;
1239 eb->pending_kind = svn_node_none;
1242 eb->pool = svn_pool_create(pool);
1247 SVN_ERR(svn_io_open_unique_file3(&(eb->delta_file), &(eb->delta_abspath),
1265 *edit_baton = eb;
1270 de, eb, editor, edit_baton, pool));
1275 shim_callbacks->fetch_baton = eb;