You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Andrew Bidochko <an...@ionzoft.com> on 2005/02/01 16:41:59 UTC
SVN DIRECTORY TIMESTAMPS ON EXPORT
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.
Thanks!
--
Best regards,
Andrew mailto:andrew@ionzoft.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: SVN DIRECTORY TIMESTAMPS ON EXPORT
Posted by Steve Greenland <st...@lsli.com>.
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