bash - SVN command-line: Find current HEAD revision of a branch -


As part of a script I am writing, I have given the to capture the latest revision number within Trying

In SVN

I tried the following code (where $ {sourcebranch} is the SVN URL for my branch):

  svn info $ {sourcebroken} | Awk '/ Amendment / {Print $ 2; } ' 

However, this is not giving me the latest amendment number only for full repository .

I really want the branch ... any thoughts?

Instead of using logs :

  svn log - 1 $ {sourcebranch})  

This will commit to the same branch as the final commitment:

-------- --------------------------------------- ----------- -------------- 14149 | Author_name | 2014-04-25 18:54:49 -0400 (Fri, 25 April 2014). 5 line log messages ---------------------------------------------- --------------------------

From there, parse just r #### Field.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -