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

Re: time stamp

From: Ryan Schmidt <subversion-2006Q1_at_ryandesign.com>
Date: 2006-01-02 20:52:30 CET

On Jan 2, 2006, at 16:17, Askar, Serap (EZTV/3) wrote:

> I would like to add an older directory or file to an existing
> repository,
> but I need to keep the origin timestamp for this file, neither the
> "last
> commit time" nor the "current time".
> Example:
> -Repository-creation--date: 22.12.2005 "subvers-repository"
> -current-date: 2.01.2006
> -date-of-add-file: 11.07.2003, "addFile.h"
>
> Is it possible to keep the origin date of existing files while
> using the add
> command in subversion?
> It would be nice, if someone could give a short answer to this
> question.

Unfortunately Subversion doesn't store modification times in its
repository. It only stores the time of the commit.

Normally when you check out a working copy from a repository, the
modification time of the items you check out is set to the current
date and time. You can, instead, have Subversion set this to the date
and time when the items were committed. Set "use-commit-times = yes"
in the [miscellany] section of your ~/.subversion/config file.

You can change the commit time after the fact. So if you commit just
this single file, then changing the time of the commit would
effectively change the time the file was modified. Use "svn propset
svn:date --revprop -r <the-revision-number>
'2003-11-07T00:00:00.000000Z' url://of/repository"

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jan 2 20:54:27 2006

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.