You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by hw...@apache.org on 2011/03/14 20:53:21 UTC
svn commit: r1081545 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Author: hwright
Date: Mon Mar 14 19:53:21 2011
New Revision: 1081545
URL: http://svn.apache.org/viewvc?rev=1081545&view=rev
Log:
* subversion/libsvn_wc/wc_db.c
(svn_wc__db_op_bump_revisions_post_update): Get a wcroot and relpath, and
use them for at least one operation (helper functions will eventually
reuse these as well).
Modified:
subversion/trunk/subversion/libsvn_wc/wc_db.c
Modified: subversion/trunk/subversion/libsvn_wc/wc_db.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/wc_db.c?rev=1081545&r1=1081544&r2=1081545&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Mon Mar 14 19:53:21 2011
@@ -6481,6 +6481,8 @@ svn_wc__db_op_bump_revisions_post_update
apr_hash_t *exclude_paths,
apr_pool_t *scratch_pool)
{
+ const char *local_relpath;
+ svn_wc__db_wcroot_t *wcroot;
svn_wc__db_status_t status;
svn_wc__db_kind_t kind;
svn_error_t *err;
@@ -6488,11 +6490,13 @@ svn_wc__db_op_bump_revisions_post_update
if (apr_hash_get(exclude_paths, local_abspath, APR_HASH_KEY_STRING))
return SVN_NO_ERROR;
- err = svn_wc__db_base_get_info(&status, &kind, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL, NULL, NULL, NULL,
- NULL, NULL, NULL,
- db, local_abspath, scratch_pool,
- scratch_pool);
+ SVN_ERR(svn_wc__db_wcroot_parse_local_abspath(&wcroot, &local_relpath, db,
+ local_abspath, svn_sqlite__mode_readwrite,
+ scratch_pool, scratch_pool));
+
+ err = base_get_info(&status, &kind, NULL, NULL, NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, NULL, NULL, NULL,
+ wcroot, local_relpath, scratch_pool, scratch_pool);
if (err && err->apr_err == SVN_ERR_WC_PATH_NOT_FOUND)
{
svn_error_clear(err);