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

RE: Re: Is there really no way to keep the file modification time intact?

From: Garance A Drosihn <drosih_at_rpi.edu>
Date: 2007-03-06 06:56:53 CET

At 6:02 PM -0600 3/2/07, John Gwinner wrote:
>I haven't posted much but this sounds like a potentially
>critical issue to us.
>
>If I understand correctly, if I take a file that was
>modified, say in 2003:
>
>1/01/2003 15:54 16 test.me.txt
>or
>-rw-rw-rw- 1 user group 16 Jan 1 2003 test.me.txt
>
>Then I check it in today, the 'time' in Subversion will
>be 3/2/2007?

The time that subversion stores for the *revision* will be 3/2/2007.
It is my understanding that subversion relies on the fact that the
'svn:date' property is never decreasing as revision-numbers increase.
(disclaimer: Note that I may be wrong about that...)

Certainly subversion expects the 'svn:date' property will have the exact
same value for all files which are checked-in in a single 'svn:commit'
command. I'm pretty sure you cannot avoid that fact. This is why it
is so significant that the 'svn:date' is a property of the *revision*,
and not a property of each file which was changed in that revision.

>To me that's wrong.
>
>I agree it should be an option.
>
>There should also be an option to have the file check out with today's
>date, the modification date, or the check in date, in my opinion. I
>find all 3 useful in different scenarios.

Another possible solution is to add some new property, and let svn
continue to use the 'svn:date' property in whatever way it wants to.
Perhaps svn itself would keep track of this new property. If not,
then you've got to make sure to add the appropriate hooks to make
sure this property is updated at commit, and handled appropriately
at checkout/update time. It's a little work, but it certainly should
be doable.

One of the really nice things about subversion is that you can add
whatever properties you want to add, to track whatever meta-data you
want to track.

> >Erik Huelsmann wrote:
> >- everybody who is interested can add his/her username to the CC list
>
>I added mine

I am not familiar with this tactic for messages in a mailing-list. I'm
don't understand how it could work reliably in practice, but I've added
my address to the 'Cc:' of this here reply! :-)

-- 
Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
Senior Systems Programmer           or  gad@freebsd.org
Rensselaer Polytechnic Institute    or  drosih@rpi.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Mar 6 06:58:02 2007

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.