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

Re: SVN DIRECTORY TIMESTAMPS ON EXPORT

From: Steve Greenland <steveg_at_lsli.com>
Date: 2005-02-02 17:53:07 CET

On Tue, Feb 01, 2005 at 11:41:59AM -0500, Andrew Bidochko wrote:
> Hello,
>
> I use the following command to export my project from SVN repository
> export -r HEAD --force svn://some.host/rep/project/trunk/ /home/user/project
>
> Each time when I use that command directories timestamps are
> updated with export time (like now). Files came with commit-timestamps
> from the repository.
>
> The question is why directories timestamps are updated each time.

Because you're writing to the directories. The sequence is this:

1. Create directory foo. SVN might set the timestamps, but probably not,
as it's pointless.

2. Create file foo/bar.c. At this point, the timestamp (specifically,
mtime, at least on POSIX) on foo is updated to now. Repeat.

It's conceivable that 'svn export' could be modified to go back and
reset the mtime on each directory after the export completes, but who
cares? It's even less useful than timestamps on files.

If you're really obsessive about this, the solution would be to export,
and then run a script that retrieved the modified date for each
directory from subversion, and set the mtime yourself.

Steve

-- 
"Outlook not so good." That magic 8-ball knows everything! I'll ask
about Exchange Server next.
                           -- (Stolen from the net)
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Feb 2 17:55:48 2005

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.