[dev] CVS line for Source Code Header

Oliver Tappe ot at otrs.com
Thu Jul 12 18:30:21 GMT 2007


Hi Dan,

On 2007-07-12 at 17:43:32 [+0200], Dan King <DKing at carms.ca> wrote:
> I am creating the NotificationMotd.pm file listed in the Dev Manual and I was 
> curious if someone could explain the CVS line for the Source code header and 
> what each part means and how I would write that line. 

Basically, just don't bother writing anything in there, as it will be 
overwritten anyway (see below).

> The example from the NotificationMotd.pm file is:
> 
> # $Id: module-format.xml,v 1.17.4.1 2007/03/20 11:13:40 martin Exp $

This line is expanded by CVS during a commit, so you never edit it yourself. If 
you insert a line like
	# $Id: $
into a (text-)file and commit it into a CVS repository with activated keyword 
expansion, CVS will insert some information about the file into the Id - 
placeholder. The individual items within that line are:
	the filename where this $Id: $ line lives in
	the current CVS-revision of this file
	the date and time of last commit
	the name of the developer who did that commit
	the state (hm, what 'Exp' means in this context escapes me currently... ;-)

So, please do not change anything in that line, it will be replaced whenever 
you commit that file to a CVS-repository. If you are not going to do that 
anytime soon, you might choose to reduce that line to 
	# $Id: $
or even remove it completely.

cheers,
	Oliver
-- 
((otrs)) :: OTRS GmbH :: Europaring 4 :: D - 94315 Straubing
  Fon: +49 (0) 9421 56818-0  :: Fax: +49 (0) 9421 56818-18
    http://www.otrs.com/ :: Communication with success!


More information about the dev mailing list