[thelist] getting 'changed by' from cvs

Mike Migurski mike-evolt at teczno.com
Wed Jul 9 16:54:18 CDT 2003


>however, all the content is kept in cvs, so it's certainly being marked
>with a last modification time and username of the committer in the cvs
>log.  is there any nifty perl-y way to get this info out of cvs without
>the overhead of calling cvs for each page request?  maybe, every time
>someone checks something in, a separate script edits the line in the file
>(say by writing a script that does that, then does the cvs commit)? or
>something more clever?
>
>how do others solve this problem in mostly automatic way?

Are you asking about something like keyword expansion?
http://cvsbook.red-bean.com/cvsbook.html#Using_Keyword_Expansion

	For example, if a file contains

	$Author$

	then when updating the file to a given revision, CVS will expand
	it to the username of the person who committed that revision:

	$Author: jrandom $

	CVS is also sensitive to keywords in their expanded form, so that
	once expanded, they continue to be updated as appropriate.

	Although keywords don't actually offer any information that's not
	available by other means, they give people a convenient way to see
	revision control facts embedded in the text of the file itself,
	rather than by invoking some arcane CVS operation.

---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca            http://mike.teczno.com/contact.html



More information about the thelist mailing list