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

Re: diff cmd syntax question for Old Hundred Eyes

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-01-26 00:14:55 CET

Karl Fogel <kfogel@newton.ch.collab.net> writes:

> As many have noticed, both "diff" and "merge" need to take up to two
> paths, as well as two revisions. Currently, diff takes just one path
> (and merge doesn't exist yet). I'm about to make diff take two paths,
> for which we'll need a new command-line client syntax.
>
> So, my proposal: let's add a new option (call it -R for now) which
> takes a revision and a path as arguments. For example
>
> svn diff -RREV1:PATH1 -RREV2:PATH2
>
> The -R can only appear exactly twice in a given command line. These
> would be meaningless commands:
>
> svn diff -RREV1:PATH1
> svn diff -RREV1:PATH1 -RREV2:PATH2 -RREV3:PATH3
>
> (Note that PATH can be a url or a wc path. In the latter case, we use
> the wc path to deduce the proper url.)
>
> Why do we need a new syntax? Because it's very difficult to overload
> the old one without ambiguity resulting. For example, we cannot
> simply do this:
>
> $ svn diff -rREV1:REV2 PATH1 PATH2
>
> ... because that already means something else: show two diffs, one for
> PATH1 between REV1 and REV2, and the next for PATH2 between REV1 and
> REV2.

What about dates? I don't use dates on the command line very often,
but I do use them occasionally. I can't imagine using a date for a
merge command, but I can imagine wanting to use it for a diff
command. Will

   $ svn diff -RDATE1:path1 -RDATE2:path2

be expected to work?

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:00 2006

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.