LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 08-03-2011, 02:48 PM   #1
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, Red Hat
Posts: 571

Rep: Reputation: 34
How CVS Commit Writes Change History Into Module


I've been looking at my CVS book and checked on the web with no luck. What "text" is needed in a module, so cvs commit will write change history into the module(s)?

Thanks.
cmn
 
Old 08-03-2011, 03:58 PM   #2
theNbomr
Senior Member
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 4,506

Rep: Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602Reputation: 602
CVS uses tags, which are placeholders for specific types of information. When CVS encounters a tag that it understands in a text file, it replaces the tag with a string containing the specified information. Afterwards, it continues to recognize tags that have already been expanded, and replaces them on each commit. An example of a common tag is the '$Date$' tag. CVS will replace this with a time/date stamp string when the module is committed to the repository. For putting a history into the file, the $Log$ tag can be used. Its behavior is a bit different, in that it doesn't throw away the previous instance, but appends new information on each commit, thus leaving a history trail. Usually CVS tags would be placed in comment-blocks in the code, but CVS doesn't care where it finds tags; it will replace them anywhere it finds them. Your CVS book should list all of the possible tags and their purpose and behavior.
--- rod.

Last edited by theNbomr; 08-03-2011 at 06:33 PM.
 
1 members found this post helpful.
Old 08-04-2011, 08:16 AM   #3
cmnorton
Member
 
Registered: Feb 2005
Distribution: Ubuntu, Red Hat
Posts: 571

Original Poster
Rep: Reputation: 34
Thanks again. When I read tags, I was thinking of tagging at the command line. Maybe they're the same thing as tags like $Log$, but the word tags took me in the wrong direction.
 
  


Reply

Tags
change history, commit, cvs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cvs [commit aborted]: 'root' is not allowed to commit files rakesh@linuxforum Linux - Newbie 1 07-14-2011 09:43 AM
CVS Commit message divyashree Linux - Newbie 1 09-07-2010 03:51 AM
cvs commit error ShaqDiesel Programming 3 05-28-2009 08:06 PM
cvs [commit aborted]: 'root' is not allowed to commit files r_ramya06 Linux - Newbie 5 07-08-2008 09:04 AM
emailing on cvs commit allan_y Linux - Software 2 07-02-2004 09:30 AM


All times are GMT -5. The time now is 04:21 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration