
Using/Accessing SVN Keywords in Procedure Files

jjweimer
// Package Name // $Author: $ // SVN History: $Revision: $ on $Date: $
This is an example of the same for an actual package after a commit cycle.
// Scroll Traces // $Author: Jeffrey J Weimer$ // SVN History: $Revision: 1088 $ on $Date: 2009-07-08 14:55:06 -0400 (Wed, 08 Jul 2009) $
Note, for some reason, the Author keyword never has been substituted. I put it in manually for each procedure file and it stays in place. This may be a MacOS issue and/or something that I need to define somewhere in the SVN config file itself.
Here is an example of how to have the Revision string returned by a call to a function.
// About Me Function/S AboutMe() string aboutme aboutme = "This package is currently at development " + " $Rev: $ by $Author: $" return aboutme End

Forum

Support

Gallery
Igor Pro 9
Learn More
Igor XOP Toolkit
Learn More
Igor NIDAQ Tools MX
Learn More
August 23, 2010 at 10:21 pm - Permalink
August 24, 2010 at 01:30 am - Permalink
An additional caveat is, you must set the SVN properties of the .ipf file itself to include the corresponding keywords (Author, Rev, Date ...). Otherwise, the information in the (text) procedure file will not be patched during a commit cycle.
--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAHuntsville
August 24, 2010 at 05:14 am - Permalink