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

Re: [PATCH] svn url command

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2002-09-07 16:13:15 CEST

On Saturday, September 7, 2002, at 09:13 AM, Barry Scott wrote:

> I like the idea of being able to get selected parts of the info.
> But why limit the mechamism to just the url, why not provide access
> to the revision, last change author, etc?
> Which would mean that the svn url command is a poor choice for
> extension to the other info items.
> Why not extend the info command to show only the item requested?
> svn info --query url
> svn info --query revision
> svn info --query last-change-author

well, we can't do that because we've decided not to allow subcommand
specific flags (for good reason, it complicates the user interface, see
the mailing list archives for details). off the top of my head, i
can't think of a good way to design this interface without that...
perhaps something like:

$ svn info -x 'url revision last-change-author' FOO

(perhaps -x is not correct... that's what we use to pass flags to diff
though, and this is /sort of/ similar...)

but then it just feels like we're /really/ trying to fake have
subcommand specific flags...

anyway, i'd prefer not to get into a protracted discussion on this,
since i don't personally have a huge need for this anyway. i know that
some of the windows people had wanted this functionality, so i knocked
a patch together since it was pretty simple. for my own personal use,
i live in an operating system where i have tools to let me get this
from 'svn info', so i'll be happy doing:

$ svn info | grep ^[Url|Revision]



garrett rooney                    Remember, any design flaw you're
rooneg@electricjellyfish.net      sufficiently snide about becomes
http://electricjellyfish.net/     a feature.       -- Dan Sugalski
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Sep 7 16:13:52 2002

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.