[Top][All Lists]

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

RE: CVS History on non compilable file formats

From: Risman, Mark
Subject: RE: CVS History on non compilable file formats
Date: Wed, 23 Dec 2009 11:15:03 -0500

For the .jsp files specifically, could you put JSP comment tags (<%-- .. --%>) 
around the CVS keywords and any other sensitive text?


From: address@hidden on behalf of Ziggy
Sent: Wed 12/23/2009 3:28 AM
To: address@hidden
Subject: CVS History on non compilable file formats


I have a lot of files in CVS that are not compilable files. (e.g. *.html,
*.jsp etc).
I use the following template on each new file that is checked in to cvs.

File    : $RCSfile$ ($Source$)
Summary : $Id$

Change Log

This means that whenever a file is update or modified and then checked in, a
log is appended to the cvs history section at the top of the page . Here is
an example

 * Revision 1.6  2009/06/04 11:43:20  jamesd
 * Fault12: Product and prices tables size modified.
 * Revision 1.5  2009/06/01 14:16:56  rushitS
 * ChangeRequest45: Capitalisation for close link.
 * Revision 1.4  2009/05/31 12:56:31  jamesd
 * ChangeRequest45: Implementation of Select Beans

Now this is working very well. The only problem is that with pages that are
not compilable, the revision history is also visible. For example on JSP
pages, the cvs history is included in each page as html comments. So on the
browser, if someone selects "View Source", they can view the source of the
html/jsp page and the revision history of the page.

Is there a way to remove the revision history before deployment? I know i
can use some unix tools like grep and cut to remove the revision history but
i have a feeling it wont be a simple job to determine whether its a real
comment or a cvs history comment. Is there an easier way to do this?


its fine with compilable files e.g. (.java, .c etc) as these are not visible
to the user as they run on the server side.

********************************************************** Where Baseball is Always On

reply via email to

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