You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by cm...@apache.org on 2010/12/20 17:07:08 UTC
svn commit: r1051164 - /subversion/trunk/subversion/libsvn_ra/util.c
Author: cmpilato
Date: Mon Dec 20 16:07:08 2010
New Revision: 1051164
URL: http://svn.apache.org/viewvc?rev=1051164&view=rev
Log:
Another follow-up to r1050216.
* subversion/libsvn_ra/util.c
(svn_ra__release_operational_lock): Switch the sense of the boolean
return from svn_string_compare(). I forgot that it returns TRUE for
"matches", the opposite of the previous strcmp() code that was in place.
Modified:
subversion/trunk/subversion/libsvn_ra/util.c
Modified: subversion/trunk/subversion/libsvn_ra/util.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/libsvn_ra/util.c?rev=1051164&r1=1051163&r2=1051164&view=diff
==============================================================================
--- subversion/trunk/subversion/libsvn_ra/util.c (original)
+++ subversion/trunk/subversion/libsvn_ra/util.c Mon Dec 20 16:07:08 2010
@@ -95,7 +95,7 @@ svn_ra__release_operational_lock(svn_ra_
scratch_pool));
SVN_ERR(svn_ra_rev_prop(session, 0, lock_revprop_name,
&reposlocktoken, scratch_pool));
- if (reposlocktoken && svn_string_compare(reposlocktoken, mylocktoken))
+ if (reposlocktoken && !svn_string_compare(reposlocktoken, mylocktoken))
{
svn_error_t *err;
Re: svn commit: r1051164 - /subversion/trunk/subversion/libsvn_ra/util.c
Posted by "C. Michael Pilato" <cm...@collab.net>.
On 12/20/2010 02:45 PM, Philip Martin wrote:
> cmpilato@apache.org writes:
>
>> Author: cmpilato
>> Date: Mon Dec 20 16:07:08 2010
>> New Revision: 1051164
>>
>> URL: http://svn.apache.org/viewvc?rev=1051164&view=rev
>> Log:
>> Another follow-up to r1050216.
>>
>> * subversion/libsvn_ra/util.c
>> (svn_ra__release_operational_lock): Switch the sense of the boolean
>> return from svn_string_compare(). I forgot that it returns TRUE for
>> "matches", the opposite of the previous strcmp() code that was in place.
>
> The original code did "strcmp() == 0" so "matches" was TRUE there as
> well.
Doh! That's what I get for reading the code too quickly. (Thanks for the
review, Philip.)
--
C. Michael Pilato <cm...@collab.net>
CollabNet <> www.collab.net <> Distributed Development On Demand
Re: svn commit: r1051164 - /subversion/trunk/subversion/libsvn_ra/util.c
Posted by Philip Martin <ph...@wandisco.com>.
cmpilato@apache.org writes:
> Author: cmpilato
> Date: Mon Dec 20 16:07:08 2010
> New Revision: 1051164
>
> URL: http://svn.apache.org/viewvc?rev=1051164&view=rev
> Log:
> Another follow-up to r1050216.
>
> * subversion/libsvn_ra/util.c
> (svn_ra__release_operational_lock): Switch the sense of the boolean
> return from svn_string_compare(). I forgot that it returns TRUE for
> "matches", the opposite of the previous strcmp() code that was in place.
The original code did "strcmp() == 0" so "matches" was TRUE there as
well.
--
Philip