[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to check repository version

From: Simon Comeau Martel <martelsc_at_videotron.ca>
Date: 2005-01-20 02:30:50 CET

Dirk Hoffmann wrote:

> "svn info" gives me the uuid of the repository the working copy was
> created from. But how do I query the uuid of the repository that
> actually serves the same URL to match these against each other?

Well, I don't know if there is a better solution, but has a dirty work
around, you can checkout the revision 0 of the URL and run svn info on
the directory created. Revision 0 is always empty, so it doesn't take
much time or space.

Ex:
###################
$ svn co -r0 http://svn.collab.net/repos/svn tmp
Checked out revision 0.
$ svn info tmp
Path: tmp
URL: http://svn.collab.net/repos/svn
Repository UUID: 65390229-12b7-0310-b90b-f21a5aa7ec8e
Revision: 0
Node Kind: directory
Schedule: normal
Last Changed Rev: 0
Last Changed Date: 2001-08-31 00:23:30 -0400 (Fri, 31 Aug 2001)

$ rm -rf tmp
###################

Be sure to specify the root of the repository in the URL, since nothing
else exist under it at r0

Hope it can help...

-- 
Simon Comeau Martel
martelsc@videotron.ca
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jan 20 02:33:35 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.