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

Re: Is this a bug in "Compare Revisions" (context menu inside Repos Browser)?

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: 2006-02-17 20:03:52 CET

Kevin Hung wrote:
> I posted this message before but did not get a response. So I posted it
> again with a different title and hope I will get a reply this time. This
> is important to me since I rely on "Compare Revisions" a lot and if
> there is any problem with that, I would like to know. So here is my
> problem again.

Did you post that under a different name? I can't find a post from you
concerning comparing revisions.

> I am trying to see if there is any difference between the trunk
> directory and a branch directory inside the repository. So I launch the
> Repository Browser, select the trunk and the branch directory and then
> choose "Compare Revisions" from the context menu. The trunk and the
> branch directories are exactly the same except that the branch directory
> has two new files (one pdf file and one word document).
>
> However, the result from "Compare Revisions" is empty implying that
> there is no difference. But if I choose "Show differences as unified
> diff", then I can see the two files (although I cannot see the content
> since they are binary files) listed as difference.
>
> Am I missing something?

this has come up before, and my answer was the same as now:
I won't fix this anymore. But don't get mad, I'll try to explain.

See, that whole "compare revisions" is done by *parsing* the unified
diff. And I don't know why or when exactly, but Subversion changes the
format of that unified diff between versions sometimes (just slightly,
but enough to make the parser choke). So if I now try to fix this, it
might not survive the next Subversion release.
But: Subversion 1.4.0 will have a separate API which provides exactly
the information TSVN tries to get by parsing the unified diff, and it
can provide that information much, *much* faster than a unified diff. So
I'll use that API as soon as its available. So, when TSVN 1.4.0 gets
out, it will work again properly.

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest Interface to (Sub)Version Control
    /_/   \_\     http://tortoisesvn.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: users-help@tortoisesvn.tigris.org
Received on Fri Feb 17 20:04:27 2006

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

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