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

Re: Preserve timestamps while creating tag with SVN copy

From: Lorenz <lorenznl_at_yahoo.com>
Date: Tue, 29 Oct 2013 06:25:32 +0000

Steve Cohen wrote:
>I would like to be able to create a tag using the SVN copy command so
>that the timestamps on the files in the destination are the same as
>those in the source.

there are no individual timestamps on files in the repository, only
one timestamp on the revision as a whole.

If you are talking about the timestamp of the commit / tag though ...

That can easyly be changed to match the tag source using "svn propset
svn:date --revprop -r <tagrevision> <date> <repopath>".

Be aware that the "svn -r {date} ..." syntax will no longer work
properly if you do so (because it relies on the revision timestamps to
be ordered).

And you will need a pre-revprop-change hook to allows revprop changes.

-- 
Lorenz
Received on 2013-10-29 07:22:42 CET

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.