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

Re: Timestamp Issues

From: Patrick Smears <patrick.smears_at_ensoft.co.uk>
Date: 2004-11-29 20:16:21 CET

On Mon, 29 Nov 2004 trlists@clayst.com wrote:

> I'm confused about timestamps ... it appears from the following
> sentence:
>
> Normally your working copy files have timestamps that reflect the
> last time they were touched by any process, whether that be your
> own editor or by some svn subcommand.
>
> that svn might be setting timestamps on checkout to the time of
> checkout. Is that right?

Yes, that is right.

> I have two branch directories that appear to reflect this, or perhaps to
> reflect the time the directory was renamed.
>
> What I want is for the file system timestamp to reflect the time I
> changed the file with the editor, not the time it was checked in or
> out, or when the directory it's in was renamed. In other words, when I
> check out a file I want it to have the same filesystem timestamp it had
> when I committed that revision. Can I do this with Subversion?

No, that is not currently possible with just subversion (although it's
possible using, for example, scripts that make use of properties to store
the relevant times).

> I would have expected it to be the default, yet the branch directories I
> created seem to suggest otherwise.

The reason for the default behaviour is that any other behaviour tends to
confuse utilities like 'make' that depend on timestamps on files to
determine which file has been changed most recently (e.g. if someone else
commits a change to a file, then I do a 'make', then I update my WC to
pull in their change - I want the changed file to have the time of my
update, not the time of their commit or the time they changed the file, or
else 'make' won't know to rebuild targets that depended on the changed
file...). Since 'make'-like build systems are a very common use case for
Subversion, this is what the developers have implemented.

Patrick

-- 
The easy way to type accents in Windows: http://www.frkeys.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Nov 29 20:18:54 2004

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

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