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

Re: Subversion feature question/request

From: Christopher Ness <chris_at_nesser.org>
Date: 2005-07-22 14:55:08 CEST

On Thu, 2005-07-21 at 17:43 +0100, Russ Brown wrote:
> svn <command> svn://url/trunk
>
> 500:1000
> 2000-HEAD

Did you mean svn://url/branches/x above? Something seemed off with your
revision numbers in the original post.

I take it you want to pass a URL to the repository and have it return
the revision ranges that the URL was valid. For example...

svn <command> svn://url/trunk [-rX:Y]
1:HEAD

That is assuming the trunk was part of the first import. I believe
there is nothing in revision zero so it should never be a peg revision.

> Or something similar. That would make working with peg revisions so much
> easier.
>
> Can this be done already, and if not how hard would it be to add?

svn log -v -r500:1000 svn://url/branches/ | grep x

This command shows you if the URL you are looking for existed between
r500 and 1000 as a child of the branches directory. There is also the
--stop-on-copy flag for finding when a branch was made.

Then you need to dig though the logs -- which isn't that hard, just
search for the URL with a text editor.

A nice little program could be written with the python or perl bindings
if you so feel the need. ;)

Cheers,
Chris

-- 
Wireless Group
McMaster University
summer
08:44:38 up 18:37, 1 user, load average: 1.11, 0.83, 0.82
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 22 15:13:46 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.