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

RE: Suggest for TortoiseSVN

From: Bob Archer <bob.archer_at_amsi.com>
Date: Tue, 13 Oct 2009 12:49:19 -0400

> Dear TortoiseSVNer:
> ----------------------
> TortoiseSVN 1.6.5, Build 16974 - 32 Bit , 2009/08/20 08:13:46
> Subversion 1.6.5,
> apr 1.3.8
> apr-utils 1.3.9
> neon 0.28.6
> OpenSSL 0.9.8k 25 Mar 2009
> zlib 1.2.3
> ----------------------
> When I add a file or folder to repository, I hope don't change the
> file or folder's timestamp. (And when checkout from repository)
>
> for example:
> a.cpp 2009/08/20 08:13:46
> b.cpp 2009/08/20 08:20:46
>
> Now is 2009/10/14 00:12:15
>
> Now add a.cpp/b.cpp to repository, in SVN-Repo-browser a.cpp/b.cpp's
> date is 2009/10/14 00:12:15, but I hope the date is a.cpp 2009/08/20
> 08:13:46 b.cpp 2009/08/20 08:20:46.

You would have to make this request directly to subversion, since it is the subversion libraries that control this type of stuff. I'm pretty sure this is already an existing Jira request too.

That said, create date/modify date are not maintained in the repository. Only check-in date is.

However, when you add a file to svn it's date isn't touched. The date is only touched if when you do an update the file is modified. There is a client side setting to "Set file dates to last commit time" which is the same as the "use commit date" svn config settings.

While I came from a product that maintained modify dates on check out (PVCS) I quickly understood why setting files to current date on check-out/update is a good idea. Let's assume you have a build script. (you do right) and it can do incremental compiles based on the files dates. If you are following the modify, update, test, commit work flow then you want and files that changed when you did your update to have the current date. If it maintained the date from another dev when was perhaps several hours ago your script would not see that as an updated file, your binary might have a newer date and not rebuild. Now when you commit your change you wonder why because you did an update, build, test before your commit.

BOb

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2407208

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-10-14 00:04:37 CEST

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.