Forum: CFEngine Help Subject: SVN tricks Author: timw077 Link to topic: https://cfengine.com/forum/read.php?3,24395,24395#msg-24395
In the spirit of sharing, and being helpful, I offer this. We are using SVN to manage changes to our CFEngine repository. Authorized users can check out the repository, make changes, and commit them. When adding new files to our repository, we have established a simple standard to help identify the "VERSION information" in the files. ################################################################################ # # FileName.cf - brief description # $Revision: $ # # Long and detailed description so that someone coming after you in six months # will have some understanding of what is going on. SERIOULSY, update this. It isn’t hard. # ################################################################################ $ svn add FileName.cf $ svn propset svn:keywords 'Revision' FileName.cf $ svn ci -m "Meaningful Comment for the Change System" FileName.cf Then when others see the file, They can tell the SVN version that last updated this file. # FileName.cf - brief description # $Revision: 782 $ Every time someone commits a change to the file, SVN updates the Revision number here. I can also use this to make sure that the systems are getting files if changes aren't working. I made a change to this promise earlier, does this system have it? (grep Revision: /var/cfengine/input/site/FileName.cf) These are simple SVN tricks, but not everyone knows them. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine