Get svn revision without an appropriate svn binary installed
Posted
by Sridhar Ratnakumar
on Stack Overflow
See other posts from Stack Overflow
or by Sridhar Ratnakumar
Published on 2010-03-25T22:35:11Z
Indexed on
2010/03/26
3:33 UTC
Read the original article
Hit count: 567
For some reason, we can't update the SVN in some build machines. Installed svn version is 1.3.x. But Hudson slave used 1.6 to create a checkout. This means we can't run "svn info" on those checkouts:
$ svnversion
subversion/libsvn_wc/questions.c:110: (apr_err=155021)
svn: This client is too old to work with working copy '.'; please get a newer Subversion client
$ svn info
subversion/libsvn_wc/questions.c:110: (apr_err=155021)
svn: This client is too old to work with working copy '.'; please get a newer Subversion client
$
My question, is there a way to access the revision number without having to invoking the svn binary? You know, like trying to look into the .svn/ directory? Assume that the checkout is using latest svn version (1.6).
© Stack Overflow or respective owner