You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by St...@jbhunt.com on 2007/10/01 18:24:15 UTC

Subversion and Delphi

Does Subversion has any option that we can set so that it will us the time 
stamp of the file instead of the  time stamp when the file was checked 
out.

Here is the reason why I am asking this question,

I have added Delphi project to SVN repository.All the  files in this 
project were modified some time in April 2007 or before . But when I 
checked out this files from SVN the time stamp on all this files is 
showing as current time stamp. 

This might cause a problem while we build Delphi packages. Normally during 
our Delphi build process, we will compile all the source code  and get 
dcu's(Delphi compiled units .. just like class files in java),  Delphi 
will give you the dcu's for the files that have changed, based on this 
DCU's we will be able to decide which packages to build for the changes 
made and promote only those packages.

But if the time stamp on the source file is changed Delphi will try to 
compile all the DCU's and we will have to build all the Delphi packages 
every time .


Steve Whitehead 
________________________
Steve_Whitehead@jbhunt.com
479 - 820 - 8859     (office)
479 - 820 - 3418     (fax)

Some people wear Superman pajamas. 
Superman wears Chuck Norris pajamas
 


Re: Subversion and Delphi

Posted by Jeremy Pereira <je...@jeremyp.net>.
On 1 Oct 2007, at 19:24, Steve_Whitehead@jbhunt.com wrote:

>
> Does Subversion has any option that we can set so that it will us  
> the time stamp of the file instead of the  time stamp when the file  
> was checked out.
>
> Here is the reason why I am asking this question,
>
> I have added Delphi project to SVN repository.All the  files in  
> this project were modified some time in April 2007 or before . But  
> when I checked out this files from SVN the time stamp on all this  
> files is showing as current time stamp.
>
> This might cause a problem while we build Delphi packages. Normally  
> during our Delphi build process, we will compile all the source  
> code  and get dcu's(Delphi compiled units .. just like class files  
> in java),  Delphi will give you the dcu's for the files that have  
> changed, based on this DCU's we will be able to decide which  
> packages to build for the changes made and promote only those  
> packages.
>
> But if the time stamp on the source file is changed Delphi will try  
> to compile all the DCU's and we will have to build all the Delphi  
> packages every time .

Actually, it won't.  When you first check out the project, there are  
no DCU's so it really doesn't matter what the time stamps on the  
source files are - everything is going to get compiled.  on  
subsequent updates, only the source files that get updated from the  
repository will have changed time stamps, but that is exactly what  
you want.  Suppose person A and person B both check out a source code  
file.

Person A modifies the file compiles it and commits it.

Then person B compiles the file.

Person B updates the working copy bringing person A's changes in.

Under the current scheme if person B does a compilation now, the  
newer time stamp from the update will be noticed and the source file  
compiled.  If the source file date is set to the time when person A  
changed it, or even committed it, nothing will happen when person B  
compiles it.  Even worse, on a large project with many source files,  
person B may not notice that the updated file has been skipped.

If you've put the DCU's into Subversion, I strongly recommend you  
take them out again.  It's possible that they would change every time  
you do a compile (if they contain a time stamp, for instance) even if  
you don't change the source which generates unnecessary revisions.   
Furthermore, you'd have to enforce a strict "make sure you compile  
just before you commit" rule on your developers in order to make sure  
that the compiled code was generated from the source code in the same  
revision.

All the above is not to say that there aren't situations where  
preserving the modification time of a file is not a useful thing to  
have (just check back through the archives of the list, the feature  
has been discussed at length many times), but managing source code  
that will be compiled is not one of them.

>
>
>
> Steve Whitehead
> ________________________
> Steve_Whitehead@jbhunt.com
> 479 - 820 - 8859     (office)
> 479 - 820 - 3418     (fax)
>
> Some people wear Superman pajamas.
> Superman wears Chuck Norris pajamas
>
>

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

Re: Subversion and Delphi

Posted by Erik Huelsmann <eh...@gmail.com>.
On 10/1/07, Steve_Whitehead@jbhunt.com <St...@jbhunt.com> wrote:
>
> Does Subversion has any option that we can set so that it will us the time
> stamp of the file instead of the  time stamp when the file was checked out.
>
> Here is the reason why I am asking this question,
>
> I have added Delphi project to SVN repository.All the  files in this project
> were modified some time in April 2007 or before . But when I checked out
> this files from SVN the time stamp on all this files is showing as current
> time stamp.
>
> This might cause a problem while we build Delphi packages. Normally during
> our Delphi build process, we will compile all the source code  and get
> dcu's(Delphi compiled units .. just like class files in java),  Delphi will
> give you the dcu's for the files that have changed, based on this DCU's we
> will be able to decide which packages to build for the changes made and
> promote only those packages.
>
> But if the time stamp on the source file is changed Delphi will try to
> compile all the DCU's and we will have to build all the Delphi packages
> every time .

Re: Subversion and Delphi

Posted by Andy Levy <an...@gmail.com>.
On 10/1/07, Steve_Whitehead@jbhunt.com <St...@jbhunt.com> wrote:
>
> Does Subversion has any option that we can set so that it will us the time
> stamp of the file instead of the  time stamp when the file was checked out.
>
> Here is the reason why I am asking this question,
>
> I have added Delphi project to SVN repository.All the  files in this project
> were modified some time in April 2007 or before . But when I checked out
> this files from SVN the time stamp on all this files is showing as current
> time stamp.
>
> This might cause a problem while we build Delphi packages. Normally during
> our Delphi build process, we will compile all the source code  and get
> dcu's(Delphi compiled units .. just like class files in java),  Delphi will
> give you the dcu's for the files that have changed, based on this DCU's we
> will be able to decide which packages to build for the changes made and
> promote only those packages.
>
> But if the time stamp on the source file is changed Delphi will try to
> compile all the DCU's and we will have to build all the Delphi packages
> every time .

Check out the use-commit-times option in the client configuration.
http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2

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

RE: Subversion and Delphi

Posted by "Thompson, Graeme (AELE)" <Gr...@smiths-aerospace.com>.
This will find that this is a long term outstanding request:

http://subversion.tigris.org/issues/show_bug.cgi?id=1256

> -----Original Message-----
> From: Steve_Whitehead@jbhunt.com [mailto:Steve_Whitehead@jbhunt.com] 
> Sent: 01 October 2007 19:24
> To: users@subversion.tigris.org
> Subject: Subversion and Delphi
> 
> 
> Does Subversion has any option that we can set so that it 
> will us the time stamp of the file instead of the  time stamp 
> when the file was checked out. 
> 
> Here is the reason why I am asking this question, 
> 
> I have added Delphi project to SVN repository.All the  files 
> in this project were modified some time in April 2007 or 
> before . But when I checked out this files from SVN the time 
> stamp on all this files is showing as current time stamp. 
> 
> This might cause a problem while we build Delphi packages. 
> Normally during our Delphi build process, we will compile all 
> the source code  and get dcu's(Delphi compiled units .. just 
> like class files in java),  Delphi will give you the dcu's 
> for the files that have changed, based on this DCU's we will 
> be able to decide which packages to build for the changes 
> made and promote only those packages. 
> 
> But if the time stamp on the source file is changed Delphi 
> will try to compile all the DCU's and we will have to build 
> all the Delphi packages every time . 
> 
> 
> Steve Whitehead 
> ________________________
> Steve_Whitehead@jbhunt.com
> 479 - 820 - 8859     (office)
> 479 - 820 - 3418     (fax)
> 
> Some people wear Superman pajamas. 
> Superman wears Chuck Norris pajamas
> 
> 
> 
> ______________________________________________________________________
> CAUTION: This message was sent via the Public Internet and 
> its authenticity cannot be guaranteed. 
> 
> ______________________________________________________
> 
> 

 
************************************************
The information contained in, or attached to, this e-mail, may contain confidential information and is intended solely for the use of the individual or entity to whom they are addressed and may be subject to legal privilege.  If you have received this e-mail in error you should notify the sender immediately by reply e-mail, delete the message from your system and notify your system manager.  Please do not copy it for any purpose, or disclose its contents to any other person.  The views or opinions presented in this e-mail are solely those of the author and do not necessarily represent those of the company.  The recipient should check this e-mail and any attachments for the presence of viruses.  The company accepts no liability for any damage caused, directly or indirectly, by any virus transmitted in this email.
************************************************

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