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

Re: Re: Diff with previous version -> "Unable to find repository location for ..." if file is not in previous rev.

From: Daniel Becroft <djcbecroft_at_gmail.com>
Date: Thu, 17 Dec 2009 06:55:43 +1000

On Thu, Dec 17, 2009 at 1:58 AM, Edward F Eaglehouse <efe_at_atmsol.com> wrote:

> The confusion exists because TSVN has two different "diff" entries
> awkwardly located around a displaced separator line in the TSVN context
> menu. It caught me, too.
>
> I found out the hard way that what I wanted was the "diff" entry, that
> compares the working copy of the file with the _most_recently_ committed
> revision (HEAD) in the repository, which is the intuitive "previous
> version".
>

How is HEAD intuitively the previous version? If I checkout r20, and HEAD
then moves to r25, the previous version is not HEAD.

> What the "diff with previous version" entry actually compares is the
> working copy of the file with the _previously_ committed revision (PREV) in
> the repository. That's why it's confusing.
>

Hmm, the entry says "Diff with Previous Version", and somehow its confusing
that, surprisingly, that's what it does? Interesting.

> What adds to the confusion is that sometimes the "diff" entry doesn't
> appear in the context menu at all.
>

The Diff entry will only appear for modified files.

To summarize:
> * "diff" compares the working copy with the HEAD revision in the
> repository;
> * "diff with previous version" compares the working copy with the PREV
> revision in the repository.
>

Wrong.
 - "Diff" compares the [modified] working copy file with the BASE revision
(ie the checked out/last updated revision).
 - "Diff with previous version" compares the working copy file (either
modified or unmodified) with the PREVIOUS revision (the one before BASE).

If you do the "Diff with previous version" on a file with only one committed
revision, then the "Unable to find repository location ..." message will
appear.

Regards,
Daniel B.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2430919

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2009-12-16 21:56:12 CET

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