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

Re: 4 bugs in svn diff (IssueZilla gives me Internal Server Error)

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-04-28 15:25:28 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> Eric, you misunderstand how 'svn diff' works. Sorry if 'svn help
> diff' didn't make things clear, it's hard to communicate the complex
> syntax of this subcommand.
>
> 1. svn diff [-r N[:M]] [PATH1 [PATH2 [PATH3 ...]]]
> 2. svn diff URL1[@N] URL2[@M]
>
> You're looking at usage syntax #1, and thinking that the PATHs are
> diffed against each other; that's not what's going on. Rather, they
> are a *list* of targets to be diffed, each in turn.

I wonder if this is the correct interface. I often use case 1 above,
but nearly always with a single path. When I use diff with two paths
I nearly always want case 2. In fact one of the things I want to do
is not supported: namely to diff my working copy against a "branch".

Perhaps a better interface would be

 svn diff [-r N[:M]] TARGET
 compares different revisions of TARGET

 svn diff [-r N] TARGET1[@N] TARGET2[@M]
 compares TARGET1 against TARGET2

I can always get the current 'svn diff PATH1 ... PATHN' behaviour by
invoking 'svn diff PATH1' ... 'svn diff PATHN'.

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 28 15:26:37 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.