On Thu, Oct 29, 2009 at 19:59, Paul T. Burba <pburba_at_collab.net> wrote:
>...
> +++ trunk/subversion/libsvn_wc/copy.c  Thu Oct 29 16:59:24 2009     (r40306)
>...
> @@ -355,13 +294,36 @@ determine_copyfrom_info(const char **cop
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â src_copyfrom_relpath, result_pool);
> Â Â Â rev = src_copyfrom_rev;
> Â Â }
> - Â else
> + Â else if (status == svn_wc__db_status_added
> + Â Â Â Â Â || status == svn_wc__db_status_obstructed_add)
> Â Â {
> Â Â Â /* ...But if this file is merely the descendant of an explicitly
> Â Â Â Â Â copied/moved directory, we need to do a bit more work to
> Â Â Â Â Â determine copyfrom_url and copyfrom_rev. */
> - Â Â Â SVN_ERR(get_copyfrom_url_rev_via_parent(&url, &rev, db, src_abspath,
> - Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â scratch_pool, scratch_pool));
> + Â Â Â const char *op_root_abspath;
> + Â Â Â const char *original_repos_relpath;
> + Â Â Â const char *original_root_url;
> + Â Â Â svn_revnum_t original_revision;
> + Â Â Â const char *op_root_rel_path;
> +
> + Â Â Â SVN_ERR(svn_wc__db_scan_addition(&status, &op_root_abspath,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â NULL, NULL, NULL,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &original_repos_relpath,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &original_root_url, NULL,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â &original_revision,
Why not directly query into &rev ?
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â db, src_abspath,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â scratch_pool, scratch_pool));
> + Â Â Â url = svn_uri_join(original_root_url, original_repos_relpath,
> + Â Â Â Â Â Â Â Â Â Â Â Â result_pool);
> + Â Â Â op_root_rel_path = svn_dirent_is_child(op_root_abspath, src_abspath,
> + Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â scratch_pool);
> + Â Â Â url = svn_uri_join(url, op_root_rel_path, scratch_pool);
> + Â Â Â rev = original_revision;
> + Â Â }
url is probably going into the wrong pool here. The first join should
definitely use scratch_pool, and I'm guessing the second was probably
intended for result_pool.
Cheers,
-g
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2413208
Received on 2009-10-31 12:05:49 CET