Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6A299D26A for ; Wed, 6 Feb 2013 13:55:03 +0000 (UTC) Received: (qmail 6203 invoked by uid 500); 6 Feb 2013 13:55:02 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 5978 invoked by uid 500); 6 Feb 2013 13:55:02 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 5948 invoked by uid 99); 6 Feb 2013 13:55:01 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 13:55:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lesmikesell@gmail.com designates 209.85.212.41 as permitted sender) Received: from [209.85.212.41] (HELO mail-vb0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Feb 2013 13:54:54 +0000 Received: by mail-vb0-f41.google.com with SMTP id l22so845832vbn.14 for ; Wed, 06 Feb 2013 05:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type:content-transfer-encoding; bh=id3qKwcNeWx+DmyhQRB89zC8RKfsSdH3FV3FB/pE22s=; b=n2hrs2Y1d0YEwfnNAbUe98Oa3c+rQkebLrR7IlIcilekkLm817KV6eUchDuwVkUmHn 1ZgA8U7qQs2ZgjTtQCO5gdb6K+wst2Vgp5znGtxr9Zj0OQF4JNnFoB6z7TKQ2UD9Lwqj SG3QD9sgFZKtatM4TC+FWlmBiX0L7DYSumxGnfBpKMJpuWnWYnAlwzDbRBFnG32fnLaK dr/5zT9PkcGQ2EtEC0Gt5QbyGJ/GyOr6QQbZ5e/RitI/zzlZoYStQsb0LJF9Dn2/2cHb vDGFMrpoNoCpDwn1YArEdAeQH8090l6PyBnOICYKbFl5ma8/2SVxONOWlQ//wKUDK89C kPnw== MIME-Version: 1.0 X-Received: by 10.220.228.74 with SMTP id jd10mr26682659vcb.65.1360158873756; Wed, 06 Feb 2013 05:54:33 -0800 (PST) Received: by 10.58.4.132 with HTTP; Wed, 6 Feb 2013 05:54:33 -0800 (PST) In-Reply-To: <20130206122315.GB31356@ted.stsp.name> References: <20130204211729.GI32109@byrne.stsp.name> <1925822.W2HtcYFXhn@etoile> <20130205160840.GA32341@byrne.stsp.name> <20130205230759.GE32341@byrne.stsp.name> <20130205235813.GG32341@byrne.stsp.name> <5111F650.5020509@wandisco.com> <51124151.7060405@wandisco.com> <20130206122315.GB31356@ted.stsp.name> Date: Wed, 6 Feb 2013 07:54:33 -0600 Message-ID: Subject: Re: 2-params diff (was: Re: FreeBSD project and subversion.) From: Les Mikesell To: =?UTF-8?Q?Branko_=C4=8Cibej?= , users@subversion.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Wed, Feb 6, 2013 at 6:23 AM, Stefan Sperling wrote: > On Wed, Feb 06, 2013 at 12:41:05PM +0100, Branko =C4=8Cibej wrote: >> One other option would be, as was noted elsewhere in this thread, to >> invent a new subcommand for tree comparisons, keeping only the >> historical differences feature in "svn diff". >> >> That would solve the ambiguity, but it would (a) break backward >> compatibility, and (b) invent yet another subcommand, which we don't lik= e. > > I don't think we need to change how 'svn diff' works. A new subcommand > could simply provide nicer syntax than 'svn diff' for some use cases. > We can keep 'svn diff' working as it is. > > I don't think we should ever change how 'svn diff URL1 URL2' and > 'svn diff WC-PATH1 WC-PATH2' work. > > But a new subcommand could behave differently in the 'WC-PATH1 WC-PATH2' > case, and compare WC-PATH1 to WC-PATH2. It would essentially be an > alias for 'diff --old --new'. It may need to overlap a lot with 'svn diff= ', > for options such as --summarize perhaps, and all the little options that > control little aspects of the diff (--ignore-properties, > --show-copies-as-adds, etc). Would it be worth adding? Not sure. > >> Yet another option would be to introduce a new option, so instead of usi= ng >> >> svn diff --old A --new B >> >> you'd get >> >> svn diff --compare A B >> >> to generate a diff between the two targets, and plain >> >> svn diff A B >> >> to get the historical diff of each target. > > I don't think adding a new option to 'svn diff' would help at all. > The point is to unclutter the user interface by providing a more > straightforward way of comparing two paths/URLs with each other. > Another option (especially one that overlaps with functionality provided = by > existing --old and --new options) would make the UI even more complicated > than it already is. >From a naive user's point of view, if you call it 'diff' you should expect it to take two arguments and give you the difference like the well known thing called diff. If it doesn't do that, why call it diff and if it doesn't do that in the case of one of those arguments being a working copy target and the other a URL it should tell you the right syntax for that operation instead of pretending it can't do it. And if working copy references are sometimes magically/silently converted to HEAD when used as the target of --old or --new (and that's desirable for some reason I don't understand...) maybe you need something like @WC to show that when you reference the working copy path you really mean the working copy instance. --=20 Les Mikesell lesmikesell@gmail.com