You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by ju...@apache.org on 2010/10/11 18:16:50 UTC
svn commit: r1021405 - /subversion/trunk/subversion/libsvn_wc/adm_ops.c
Author: julianfoad
Date: Mon Oct 11 16:16:50 2010
New Revision: 1021405
URL: http://svn.apache.org/viewvc?rev=1021405&view=rev
Log:
* subversion/libsvn_wc/adm_ops.c
(svn_wc_add4): Improve comments.
Modified:
subversion/trunk/subversion/libsvn_wc/adm_ops.c
Modified: subversion/trunk/subversion/libsvn_wc/adm_ops.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/adm_ops.c?rev=1021405&r1=1021404&r2=1021405&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/adm_ops.c (original)
+++ subversion/trunk/subversion/libsvn_wc/adm_ops.c Mon Oct 11 16:16:50 2010
@@ -783,8 +783,9 @@ svn_wc_add4(svn_wc_context_t *wc_ctx,
svn_dirent_local_style(local_abspath,
scratch_pool));
- /* Get the node information for this path if one exists (perhaps
- this is actually a replacement of a previously deleted thing). */
+ /* Determine whether a DB row for this node EXISTS, and whether it
+ IS_WC_ROOT. If it exists, check that it is in an acceptable state for
+ adding the new node; if not, return an error. */
{
svn_wc__db_status_t status;
svn_error_t *err
@@ -881,6 +882,7 @@ svn_wc_add4(svn_wc_context_t *wc_ctx,
svn_dirent_local_style(local_abspath,
scratch_pool));
+ /* If we haven't found the repository info yet, find it now. */
if (!repos_root_url)
{
if (parent_status == svn_wc__db_status_added)