You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by rh...@apache.org on 2011/02/02 12:29:07 UTC
svn commit: r1066421 - /subversion/trunk/subversion/libsvn_wc/update_editor.c
Author: rhuijben
Date: Wed Feb 2 11:29:06 2011
New Revision: 1066421
URL: http://svn.apache.org/viewvc?rev=1066421&view=rev
Log:
When checking if a node is copied or moved, looking at its status is enough.
* subversion/libsvn_wc/update_editor.c
(add_directory): Use _db_scan_addition() to fetch the status instead of a
helper that calculates the origin.
Modified:
subversion/trunk/subversion/libsvn_wc/update_editor.c
Modified: subversion/trunk/subversion/libsvn_wc/update_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/update_editor.c?rev=1066421&r1=1066420&r2=1066421&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/update_editor.c (original)
+++ subversion/trunk/subversion/libsvn_wc/update_editor.c Wed Feb 2 11:29:06 2011
@@ -2241,15 +2241,14 @@ add_directory(const char *path,
svn_boolean_t local_is_dir;
svn_boolean_t local_is_non_dir;
- const char *local_is_copy = NULL;
+ svn_wc__db_status_t add_status;
/* Is the local add a copy? */
if (status == svn_wc__db_status_added)
- SVN_ERR(svn_wc__node_get_copyfrom_info(&local_is_copy,
- NULL, NULL, NULL, NULL,
- eb->wc_ctx,
- db->local_abspath,
- pool, pool));
+ SVN_ERR(svn_wc__db_scan_addition(&add_status, NULL, NULL, NULL, NULL,
+ NULL, NULL, NULL, NULL,
+ eb->db, db->local_abspath,
+ pool, pool));
/* Is there something that is a file? */
@@ -2338,7 +2337,8 @@ add_directory(const char *path,
if (! pb->in_deleted_and_tree_conflicted_subtree
&& (eb->switch_relpath != NULL
|| local_is_non_dir
- || local_is_copy
+ || add_status == svn_wc__db_status_copied
+ || add_status == svn_wc__db_status_moved_here
)
)
{