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 2012/11/29 14:17:23 UTC
svn commit: r1415154 - in /subversion/trunk/subversion/libsvn_wc:
diff_editor.c diff_local.c
Author: rhuijben
Date: Thu Nov 29 13:17:22 2012
New Revision: 1415154
URL: http://svn.apache.org/viewvc?rev=1415154&view=rev
Log:
Don't try to access the actual properties when not needed.
* subversion/libsvn_wc/diff_editor.c
(report_wc_file_as_added): Don't try to translate a pristine file to the normal
form.
* subversion/libsvn_wc/diff_local.c
(diff_status_callback): Since 1.7 status tells us exactly when properties
changed, so avoid doing unneeded work.
Modified:
subversion/trunk/subversion/libsvn_wc/diff_editor.c
subversion/trunk/subversion/libsvn_wc/diff_local.c
Modified: subversion/trunk/subversion/libsvn_wc/diff_editor.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/diff_editor.c?rev=1415154&r1=1415153&r2=1415154&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/diff_editor.c (original)
+++ subversion/trunk/subversion/libsvn_wc/diff_editor.c Thu Nov 29 13:17:22 2012
@@ -996,16 +996,21 @@ report_wc_file_as_added(struct edit_bato
if (eb->use_text_base)
- SVN_ERR(get_pristine_file(&source_file, db, local_abspath,
- FALSE, scratch_pool, scratch_pool));
+ {
+ SVN_ERR(get_pristine_file(&source_file, db, local_abspath,
+ FALSE, scratch_pool, scratch_pool));
+ translated_file = source_file; /* No translation needed */
+ }
else
- source_file = local_abspath;
+ {
+ source_file = local_abspath;
- SVN_ERR(svn_wc__internal_translated_file(
+ SVN_ERR(svn_wc__internal_translated_file(
&translated_file, source_file, db, local_abspath,
SVN_WC_TRANSLATE_TO_NF | SVN_WC_TRANSLATE_USE_GLOBAL_TMP,
eb->cancel_func, eb->cancel_baton,
scratch_pool, scratch_pool));
+ }
SVN_ERR(eb->callbacks->file_added(NULL, NULL, NULL,
path,
Modified: subversion/trunk/subversion/libsvn_wc/diff_local.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_wc/diff_local.c?rev=1415154&r1=1415153&r2=1415154&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_wc/diff_local.c (original)
+++ subversion/trunk/subversion/libsvn_wc/diff_local.c Thu Nov 29 13:17:22 2012
@@ -513,9 +513,7 @@ diff_status_callback(void *baton,
/* Report the prop change. */
/* ### This case should probably be extended for git-diff, but this
is what the old diff code provided */
- if (status->node_status == svn_wc_status_deleted
- || status->node_status == svn_wc_status_replaced
- || status->prop_status == svn_wc_status_modified)
+ if (status->prop_status == svn_wc_status_modified)
{
apr_array_header_t *propchanges;
apr_hash_t *baseprops;