[cvsnt] Can CVSNT automatically insert tag version number info as a comment into object being commited?
Glen Starrett
glen.starrett at march-hare.com
Wed Apr 25 23:02:03 BST 2007
David Garcia wrote:
> Given the following requirement:
>
> "In order to ultimately identify the version of an object for Audit, each object must be
> commented with version number tags, that will be automatically updated by the source
> code control system when an object is changed."
>
> Can this be done by CVSNT? can it auotmatically insert version number tag information into a changed object at commit time as a comment? or is this something I would have to
> drive myself through scripts and/or code I would have to write?
Yes, but not exactly the way you describe. It actually substitutes the
values in the checkout / update phase.
Look up "keywords", specifically the $Revision$ tag.
// This file is version $Revision$
ends up as:
// This file is version $Revision 1.2$
for version 1.2.
For more info:
http://www.cvsnt.org/manual/html/Keyword-substitution.html
Regards,
--
Glen Starrett
Technical Account Manager, North America
March Hare Software, LLC
http://march-hare.com/cvspro/
More information about the cvsnt
mailing list