On Fri, 2005-02-11 at 17:13 +0000, Joern RENNECKE wrote:
Joseph S. Myers wrote:
You mean the revision number of the whole checked out tree, which the "svnversion" utility will tell you in any checked out svn tree (including whether the tree is modified or mixed version). Given such a number, if you don't intend to do svn operations on that tree afterwards you can remove the .svn directories and reconstruct the checked out tree using the version number later.
Is there an svn command to do that without doing a new checkout from the repository?
You mean tell you what the current version of the repo is? svnlook can do it, but it requires direct access to the repo. I could always make something that just prints out svnlook youngest <repo> to a socket and closes the connection (so you could netcat it or whatever), if that is what you need.
Alternately, parse the output of svn ls -v on the repository root, and select the highest revision number cited. This requries no changes on the server.
signature.asc
Description: OpenPGP digital signature