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

Re: [Subclipse-users] Re: Date / time and other "tags" in files in projects managed with subclipse

From: ct529 <ct529_at_york.ac.uk>
Date: Tue, 16 Mar 2010 08:18:29 +0000

Hi Lorenz,

Tha was the documentation I used. I rewrote the Rev keyword manually in
the email.

The real thing was:

$Rev:: $

No "guest appearances" of # after commit + update I am afraid.

Best,

Lorenz wrote:
> ct529 wrote:
>
>> Plenty of room. I do not understand, but it is the underlying svn.
>>
>> Mark Phippard wrote:
>>
>>> $Rev:: $: is a fixed-length format. It is possible that it verifies
>>> it has enough room to substitute before it does it.
>>> [...]
>>>
>
> the number of blanks between the '$Rev::' and the terminating ''$'
> defines the space available for expansion.
>
> So from your earlier post '$Rev:: $' allows only for only one
> character.
>
> From the documentation (*) I would have expected to see 'Rev::#$'
> after commit + update, because the '#' character is used to signal
> that there have been more characters than space provided.
>
> If you don't care about the length of the resulting string use the
> '$Rev:$' version.
>
>
> (*) from:
>
> http://svnbook.red-bean.com/nightly/en/svn.advanced.props.special.keywords.html
>
> Subversion 1.2 introduced a new variant of the keyword syntax, which
> brought additional, useful—though perhaps atypical—functionality. You
> can now tell Subversion to maintain a fixed length (in terms of the
> number of bytes consumed) for the substituted keyword. By using a
> double colon (::) after the keyword name, followed by a number of
> space characters, you define that fixed width. When Subversion goes to
> substitute your keyword for the keyword and its value, it will
> essentially replace only those space characters, leaving the overall
> width of the keyword field unchanged. If the substituted value is
> shorter than the defined field width, there will be extra padding
> characters (spaces) at the end of the substituted field; if it is too
> long, it is truncated with a special hash (#) character just before
> the final dollar sign terminator.
>

-- 
Corrado Topi
PhD Researcher
Global Climate Change and Biodiversity
Area 18,Department of Biology
University of York, York, YO10 5YW, UK
Phone: + 44 (0) 1904 328645, E-mail: ct529_at_york.ac.uk
------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2460380
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2010-03-16 09:18:46 CET

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

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