Check if a specific revision (or tag) exists in SVN / subversion

I am creating a phing script deployment where I first ask the user to enter the revision / tag for deployment from svn.

when the user enters, for example. 0.1, I would like to check (using linux script or from svn itself) if this version 0.1 really exists. If it does not exist, I want to print the error and stop.

Thanks so much for sharing the experience!

+3
source share
1 answer

You can use the SVN info command to get information about a folder, file, trunk, branch, tag.

+5
source

Source: https://habr.com/ru/post/1761598/


All Articles