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

RE: RE: $Source$

From: Scott Pritchett <scott.pritchett_at_amtrak.co.uk>
Date: 2007-05-21 10:31:04 CEST

So the onus is on the programmer to re-instate the keywords? Hmmm.

I quite like the way SCCS handles this. You check out a file and it has the keywords present, you work on the file, then, when you check it in a copy with the keywords expanded is left behind in the WC. You have to do an explicit CO though, not very Subversion.

-----Original Message-----
From: Lübbe Onken [mailto:l.onken@rac.de]
Sent: 21 May 2007 08:48
To: 'users@tortoisesvn.tigris.org'
Subject: RE: $Source$

Hi George Hazan,

You wrote:

> So you wanna say, that any SVN client passes its local code page to a
> server, and then a server formats that $Date$ accordingly to
> my regional settings? I doubt that.

Your doubts are correct.

When a file is checked out/updated, the client fetches the file from the
repository (can be server, can be a local file:// url).

*If* that file has the "svn:keywords" property set *and* contains matching
keywords *then* _the client_ expands the keywords using the local encoding
and time format settings.

You now work with a file that contains the expanded keywords.

When that file is committed to the repository, _the client_ contracts the
keywords _before_ the content is sent back to the repository.

The content (concrete value) of the keywords is never stored in the
repository, only the keywords themselves, as placeholders, are stored there.

Cheers
- Lübbe

--
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
   /_/   \_\     http://tortoisesvn.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Mon May 21 10:28:54 2007

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.