This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Details for svn test repository


Daniel Berlin wrote:
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.

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]