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 SVNI 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
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:
From there, parse just r #### Field.
Comments
Post a Comment