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

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

From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
Date: Mon, 20 Oct 2008 12:48:38 +0100

> When I choose:
> "Diff with previous version"
>
> On a file that was not checked in in previous revision, I get this
> error:
> "Unable to find repository location for ..."
>
Coincidentally I am getting the same error on a file today. The last
change to the file is that it was moved, there we no text changes
committed (to that file) in the same rev. What I think should happen
therefore is that the diff should simply reveal that there are no
differences.

So I tried with the command line:
svn diff file.c -r PREV
same error.

So I did a script to reproduce the problem... can't reproduce it! So it
might be to do with the server, or maybe the protocol (http). I'll have
to do some more digging...

> So, say a file is checked in in REV 10
> Then a couple more REVs are created as other files are checked in
> Next the same (changed) file is checked in again, now at REV 15
> More files are checked in ...
>
> When I then choose "Diff with previous version" on that file it will
> fail, because the file does not exist in REV 14 ?
> I would expect the system to go back to REV 10 instead of failing on
> REV 14 ?
No, the file does exist at rev 14 according to your description. It's
just that at rev 14 it's the same as it was at rev 10. The "previous
revision", "boils down to committed -1" (from the subversion book
beggining of chapter 3).
http://svnbook.red-bean.com/

Diffing r15 against r14 is correct behaviour here and it should work,
unless there is something else missing from your description.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-10-20 13:49:02 CEST

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.