Author: cmpilato
Date: Fri Apr 23 15:37:49 2010
New Revision: 937341
URL: http://svn.apache.org/viewvc?rev=937341&view=rev
Log:
More svn_wc_entry_t purging from libsvn_client.
* subversion/libsvn_client/util.c
(wc_path_to_repos_urls): Use WC-NG node functions instead of entry_t
manipulation.
(svn_client__get_repos_root): Formatting changes only.
Modified:
subversion/trunk/subversion/libsvn_client/util.c
Modified: subversion/trunk/subversion/libsvn_client/util.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/util.c?rev=937341&r1=937340&r2=937341&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/util.c (original)
+++ subversion/trunk/subversion/libsvn_client/util.c Fri Apr 23 15:37:49 2010
@@ -150,12 +150,6 @@ wc_path_to_repos_urls(const char **url,
apr_pool_t *result_pool,
apr_pool_t *scratch_pool)
{
- const svn_wc_entry_t *entry;
-
- SVN_ERR(svn_wc__get_entry_versioned(&entry, wc_ctx, local_abspath,
- svn_node_unknown, FALSE, FALSE,
- scratch_pool, scratch_pool));
-
SVN_ERR(svn_client__entry_location(url, NULL, wc_ctx, local_abspath,
svn_opt_revision_unspecified,
result_pool, scratch_pool));
@@ -164,7 +158,9 @@ wc_path_to_repos_urls(const char **url,
the entry. The entry might not hold a URL -- in that case, we'll
need a fallback plan. */
if (*repos_root == NULL)
- *repos_root = apr_pstrdup(result_pool, entry->repos);
+ SVN_ERR(svn_wc__node_get_repos_info(repos_root, NULL, wc_ctx,
+ local_abspath, TRUE,
+ result_pool, scratch_pool));
return SVN_NO_ERROR;
}
@@ -247,8 +243,9 @@ svn_client__get_repos_root(const char **
|| peg_revision->kind == svn_opt_revision_base))
{
*repos_root = NULL;
- SVN_ERR(wc_path_to_repos_urls(&abspath_or_url, repos_root, ctx->wc_ctx,
- abspath_or_url, result_pool,
scratch_pool));
+ SVN_ERR(wc_path_to_repos_urls(&abspath_or_url, repos_root,
+ ctx->wc_ctx, abspath_or_url,
+ result_pool, scratch_pool));
}
else
{