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/03/25 15:10:11 UTC

svn commit: r927412 - /subversion/trunk/subversion/libsvn_client/export.c

Author: stylesen
Date: Thu Mar 25 14:10:11 2010
New Revision: 927412

URL: http://svn.apache.org/viewvc?rev=927412&view=rev
Log:
Follow up r921604. Fix failing export test 11.

* subversion/libsvn_client/export.c
  (copy_one_versioned_file): Include the if condition to check for
   added and replaced files, since source value is unreliable.

Modified:
    subversion/trunk/subversion/libsvn_client/export.c

Modified: subversion/trunk/subversion/libsvn_client/export.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/export.c?rev=927412&r1=927411&r2=927412&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_client/export.c (original)
+++ subversion/trunk/subversion/libsvn_client/export.c Thu Mar 25 14:10:11 2010
@@ -157,14 +157,14 @@ copy_one_versioned_file(const char *from
 
          Copied-/moved-here nodes have a base, so export both added and
          replaced files when they involve a copy-/move-here.
+      */
+      if ((entry->schedule == svn_wc_schedule_add
+           || entry->schedule == svn_wc_schedule_replace)
+          && !entry->copied)
+        return SVN_NO_ERROR;
 
-         We get all this for free from evaluating SOURCE == NULL:
-       */
       SVN_ERR(svn_wc_get_pristine_contents2(&source, wc_ctx, from_abspath,
                                             scratch_pool, scratch_pool));
-      if (source == NULL)
-        return SVN_NO_ERROR;
-
       SVN_ERR(svn_wc_get_prop_diffs2(NULL, &props, wc_ctx, from_abspath,
                                      scratch_pool, scratch_pool));
     }



Re: svn commit: r927412 - /subversion/trunk/subversion/libsvn_client/export.c

Posted by Greg Stein <gs...@gmail.com>.
Reverted in r927460.

On Thu, Mar 25, 2010 at 10:53, Greg Stein <gs...@gmail.com> wrote:
> Please revert. I'm working on fixing this properly.
>
> On Thu, Mar 25, 2010 at 10:10,  <st...@apache.org> wrote:
>> Author: stylesen
>> Date: Thu Mar 25 14:10:11 2010
>> New Revision: 927412
>>
>> URL: http://svn.apache.org/viewvc?rev=927412&view=rev
>> Log:
>> Follow up r921604. Fix failing export test 11.
>>
>> * subversion/libsvn_client/export.c
>>  (copy_one_versioned_file): Include the if condition to check for
>>   added and replaced files, since source value is unreliable.
>>
>> Modified:
>>    subversion/trunk/subversion/libsvn_client/export.c
>>
>> Modified: subversion/trunk/subversion/libsvn_client/export.c
>> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/export.c?rev=927412&r1=927411&r2=927412&view=diff
>> ==============================================================================
>> --- subversion/trunk/subversion/libsvn_client/export.c (original)
>> +++ subversion/trunk/subversion/libsvn_client/export.c Thu Mar 25 14:10:11 2010
>> @@ -157,14 +157,14 @@ copy_one_versioned_file(const char *from
>>
>>          Copied-/moved-here nodes have a base, so export both added and
>>          replaced files when they involve a copy-/move-here.
>> +      */
>> +      if ((entry->schedule == svn_wc_schedule_add
>> +           || entry->schedule == svn_wc_schedule_replace)
>> +          && !entry->copied)
>> +        return SVN_NO_ERROR;
>>
>> -         We get all this for free from evaluating SOURCE == NULL:
>> -       */
>>       SVN_ERR(svn_wc_get_pristine_contents2(&source, wc_ctx, from_abspath,
>>                                             scratch_pool, scratch_pool));
>> -      if (source == NULL)
>> -        return SVN_NO_ERROR;
>> -
>>       SVN_ERR(svn_wc_get_prop_diffs2(NULL, &props, wc_ctx, from_abspath,
>>                                      scratch_pool, scratch_pool));
>>     }
>>
>>
>>
>

Re: svn commit: r927412 - /subversion/trunk/subversion/libsvn_client/export.c

Posted by Greg Stein <gs...@gmail.com>.
Please revert. I'm working on fixing this properly.

On Thu, Mar 25, 2010 at 10:10,  <st...@apache.org> wrote:
> Author: stylesen
> Date: Thu Mar 25 14:10:11 2010
> New Revision: 927412
>
> URL: http://svn.apache.org/viewvc?rev=927412&view=rev
> Log:
> Follow up r921604. Fix failing export test 11.
>
> * subversion/libsvn_client/export.c
>  (copy_one_versioned_file): Include the if condition to check for
>   added and replaced files, since source value is unreliable.
>
> Modified:
>    subversion/trunk/subversion/libsvn_client/export.c
>
> Modified: subversion/trunk/subversion/libsvn_client/export.c
> URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_client/export.c?rev=927412&r1=927411&r2=927412&view=diff
> ==============================================================================
> --- subversion/trunk/subversion/libsvn_client/export.c (original)
> +++ subversion/trunk/subversion/libsvn_client/export.c Thu Mar 25 14:10:11 2010
> @@ -157,14 +157,14 @@ copy_one_versioned_file(const char *from
>
>          Copied-/moved-here nodes have a base, so export both added and
>          replaced files when they involve a copy-/move-here.
> +      */
> +      if ((entry->schedule == svn_wc_schedule_add
> +           || entry->schedule == svn_wc_schedule_replace)
> +          && !entry->copied)
> +        return SVN_NO_ERROR;
>
> -         We get all this for free from evaluating SOURCE == NULL:
> -       */
>       SVN_ERR(svn_wc_get_pristine_contents2(&source, wc_ctx, from_abspath,
>                                             scratch_pool, scratch_pool));
> -      if (source == NULL)
> -        return SVN_NO_ERROR;
> -
>       SVN_ERR(svn_wc_get_prop_diffs2(NULL, &props, wc_ctx, from_abspath,
>                                      scratch_pool, scratch_pool));
>     }
>
>
>