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

Re: svn diff interface

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-05-07 04:57:58 CEST

On Mon, 2002-05-06 at 22:48, Garrett Rooney wrote:
> > 2. Phillip Martin's suggestion, where "svn diff" takes either one or
> > two arguments (instead of N arguments or two arguments).

> personally, (2) seems the most intuitive to me, but i haven't done a
> ton of work with cvs. what makes this syntax inconsistent with cvs?

In CVS, I can make a bunch of mods in a directory, do "cvs diff path1
path2", and see the mods I made to path1 and path2 in particular. I do
this all the time. I could "echo path1 path2 | xargs -n1 svn diff", of
course; it's just harder.

It's not just inconsistent but potentially surprising. Under Phillip's
suggestion, "svn diff path1 path2" would diff path2 against path1,
producing a successful result which is totally different from what a CVS
user would expect.

> and even if it is, would this be nice enough to break that
> compatability? personally, i'd lean towards yes, since being able to
> say 'svn diff http://svn.collab.net/branches/my_cool_branch' and
> having it diff my_cool_branch with my working copy would be really
> nice...

"svn diff http:whatever .", you mean. Under option 2, "svn diff" with
one argument would continue to behave as it does now.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 7 05:03:22 2002

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