Find Head revision svn no working copy
I have a repo I am trying to get the HEAD revision number through code. There is no svn controlled working copy as everything is exported.
Tried: svn info /var/svn/xyz
But it says this is not a开发者_运维知识库 working copy. All I need is the rev number. Thanks
svn info accepts a remote repository as the path to check. Why not use that? svn info
You'll get the repository info back in an easily parsable format.
Try this:
svnlook youngest /var/svn/xyz
It works fine for me:)
精彩评论