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

Re: --change and multiple changes (Issue #1213)

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: 2005-11-03 03:21:08 CET

Karl Chen wrote:
>>>>>>On 2005-11-02 15:35 PST, Julian Foad writes:
>
> Julian> Karl Chen wrote:
> >>>>>>> On 2005-11-01 07:20 PST, Julian Foad writes:
> Julian> Can you show how you would achieve your goal of easily
> Julian> iterating through the changes to a file with your
> Julian> suggested syntax or another syntax?
> >> How about svn diff --change -2:-3 foo.txt
>
> Julian> Don't just make up a command and ask me "How about
> Julian> it?" What would you want that to mean, exactly?
>
> I'm sorry I wasn't clear. You asked what the syntax would be for
> getting the difference between 2 changes ago and 3 changes ago. I
> suggest svn diff --change -2:-3 foo.txt.

That wasn't exactly what I asked, but with this additional clue I can see how
your suggestion would enable iteration through a series of changes given a bit
of shell scripting to increment or decrement the numbers: -c-1:-2, -c-2:-3,
-c-3:-4, ...

But I didn't just want an answer with no explanation, I wanted a syntax with
its semantics and an evaluation of the pros and cons. You see how a syntax is
nothing without its semantics? Saying that the "-2" and "-3" in your example
refer to "2 changes ago" and "3 changes ago" goes some way to defining the
semantics of your suggestion. In all your previous examples, the negative
number had been interpreted as relative to the other revision specifier, but in
this suggestion they are both relative to the same origin (some sort of "now",
not precisely defined) so this is distinctly different. So, do you think that
suggestion is logical and easy to remember and accommodates a good range of use
cases, given its similarity and differences to/from the other forms of "-c X:Y"
and "-r X:Y" that we support and that you suggest? For example, don't you
think that if the "-3" in "BASE:-3" means "3 changes before BASE" then the "-3"
in "-2:-3" should mean "3 changes before the revision identified by -2"?
(Answers should be longer than "yes" or "no" :-)

- Julian

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Nov 3 03:21:45 2005

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.