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

Re: why the inconsistency between some svn commands?

From: Marc Haisenko <haisenko_at_webport.de>
Date: 2005-08-13 22:59:47 CEST

On Friday 05 August 2005 22:19, Peter Samuelson wrote:
> Here's the inconsistency that has always bothered me:
> svn log -r5:8 describes what changed in revisions 5, 6, 7, 8
> svn diff -r5:8 describes what changed in revisions 6, 7, 8
>
> Presumably this was so 'svn log -rN' by itself wouldn't be a no-op.
> And I suppose it's not possible to fix it *now*, even if we gain the
> -cN flag, as is being discussed elsewhere.

This is a nice example of the so-called fencepost problem. Imagine a fence. In
the first command you count the fenceposts. In the second command you count
the spaces between the fenceposts:

1 2 3 4
|---|---|---|
  1 2 3

Hope that clears the issue up :-)
C'ya,
        Marc

-- 
Marc Haisenko
Systemspezialist
Webport IT-Services GmbH
mailto: haisenko@webport.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 8 10:30:57 2005

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.