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

Re: svn propset keywords Date

From: Konstantin Kolinko <knst.kolinko_at_gmail.com>
Date: Mon, 25 Jan 2010 04:57:59 +0300

2010/1/24 Johan Hogdahl <johan.e.hogdahl_at_gmail.com>:
> Hello.
> I'm new to subversion after using CVS and RCS for a long time.
> I have just done a conversion of our code base to subversion.
> Now i got into a problem, the propset keywords Date fills in the Date in a
> complete other way then
> CVS did. And cause many of our development machines is configured with
> Swedish language,
> some days of week will get Swedish (iso-8859-1) chars, which can not be
> handled by some compilers. Is there any way to use propset without the part
> in (..), Its a very useless part anyway.
> Is there any configuration file, command or such, to change the format.
>
> Johan
>

I know of two workarounds:

1. Use '::' (double ':') after the keyword. It limits its width. E.g.

$Date:: 2010-01-24 16:21:02 -0600#$

http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.html

2. Do not use Date keyword. Use the Id keyword instead.

Note, that Date uses local time, while Id uses UTC time.

BTW, there is an issue related to this:
http://subversion.tigris.org/issues/show_bug.cgi?id=2332

Best regards,
Konstantin Kolinko
Received on 2010-01-25 02:58:37 CET

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