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

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

From: Ryan Schmidt <subversion-2007a_at_ryandesign.com>
Date: 2007-02-28 05:51:42 CET

On Feb 27, 2007, at 08:37, Frans Knibbe wrote:

>> Only if you put the file time in a custom property which you restore
>> after checking out.
>
> Yes, I thought about that too. That way, the file modification time
> would not be really lost but just stored in a different way. And if
> something like a post-checkout hook existed I could even reset the
> file time of the working copy. But such a hook does not exist....

Not only is there no post-checkout hook [1] but hooks run on the
server, and it sounds like you are asking for hook that runs on the
client. No Subversion hooks currently run on the client, so this
would be much work to implement. And I believe that because of
potential platform differences and differences in installed scripting
languages on clients, client-side hooks are a very prickly proposition.

Sounds like you should just be writing a wrapper script to go around
"svn checkout", which itself calls svn checkout, then mucks with the
modification dates of the checked-out files in whatever way you like.

[1] I did write a script to implement a post-checkout hook, but it is
a server-side script, of course; it does not do anything on the client:

http://www.ryandesign.com/svnhookdispatcher

-- 
To reply to the mailing list, please use your mailer's Reply To All  
function
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 28 05:52:12 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.