You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ar...@apache.org on 2010/09/30 15:39:27 UTC
svn commit: r1003064 - /subversion/trunk/subversion/svnrdump/dump_editor.c
Author: artagnon
Date: Thu Sep 30 13:39:27 2010
New Revision: 1003064
URL: http://svn.apache.org/viewvc?rev=1003064&view=rev
Log:
svnrdump: dump_editor: Allocate directory baton in per-revision pool
* subversion/svnrdump/dump_editor.c
(open_root, add_directory, make_directory_baton): Pass `eb->pool` to
`make_dir_baton` because directory batons should be allocated in the
per-revision pool.
(make_dir_baton): Don't explicitly use `eb->pool`- allocate
everything in the pool that is passed as argument.
Modified:
subversion/trunk/subversion/svnrdump/dump_editor.c
Modified: subversion/trunk/subversion/svnrdump/dump_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/svnrdump/dump_editor.c?rev=1003064&r1=1003063&r2=1003064&view=diff
==============================================================================
--- subversion/trunk/subversion/svnrdump/dump_editor.c (original)
+++ subversion/trunk/subversion/svnrdump/dump_editor.c Thu Sep 30 13:39:27 2010
@@ -147,7 +147,7 @@ make_dir_baton(const char *path,
new_db->copyfrom_rev = copyfrom_rev;
new_db->added = added;
new_db->written_out = FALSE;
- new_db->deleted_entries = apr_hash_make(eb->pool);
+ new_db->deleted_entries = apr_hash_make(pool);
return new_db;
}
@@ -375,7 +375,7 @@ open_root(void *edit_baton,
eb->propstring = svn_stringbuf_create("", eb->pool);
*root_baton = make_dir_baton(NULL, NULL, SVN_INVALID_REVNUM,
- edit_baton, NULL, FALSE, pool);
+ edit_baton, NULL, FALSE, eb->pool);
LDR_DBG(("open_root %p\n", *root_baton));
return SVN_NO_ERROR;
@@ -415,12 +415,14 @@ add_directory(const char *path,
{
struct dir_baton *pb = parent_baton;
void *val;
- struct dir_baton *new_db
- = make_dir_baton(path, copyfrom_path, copyfrom_rev, pb->eb, pb, TRUE, pool);
+ struct dir_baton *new_db;
svn_boolean_t is_copy;
LDR_DBG(("add_directory %s\n", path));
+ new_db = make_dir_baton(path, copyfrom_path, copyfrom_rev, pb->eb,
+ pb, TRUE, pb->eb->pool);
+
/* Some pending properties to dump? */
SVN_ERR(dump_props(pb->eb, &(pb->eb->dump_props), TRUE, pool));
@@ -483,7 +485,7 @@ open_directory(const char *path,
}
new_db = make_dir_baton(path, copyfrom_path, copyfrom_rev, pb->eb, pb,
- FALSE, pool);
+ FALSE, pb->eb->pool);
*child_baton = new_db;
return SVN_NO_ERROR;
}