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

Re: FreeBSD project and subversion.

From: Stefan Sperling <stsp_at_elego.de>
Date: Mon, 4 Feb 2013 22:17:29 +0100

On Mon, Feb 04, 2013 at 11:54:21AM -0800, Alexey Neyman wrote:
> On Thursday, January 31, 2013 09:08:20 am Stefan Sperling wrote:
> > BTW, I went over one of FreeBSD's svn wiki pages a while back, and added
> > answers to open questions on this page:
> > https://wiki.freebsd.org/SubversionMissing
>
> Speaking of which:
>
> Is there a reason why it is necessary to use "the svn diff --old ^/somebranch
> --new ." instead of the intuitive "svn ^/somebranch ."?

Would "svn diff ^/somebranch ." be synopsis 1?

  svn diff -rN:M ^/somebranch_at_HEAD .@HEAD
(i.e. svn diff -rN:M ^/somebranch_at_HEAD; svn diff -rN:M .@HEAD;
show the differences between rN to rM for ^/somebranch_at_HEAD and then show
the differences between rN and rM for ._at_HEAD -- where N defaults to
BASE if the target is a working copy path, and M defaults to HEAD)
Note that you can also specify 3 or more targets:

  svn diff -rN:M ^/somebranch_at_HEAD .@HEAD ^/someotherbranch_at_42 ...

Or would it be synopsis 2:

 svn diff --old ^/somebranch_at_HEAD --new .@HEAD
(i.e. show the difference between the two (path, revision) pairs
somebranch_at_HEAD and .@HEAD) ?

> It has bugged me for a while until I discovered this --old/--new trick.

I agree that --old --new syntax isn't intuitive at all.
But I believe it exists to resolve the above ambiguity.

The only remedy that comes to my mind is to introduce a new subcommand:
  svn compare TARGET1 TARGET2
which would equal
  svn diff --old TARGET1 TARGET2
I'm not sure if the community would like to see yet another new
subcommand though :)
Received on 2013-02-04 22:18:24 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.