I use svn in command line.
How can I get the head version number in command line. I need the number,not only to see the info . I want to use this number to build my project automatic.
I use svn in command line. How can I get the head version number
Share
As the comment below mentioned, this can be achieved by the following command in the newer SVN clients:
Original Answer
Here is simple shell script thingy for you. Execute:
svn info -rHEAD | grep Revision | cut -d' ' -f2See it in action:
Edit1: updated to fetch head rev.