For the .jsp files specifically, could you put JSP comment tags (<%-- .. --%>) around the CVS keywords and any other sensitive text?
________________________________ From: [email protected] on behalf of Ziggy Sent: Wed 12/23/2009 3:28 AM To: [email protected] Subject: CVS History on non compilable file formats Hi, 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. [code] File : $RCSfile$ ($Source$) Summary : $Id$ Change Log ---------- $Log$ [/code] 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 [code] * 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 [/code] 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? Thanks 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. ********************************************************** MLB.com: Where Baseball is Always On
