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

Re: Tags and diff

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: 2006-09-28 15:36:46 CEST

On 9/27/06, James Mansion <james@wgold.demon.co.uk> wrote:
> >If you want to diff two tags, you should be doing it server
> >side, via two url arguments.
>
> Is there any particular reason why? In this case, particularly,
> the repository is a local file:// one. This seems a painful
> usage for such a common operation. Why doesn't the svn program
> (OK, the client library) convert the paths I've given to
> URLs and submit them to the server?

If you hand svn diff two local paths it assumes you want to find any
local changes to those paths. It's as if you did

$ svn diff *.c

And had two .c files in the directory. You're not asking for the
difference between a.c and b.c, you're asking "what local changes did
I make to these files". Or at least that's usually what you want. If
you want the difference between two arbitrary things you either need
to use URLs or the --old= --new= opeartion (i.e. the second usage
described in 'svn help diff').

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 28 15:37:33 2006

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