I have two branches in my application:
- 01
- 02
When I tag from these branches for a code release I create a tag called 01.01, for example.
Is there a way to extract the latest tag from subversion or the revision graph? Is it possible to have a PHP script and pass it the branch URL and it can parse the revision graph or something similar to give me the latest tag?
I do something similar. I keep this structure:
\repo-base
\trunk
\branches
\releases
The only thing the releases folder gets it copies (tags) of \trunk on when ready to release. I then automate deploying it by first getting the latest release tag with:
I then use a regex to parse out the line I need, Which will always be the latest release. You can use a svn PHP library, or just exec commands in your php script.