Bug 188306 - Compare on renamed files fails
Summary: Compare on renamed files fails
Status: RESOLVED FIXED
Alias: None
Product: Subversive
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Alexander Gurov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-22 09:22 EDT by Marko Schulz CLA
Modified: 2007-10-09 12:05 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Schulz CLA 2007-05-22 09:22:51 EDT
Subversive: 1.1.2
Eclipse Version: 3.2.2, Build ID: M20070212-1330

Steps To Reproduce:
1. Rename a file (e.g. do a Rename Class refactoring on class A to rename it to B) and commit the change to the subversion repository
2. Show the resource history of the changed file
3. Select the two latest entries (e.g. Revisions 10 and 12) in the history and select "Compare with Each Other" from the context menu

-> Operaction failed
"Get File Content [Revision] operation failed
 ...
 Get content for 'svn://subversion-repo/project/trunk/B.java' failed."

The advanced message is: "svn: File not found: revision 10, path '/trunk/B.java'

The error dialog pops up four times. In the SVN console the following message also appears four times:
"*** Get File Content [Revision]
svn: File not found: revision 10, path '/trunk/B.java'
*** Error (took 00:00.016)"

If this is important: I am using the "SVN Kit" client.
Comment 1 Alexander Gurov CLA 2007-08-21 11:37:48 EDT
The fix will be available starting from Subversive version 1.1.7.
At the same time unsupported JavaSVN 1.0.4 can fails with same reason. So, it is recommended to use SVN Kit client instead of JavaSVN.
Comment 2 Marko Schulz CLA 2007-08-27 09:29:50 EDT
Subversive version 1.1.7 only fixed this partially for me: The correct compare editor now shows up, but still there also appears a single error dialog with the message 

"Filesystem has no item
 svn: File not found: revision 48, path '/trunk/A.java'

The simple (shouldn't that be the advanced one?) message is: 
"Subversive: '0x0000000c: Locate URL in History' operation finished with error: Filesystem has no item"

I used Team->Cleanup on all my Subversion projects, because I guessed it might be a cache issue, but that didn't fix anything.

So for me this bug is down to a minor one but it still is open.
Comment 3 Alexander Gurov CLA 2007-08-27 09:50:34 EDT
It looks like native client error. In case of native client the error could happen because peg revision for 'log' command is not supported by the client API. This issue should be solved in the 1.5.0 version of native client. So, could you please switch to SVN Kit client and try compare again (client could be switched at: Window->Preferences->Team->SVN->SVN Client)? I think with SVN Kit the problem will disappear.
Comment 4 Marko Schulz CLA 2007-08-28 10:58:53 EDT
Yes, you are right, with the SVN Kit the error message disappears.

So I am setting this bug back to FIXED. Thanks again for the support.
Comment 5 Adrien Rivard CLA 2007-10-09 12:05:18 EDT
This still happen for, using Subversion 1.1.7 with svnKit 1.1.4.

I've got 4 time the error popup displaying these :

simple message : 
Get content for 'https://svn.repository.com/dirs1/dirs2/file.java' failed.
advanced message : 
svn: '/dirs1/!svn/bc/94882/dirs2/file.java' path not found: 404 Not Found (https://svn.repository.com)

I'm quite sceptical about the "/!svn/bc/94882/" part.(94882 is the revision number of the oldest version)