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

Re: SubWCRev and ternary keywords and $WCRANGE$ colon

From: Simon Large <simon.tortoisesvn_at_gmail.com>
Date: Tue, 19 Apr 2011 15:50:01 +0100

On 18 April 2011 09:19, Simon Large <simon.tortoisesvn_at_gmail.com> wrote:
> On 17 April 2011 10:47, Alexander <lazybadger_at_gmail.com> wrote:
>> On Apr 17, 9:34 am, Dale McCoy <dales..._at_gmail.com> wrote:
>>> You seem to be operating under the impression that Simon is using the
>>> majestic plural there.
>> No, I interpret "us" just as Simon+Stefan
>>
>>> have you checked to make sure that the properties are identical?
>>
>> ===========================================
>> char *Revision   = "$WCREV$";
>> char *Modified   = "$WCMODS?Modified:Not modified$";
>> char *Date       = "$WCDATE=%Y%m%d%H%M$";
>> char *NiceDate   = "$WCDATE=%d.%m.%Y %H:%M";
>> char *Range      = "$WCRANGE$";
>> char *Mixed      = "$WCMIXED?Mixed revision:Not mixed$";
>> char *URL        = "$WCURL$";
>> char *Now        = "$WCNOW=%d.%m.%Y %H:%M$"
>>
>> char *Id         = "$WCDATE=%Y%m%d$-r$WCREV$"
>> ===========================================
>> Is WC mixed? $WCMIXED?Yes:No$!
>> Is WC mixed? $WCMIXED?Yes, mixed:No, not mixed$
>> Is WC mixed? "$WCMIXED?Yes:No$"
>> Is WC mixed? "$WCMIXED?Yes, mixed:No, not mixed"$
>>
>> char *Mixed      = "$WCMIXED?Mixed revision:Not mixed$";
>> ===========================================
>> last lines ARE ===
>
> I can confirm the problem using Alexander's files. It does look like a bug.

Actually I can confirm this is not a bug, although the error detection
is not as good as it could be. Looking at the lines above, the
NiceDate line does not have a terminating $. For some reason this
doesn't affect its own output but it does break the ternary operation
2 lines down for reasons which are not at all obvious to me. Adding in
the missing $ fixes the problem.

Simon

-- 
:       ___
:  oo  // \\      "De Chelonian Mobile"
: (_,\/ \_/ \     TortoiseSVN
:   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
:   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2721417
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].

Received on 2011-04-19 16:50:04 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

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