You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by st...@apache.org on 2010/06/16 16:05:30 UTC

svn commit: r955232 - /subversion/trunk/subversion/libsvn_wc/copy.c

Author: stylesen
Date: Wed Jun 16 14:05:30 2010
New Revision: 955232

URL: http://svn.apache.org/viewvc?rev=955232&view=rev
Log:
Remove entry retrieval.

* subversion/libsvn_wc/copy.c
  (copy_dir_administratively): Read the copy from information from the
   source path and update the same in destination path since we need
   to populate copy from info for each path in the database
   irrespective of whether the copy from info is same between the copies.

Modified:
    subversion/trunk/subversion/libsvn_wc/copy.c

Modified: subversion/trunk/subversion/libsvn_wc/copy.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/copy.c?rev=955232&r1=955231&r2=955232&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/copy.c (original)
+++ subversion/trunk/subversion/libsvn_wc/copy.c Wed Jun 16 14:05:30 2010
@@ -695,35 +695,9 @@ copy_dir_administratively(svn_wc_context
     if ((src_status == svn_wc__db_status_copied)
         || (src_status == svn_wc__db_status_moved_here))
       {
-        const svn_wc_entry_t *dst_entry;
-        svn_wc_entry_t tmp_entry;
-
-        SVN_ERR(svn_wc__get_entry(&dst_entry, db, dst_abspath, TRUE,
-                                  svn_node_dir, TRUE,
-                                  scratch_pool, scratch_pool));
         SVN_ERR(svn_wc__node_get_copyfrom_info(&copyfrom_url, &copyfrom_rev,
                                                NULL, wc_ctx, src_abspath,
                                                scratch_pool, scratch_pool));
-
-        /* If the COPYFROM information is the SAME as the destination
-           URL/REVISION, then omit the copyfrom info.  */
-        if (dst_entry != NULL
-            && dst_entry->revision == copyfrom_rev
-            && copyfrom_url != NULL
-            && dst_entry->url != NULL
-            && strcmp(copyfrom_url, dst_entry->url) == 0)
-          {
-            copyfrom_url = NULL;
-            copyfrom_rev = SVN_INVALID_REVNUM;
-          }
-
-        /* The URL for a copied dir won't exist in the repository, which
-           will cause  svn_wc_add4() below to fail.  Set the URL to the
-           URL of the first copy for now to prevent this. */
-        tmp_entry.url = apr_pstrdup(scratch_pool, copyfrom_url);
-        SVN_ERR(svn_wc__entry_modify(db, dst_abspath, svn_node_dir,
-                                     &tmp_entry, SVN_WC__ENTRY_MODIFY_URL,
-                                     scratch_pool));
       }
     else
       {



RE: svn commit: r955232 - /subversion/trunk/subversion/libsvn_wc/copy.c

Posted by Bert Huijben <be...@qqmail.nl>.

> -----Original Message-----
> From: stylesen@apache.org [mailto:stylesen@apache.org]
> Sent: woensdag 16 juni 2010 16:06
> To: commits@subversion.apache.org
> Subject: svn commit: r955232 -
> /subversion/trunk/subversion/libsvn_wc/copy.c
> 
> Author: stylesen
> Date: Wed Jun 16 14:05:30 2010
> New Revision: 955232
> 
> URL: http://svn.apache.org/viewvc?rev=955232&view=rev
> Log:
> Remove entry retrieval.
> 
> * subversion/libsvn_wc/copy.c
>   (copy_dir_administratively): Read the copy from information from the
>    source path and update the same in destination path since we need
>    to populate copy from info for each path in the database
>    irrespective of whether the copy from info is same between the
> copies.

The removal of the call to svn_wc__entry_modify() is more notable then the removal of the entry retrieval. (Nice catch on finding that this could be removed without consequences!)

	Bert