[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: Russ Brown <pickscrape_at_gmail.com>
Date: 2005-07-28 09:15:45 CEST

Christopher Ness wrote:
> 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. ;)
>

Yes, it probably could be scripted, but grepping through logs like that
is an inexact science, as there's nothing to stop a log message matching
the string being grepped for and causing a false positive.

I just think that Subversion should provide a way to easily look back at
the history of a given path. It's easy enough to get at the information
once you know where it is, it's just not very easy to find it.

It would also be nice to have an API call for doing this. Pass path and
get array of instances back.

> Cheers,
> Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jul 28 15:18:05 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.