can't find file in this revision, which is deleted in later revision

20 views
Skip to first unread message

davidk...@gmail.com

unread,
Apr 27, 2020, 1:33:13 PM4/27/20
to TortoiseSVN
Hi,

I have created a Testrepo, where I've added two folders in revision 2.In the cmd-prompt the "svn log" of the upper dirctory shows the two folders. For the second folder, it shows nothing, because it's empty.

beforDeleting_r2.png



At next I delete the folder in revision 3, so "svn log" only shows the first folder.

Now I add the file again in revision 4 and there occures the problem, because the "svn log" for revision 2 still shows both folders, but can't find the folder in revision 2, if I enter "svn log" for this folder.

addedAgain_r4.png

 

Log.png



 Thank you in advance!


Best regards

David

Bruce C

unread,
Apr 27, 2020, 2:42:50 PM4/27/20
to TortoiseSVN
Hi,

This is more of a Subversion question than a TortoiseSVN question, so this isn't the natural home for this query.

That said, the issue concerns an understanding of peg and operative revisions, within Subversion. The short answer is that the command you may want is the following:
svn list "file:///C:/Users/0046193/Desktop/TestRepo_delete/trunk/02_Folder_to_delete@r2"

More information can be found in the Subversion Red Book, in the section titled "Peg and Operative Revisions".

Based on the Red Book description, the longer answer is that Subversion treats the folder added in revision 4 as a different item than the folder added at revision 2, even though they share the same name.

The command that you had translates as follows:
"Find the item named trunk/02_Folder_to_delete in the head of the repository and then list that item from revision 2".

However, that folder didn't exist in revision 2 - it was only added in revision 4, so an error is reported. Remember that items aren't the same just because they share the same name.

My suggested command translates as follows:
"Find the item named trunk/02_Folder_to_delete in revision 2 of the repository and then list that item".

That works because that folder did exist in revision 2 (where it was created), so it could be found and listed.

Hope this helps.

David

unread,
Apr 29, 2020, 1:46:25 AM4/29/20
to TortoiseSVN
Hi,

now I got it. Thank you very much for helping me to understand the peg revision a little better!


Best regards,

David  
Reply all
Reply to author
Forward
0 new messages