You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by gs...@apache.org on 2010/03/31 05:51:02 UTC
svn commit: r929371 - /subversion/trunk/subversion/libsvn_wc/wc_db.c
Author: gstein
Date: Wed Mar 31 03:51:02 2010
New Revision: 929371
URL: http://svn.apache.org/viewvc?rev=929371&view=rev
Log:
The child node is recorded as an add/copy/move, so scan_addition is valid.
The parent might be unchanged; we have no data on whether it has an
"added" state, and is (thus) valid for passing to scan_addition. For these
cases, capture and ignore SVN_ERR_WC_PATH_NOT_FOUND from scan_addition.
* subversion/libsvn_wc/wc_db.c:
(svn_wc__db_temp_elide_copyfrom): ignore PATH_NOT_FOUND from scan_addition
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=929371&r1=929370&r2=929371&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/wc_db.c (original)
+++ subversion/trunk/subversion/libsvn_wc/wc_db.c Wed Mar 31 03:51:02 2010
@@ -7034,6 +7034,7 @@ svn_wc__db_temp_elide_copyfrom(svn_wc__d
svn_revnum_t original_revision;
const char *parent_abspath;
const char *name;
+ svn_error_t *err;
const char *op_root_abspath;
const char *parent_repos_relpath;
const char *parent_uuid;
@@ -7070,13 +7071,24 @@ svn_wc__db_temp_elide_copyfrom(svn_wc__d
/* If this node is copied/moved, then there MUST be a parent. The above
copyfrom values cannot be set on a wcroot. */
svn_dirent_split(local_abspath, &parent_abspath, &name, scratch_pool);
- SVN_ERR(svn_wc__db_scan_addition(NULL, &op_root_abspath, NULL, NULL, NULL,
- &parent_repos_relpath,
- NULL,
- &parent_uuid,
- &parent_revision,
- db, parent_abspath,
- scratch_pool, scratch_pool));
+ err = svn_wc__db_scan_addition(NULL, &op_root_abspath, NULL, NULL, NULL,
+ &parent_repos_relpath,
+ NULL,
+ &parent_uuid,
+ &parent_revision,
+ db, parent_abspath,
+ scratch_pool, scratch_pool);
+ if (err)
+ {
+ if (err->apr_err != SVN_ERR_WC_PATH_NOT_FOUND)
+ return svn_error_return(err);
+ svn_error_clear(err);
+
+ /* ### hunh? sometimes the parent is missing? stupid semi-stable
+ ### state crap, probably. don't bother trying to reset the
+ ### copyfrom data for this case. */
+ return SVN_NO_ERROR;
+ }
/* Now we need to determine if the child's values are derivable from
the parent values. */