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

Re: [PATCH] Extend 'svn diff URL URL' to 'svn diff URL URL [WC]'

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 03 Dec 2009 13:20:39 +0000

Julian Foad <julian.foad_at_wandisco.com> writes:

>> > > $ svn diff ^/repo/branches/foo ^/repo/branches/bar --repos=[URL|WC]
>> >
>> > But that's much harder to type.
>
> Yup. :-) But not if you configure it somewhere so you don't have to type
> it.

So your solution is I should define an alias that allows me to type
'svndiff ^/foo ^/bar wc' to run 'svn diff ^/foo ^/bar --repos=wc'.
I'd prefer to fix the client.

>> Also the new syntax is consistent
>> > with most of the other commands that use '.' as a default, if one
>> > doesn't want to use '.' one specifies the path explicitly:
>
> No, hardly any commands take a WC argument which they only use to
> identify the repository. They nearly all focus their behaviour onto the
> particular path you specify.

Off the top of my head:

$ svn log -rNNN
$ svn list ^/branches
$ svn diff -cNNN

all will fail if wc is not a working copy and all will succeed if I
add a wc path.

Comparing two branches in a repository is not an obscure operation.
We should make it easy to invoke.

-- 
Philip
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2426697
Please start new threads on the <dev_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <dev-subscribe_at_subversion.apache.org>.
Received on 2009-12-03 14:21:06 CET

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.