[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: boolean issue with serf

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: Thu, 16 Apr 2009 16:28:48 -0400

Lieven Govaerts wrote:
> On 04/16/2009 09:48 PM, Lieven Govaerts wrote:
>> On 04/16/2009 09:39 PM, Stefan Küng wrote:
>>> On Thu, Apr 16, 2009 at 21:30, Stefan Küng<tortoisesvn_at_gmail.com>
>>> wrote:
>> ..
>>> A quick search through the files revealed:
>>>
>>> libsvn_ra_serf\locks.c, line 720 (1.6.x branch), function
>>> svn_ra_serf__unlock():
>>> if (force == TRUE&& (!token || token[0] == '\0'))
>>>
>>> libsvn_ra_serf\locks.c, line 329(1.6.x branch), function
>>> set_lock_headers():
>>> if (lock_ctx->force == TRUE)
>>>
>>
>> I would find it very counter-intuitive to change these to:
>> if (lock_ctx->force != FALSE) ...
>> ... and to ensure that people are going to remember a rule like this in
>> the future.
>>
> ... most of our TRUE checks are done as "if (lock_ctx->force)" though,
> wouldn't have a problem with that.

Nor would I.

-- 
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=1754313

Received on 2009-04-16 22:29:05 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.