You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dave Nadler <Da...@nadler.com> on 2007/01/01 22:41:19 UTC

preserving date-time of files in repository

OK, I know that pulling out a file with an old date may cause a build 
to not do something; happy to do a clean/build if I must revert to an 
older version of a file.

How can I get subversion to preserve the date-time of a file when its 
checked into and out of the repository ?  The real time-stamp of when 
the file was last *really* changed is an important piece of 
information, and we need to preserve this.  Especially during 
migration to use of subversion !

Help !  I read the pragmatic book, searched the documentation, and 
cannot find out how to do this (or if it is indeed possible). 
Apologies if it is documented and I've somehow overlooked it...

Thanks in advance,
Best Regards, Dave

Dave Nadler, USA East Coast voice (978) 263-0097,  drn@nadler.com  


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: preserving date-time of files in repository

Posted by Erik Huelsmann <eh...@gmail.com>.
On 1/7/07, Dave Nadler <Da...@nadler.com> wrote:
> OK, so how hard will it be to upgrade SVN to provide
> the "preserve-file-timestamps" option ?  Is it completely
> impossible because the "DB" is hardwired with no
> provision for expansion and the concept is alien to all
> the SVN code ?  Or would it be easy ?
>
> Where can an SVN newcomer go to learn about the
> SVN architecture and how to attack this problem ?

Hi Dave,

I have posted an IMO complete proposal for mtime recording at
http://svn.haxx.se/dev/archive-2006-09/0492.shtml . Search
http://svn.haxx.se/dev/archive-2006-09/index.shtml and
http://svn.haxx.se/dev/archive-2006-10/index.shtml for 'versioning
mtime' to find other people's reactions.

I have stopped development of the feature before starting to implement
the proposal (though nobody really objected, there was no active
support either): other developers thought I could do better doing
other work and in response, I cleared up ra_dav code instead (that's
up for 1.5, but contains no visible changes for users).

Anybody with sufficient time and motivation could implement the
feature I have described though, I think.

HTH,

Erik.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: preserving date-time of files in repository

Posted by Dave Nadler <Da...@nadler.com>.
OK, so how hard will it be to upgrade SVN to provide
the "preserve-file-timestamps" option ?  Is it completely
impossible because the "DB" is hardwired with no
provision for expansion and the concept is alien to all
the SVN code ?  Or would it be easy ?

Where can an SVN newcomer go to learn about the
SVN architecture and how to attack this problem ?

Thanks in advance,
Best Regards, Dave

At 09:56 AM 1/3/2007, Mike Brenner wrote:
>Hi Dave,
>
>Yes, you understand correctly.
>
>Subversion does not have any equivalent
>to "use-file-modify-times".
>
>Subversion destroys that information
>when it puts the file into the repository.
>When you "svn co" or "svn update", the
>bastardized file comes out of the repository
>with the modification date set to the commit date.
>
>In my opinion, this destruction of the most
>important information in a file (its modification date)
>constitutes the biggest design flaw in subversion.
>
>Svn serves its one use case well.
>
>Keeping the modification date intact
>would expand its usefulness to other use cases.
>
>Mike Brenner
>
>
>Dave Nadler wrote:
>>Right Mike, thanks for clarifying. If a file was last edited
>>back in 1991, we need the file timestamp to remain 1991
>>until somebody really changes it.
>>Do I understand correctly that "use-file-modify-times"
>>or equivalent just doesn't exist ?
>>Thanks again,
>>Best Regards, Dave
>>At 11:19 AM 1/2/2007, Mike Brenner wrote:
>>>Hi Andreas,
>>>
>>>That ("use-commit-times") did not answer the question
>>>"when it's checked into and out of the respository"
>>>"how can I get subversion to preserve the date-time "
>>>"when the file was last *really* changed?".
>>>
>>>The "use-commit-times" specifically uses the time
>>>you committed into the library, as opposed to
>>>the time you last CHANGED the file. And it does not
>>>even do that! If you change a file in 1999, then you
>>>move it into subversion in 2005, then you
>>>take it out of subversion and re-check it into
>>>subversion in 2007, it will have the date 2007,
>>>not 2005. So it is not the time it last changed
>>>its check-in date into subversion, but rather the
>>>MOST RECENT check-in date into subversion.
>>>
>>>What subversion needs is the option to
>>>"use-file-modify-times" instead of commit times.
>>>If that option were to become available, then
>>>the first time someone started copying files
>>>around, they would see the problem and
>>>start using that "use-file-modify-times"
>>>option!
>>>
>>>Mike Brenner
>>
>>>Date: Mon, 01 Jan 2007 17:41:19 -0500
>>>To: users@subversion.tigris.org
>>>From: Dave Nadler <Da...@nadler.com>
>>>Subject: preserving date-time of files in repository
>>>
>>>OK, I know that pulling out a file with an old date may cause a 
>>>build to not do something; happy to do a clean/build if I must 
>>>revert to an older version of a file.
>>>
>>>How can I get subversion to preserve the date-time of a file when 
>>>its checked into and out of the repository ?  The real time-stamp 
>>>of when the file was last *really* changed is an important piece 
>>>of information, and we need to preserve this.  Especially during 
>>>migration to use of subversion !
>>>
>>>Help !  I read the pragmatic book, searched the documentation, and 
>>>cannot find out how to do this (or if it is indeed possible). 
>>>Apologies if it is documented and I've somehow overlooked it...
>>>
>>>Thanks in advance,
>>>Best Regards, Dave
>>
>>Dave Nadler, USA East Coast voice (978) 263-0097,  drn@nadler.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: preserving date-time of files in repository

Posted by Mike Brenner <mi...@mitre.org>.
Hi Dave,

Yes, you understand correctly.

Subversion does not have any equivalent
to "use-file-modify-times".

Subversion destroys that information
when it puts the file into the repository.
When you "svn co" or "svn update", the
bastardized file comes out of the repository
with the modification date set to the commit date.

In my opinion, this destruction of the most
important information in a file (its modification date)
constitutes the biggest design flaw in subversion.

Svn serves its one use case well.

Keeping the modification date intact
would expand its usefulness to other use cases.

Mike Brenner



Dave Nadler wrote:
> Right Mike, thanks for clarifying. If a file was last edited
> back in 1991, we need the file timestamp to remain 1991
> until somebody really changes it.
> 
> Do I understand correctly that "use-file-modify-times"
> or equivalent just doesn't exist ?
> 
> Thanks again,
> Best Regards, Dave
> 
> At 11:19 AM 1/2/2007, Mike Brenner wrote:
>> Hi Andreas,
>>
>> That ("use-commit-times") did not answer the question
>> "when it's checked into and out of the respository"
>> "how can I get subversion to preserve the date-time "
>> "when the file was last *really* changed?".
>>
>> The "use-commit-times" specifically uses the time
>> you committed into the library, as opposed to
>> the time you last CHANGED the file. And it does not
>> even do that! If you change a file in 1999, then you
>> move it into subversion in 2005, then you
>> take it out of subversion and re-check it into
>> subversion in 2007, it will have the date 2007,
>> not 2005. So it is not the time it last changed
>> its check-in date into subversion, but rather the
>> MOST RECENT check-in date into subversion.
>>
>> What subversion needs is the option to
>> "use-file-modify-times" instead of commit times.
>> If that option were to become available, then
>> the first time someone started copying files
>> around, they would see the problem and
>> start using that "use-file-modify-times"
>> option!
>>
>> Mike Brenner
> 
>> Date: Mon, 01 Jan 2007 17:41:19 -0500
>> To: users@subversion.tigris.org
>> From: Dave Nadler <Da...@nadler.com>
>> Subject: preserving date-time of files in repository
>>
>> OK, I know that pulling out a file with an old date may cause a build 
>> to not do something; happy to do a clean/build if I must revert to an 
>> older version of a file.
>>
>> How can I get subversion to preserve the date-time of a file when its 
>> checked into and out of the repository ?  The real time-stamp of when 
>> the file was last *really* changed is an important piece of 
>> information, and we need to preserve this.  Especially during 
>> migration to use of subversion !
>>
>> Help !  I read the pragmatic book, searched the documentation, and 
>> cannot find out how to do this (or if it is indeed possible). 
>> Apologies if it is documented and I've somehow overlooked it...
>>
>> Thanks in advance,
>> Best Regards, Dave
> 
> Dave Nadler, USA East Coast voice (978) 263-0097,  drn@nadler.com
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: preserving date-time of files in repository

Posted by Dave Nadler <Da...@nadler.com>.
Right Mike, thanks for clarifying. If a file was last edited
back in 1991, we need the file timestamp to remain 1991
until somebody really changes it.

Do I understand correctly that "use-file-modify-times"
or equivalent just doesn't exist ?

Thanks again,
Best Regards, Dave

At 11:19 AM 1/2/2007, Mike Brenner wrote:
>Hi Andreas,
>
>That ("use-commit-times") did not answer the question
>"when it's checked into and out of the respository"
>"how can I get subversion to preserve the date-time "
>"when the file was last *really* changed?".
>
>The "use-commit-times" specifically uses the time
>you committed into the library, as opposed to
>the time you last CHANGED the file. And it does not
>even do that! If you change a file in 1999, then you
>move it into subversion in 2005, then you
>take it out of subversion and re-check it into
>subversion in 2007, it will have the date 2007,
>not 2005. So it is not the time it last changed
>its check-in date into subversion, but rather the
>MOST RECENT check-in date into subversion.
>
>What subversion needs is the option to
>"use-file-modify-times" instead of commit times.
>If that option were to become available, then
>the first time someone started copying files
>around, they would see the problem and
>start using that "use-file-modify-times"
>option!
>
>Mike Brenner

>Date: Mon, 01 Jan 2007 17:41:19 -0500
>To: users@subversion.tigris.org
>From: Dave Nadler <Da...@nadler.com>
>Subject: preserving date-time of files in repository
>
>OK, I know that pulling out a file with an old date may cause a 
>build to not do something; happy to do a clean/build if I must 
>revert to an older version of a file.
>
>How can I get subversion to preserve the date-time of a file when 
>its checked into and out of the repository ?  The real time-stamp of 
>when the file was last *really* changed is an important piece of 
>information, and we need to preserve this.  Especially during 
>migration to use of subversion !
>
>Help !  I read the pragmatic book, searched the documentation, and 
>cannot find out how to do this (or if it is indeed possible). 
>Apologies if it is documented and I've somehow overlooked it...
>
>Thanks in advance,
>Best Regards, Dave

Dave Nadler, USA East Coast voice (978) 263-0097,  drn@nadler.com 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: preserving date-time of files in repository

Posted by Mike Brenner <mi...@mitre.org>.
Hi Andreas,

That ("use-commit-times") did not answer the question
"when it's checked into and out of the respository"
"how can I get subversion to preserve the date-time "
"when the file was last *really* changed?".

The "use-commit-times" specifically uses the time
you committed into the library, as opposed to
the time you last CHANGED the file. And it does not
even do that! If you change a file in 1999, then you
move it into subversion in 2005, then you
take it out of subversion and re-check it into
subversion in 2007, it will have the date 2007,
not 2005. So it is not the time it last changed
its check-in date into subversion, but rather the
MOST RECENT check-in date into subversion.

What subversion needs is the option to
"use-file-modify-times" instead of commit times.
If that option were to become available, then
the first time someone started copying files
around, they would see the problem and
start using that "use-file-modify-times"
option!

Mike Brenner



Andreas Schweigstill wrote:
> Dear Dave!
> 
> Dave Nadler schrieb:
>> Help !  I read the pragmatic book, searched the documentation, and 
>> cannot find out how to do this (or if it is indeed possible). 
>> Apologies if it is documented and I've somehow overlooked it...
> 
> Yes, you overlooked it. The keyword is "use-commit-times".
> 
> http://svnbook.red-bean.com/nightly/en/svn.advanced.html
> 
> With best regards
> Andreas Schweigstill
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: preserving date-time of files in repository

Posted by Andreas Schweigstill <an...@schweigstill.de>.
Dear Dave!

Dave Nadler schrieb:
> Help !  I read the pragmatic book, searched the documentation, and 
> cannot find out how to do this (or if it is indeed possible). Apologies 
> if it is documented and I've somehow overlooked it...

Yes, you overlooked it. The keyword is "use-commit-times".

http://svnbook.red-bean.com/nightly/en/svn.advanced.html

With best regards
Andreas Schweigstill

-- 
Dipl.-Phys. Andreas Schweigstill
Schweigstill IT | Embedded Systems
Schauenburgerstraße 116, D-24118 Kiel, Germany
Phone: (+49) 431 5606-435, Fax: (+49) 431 5606-436
Mobile: (+49) 171 6921973, Web: http://www.schweigstill.de/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org