[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Add Version/Date When Checking In File

From: Robert Clark
Subject: Re: Add Version/Date When Checking In File
Date: Thu, 18 Jan 2007 12:59:51 -0500
User-agent: KMail/1.9.5

On Thursday January 18, 2007 11:57, "Aaron Bono" <address@hidden> 
> We want to add the CVS version of a file, a time stamp of when the
> file is checked in and the user who checked the file in to all
> source code files. 

Just out of morbid curiosity: why would you want to do such a thing? 
All that information is already stored in the repository by CVS when 
you commit the file.

> We would like CVS to do this automatically for 
> use when checking in so we don't have to do it manually.  Is there
> a library out there that helps with modifying checked in files
> before they are committed to the repository?

Take a look at the $Log$ keyword, it is expanded *on checkout* to the 
information you want to track. 


However, there seem to be two things you'll have to live with:

  o the commit message is included as well
  o it is expended on checkout, not when the file is committed to the

Also, if you ever need to merge files from different branches, you are 
going to have no end of conflicts.

Aside from the $Log$ keyword, I know of no easy way to do what you 
want. Perhaps a commitinfo triggered script?

- Rob

reply via email to

[Prev in Thread] Current Thread [Next in Thread]