Inserting Current SVN revision as a Variable?

This forum is for all Flare issues related to using Source Control.
Post Reply
spw24
Jr. Propeller Head
Posts: 6
Joined: Thu Jul 06, 2017 1:28 am

Inserting Current SVN revision as a Variable?

Post by spw24 »

Hi all,
I'm using SVN to version control my Flare project and I'd really like my output to include the SVN revision number used to build it.
Is this possible? (I would have thought it could be done by the use of a variable)
If so, how?

I don't really want to actually insert the revision number manually...I'm bound to forget to do it sometimes!

Thanks in advance for any advice!
:)

Stu
ChoccieMuffin
Senior Propellus Maximus
Posts: 2630
Joined: Wed Apr 14, 2010 8:01 am
Location: Surrey, UK

Re: Inserting Current SVN revision as a Variable?

Post by ChoccieMuffin »

I'm using something that my predecessor and our build manager did between them, which runs a PowerShell script to query SVN to find the revision number and then replaces a placemarker in a named variable set with the SVN number. I'm sorry I can't be more help with WHAT you have to do, just saying it can be done, and I hope that might start you off in the right direction. This is all done on our build machine which runs the PowerShell script before building all our targets, but you may be able to invoke a script as a pre-build event command on your target (on the Build Events tab of the target). No promises, but that might set you in the right direction. The bit in the PowerShell script looks for SVN info along the lines of ".info.entry.commit.revision", don't know if that's useful information for you.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Post Reply