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:
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
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
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
[notice the replacement of dummy.c at rev 121].
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Fri Jan 12 03:35:17 2007