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

Re: New log ideas (was: RE: Delete revision of an object has no peg revision?)

From: Giovanni Bajo <rasky_at_develer.com>
Date: 2007-01-12 03:34:53 CET

On 11/01/2007 3.52, Brummer, Byron wrote:

> I think for my own part I'm going to take a crack at
> coding up an @* or perhaps @ALL peg syntax to play
> around with. See if I can't put some code where my
> loud mouth is. Perhaps an --action argument as well,
> to allow for something like:
>
> svn log --action A file@ALL
>
> would effectively return a list of usable peg versions
> for all unique objects on the path.
>
> svn log --action D file@<PEG>
>
> would return the Deletion of the object at PEG.

I have sometimes wondered why people feel the urge to add it to "svn log".

I personally think a new command makes sense here, something like "svn
history": "svn history URL" would return a list of all peg revisions at which
URL existed, something like:

1-10
50-100
100-130

So you get both adds and deletes, and you even get replaces (for instance, you
can see in my example that there was a replace at r100). After you get this
information, you can call svn log as you please.

I find your proposal a little confusing because it's not clear what the output
should be. If I write @ALL and I really mean it, then why shouldn't it display
also the WHOLE history for ALL peg revisions (that is, going back through the
history of each file path it found)? What if I run it with --stop-on-copy?
Does it still stop at the first copy, or does it stop at the first copy for
EACH peg revision? I think you're just making the UI more complicated to
understand.

Anyway, "svn log --follow=path" like issue #928 is my second favorite. It
would also make "--follow=none" a new spelling of --stop-on-copy (as far as I
can tell).

==================

Another command I would like to grow more history-related features is "svn
ls". I usually delete my branches with svn rm, but how can I ask SVN: "show me
all branches that ever existed in this project and at which revisions they
were created/destroyed"? Something like "svn ls --history URL" with an output
like:

foo.c@1-HEAD
bar.c@100-200
bar.c@330-350
dummy.c@120-121
dummy.c@121-HEAD

[notice the replacement of dummy.c at rev 121].

-- 
Giovanni Bajo
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 12 03:35:17 2007

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

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