question

RichardDrysdall-9439 avatar image
0 Votes"
RichardDrysdall-9439 asked RichardDrysdall-9439 answered

Migrated SVN repository not showing any file history in Visual Studio 2019

I have a local subversion repository that I have been using with Windows Visual Studio 2019 in a Windows 10 VM. I am trying to migrate it to MacOS Visual Studio 2019.
I have done nothing special to the repository prior to migrating it, but there are no uncommitted changes, and there are no branches - only the trunk. I zip the entire repository (the root folder contains both the "Repository" folder and the "WorkingCopy" folder) and copy it to the MacOS. I unzip the archive, and in the terminal use the SVN relocate command:

 svn relocate file://<path to the Repository folder>

I open the solution in Visual Studio 2019, right-click on the solution, and choose Version Control->View History, I can see all my previous commits. If I select one of these commits, I can see the list of files included in the commit. But selecting any one of these files immediately displays the message "Error while getting revision text. The file may not be part of the working copy."
I have tried committing changes to the source base in MacOS Visual Studio 2019, and while the commits are successful, I still get the same error when attempting to see the file changes in the just-committed files.
I have checked permissions (I have read and write permissions for users and groups, and read permissions only for others - I don't know if this is what is required).
I have run svnadmin verify Repository and it does not report any problems.
Thanks for any help.

vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

vb2ae avatar image
0 Votes"
vb2ae answered RichardDrysdall-9439 commented
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks, but I don't think that does help - it's about moving a folder within a repository. I'm moving the entire repository to a different location.

0 Votes 0 ·
AnnaXiu-MSFT avatar image
0 Votes"
AnnaXiu-MSFT answered

Hi @rICHARDdRYSDALL-9439,

Welcome to Microsoft Q&A!

For your issue, it is more related SVN, please report it in Developer Community:
https://developercommunity.visualstudio.com/report?space=8&entry=problem

Sincerely,
Anna


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

RichardDrysdall-9439 avatar image
0 Votes"
RichardDrysdall-9439 answered

I found a solution to my problem, although I'm not really sure I understand why what I was originally doing didn't work. If anyone else stumbles upon this and has the same issue, this is what I did:
Based on the instructions in moving-svn-repositories-to-new-server, I made a dump of the repository, moved the dump file from Windows to the MacOS, created a new subversion repository, then loaded the dump into the new repository. I didn't try to re-locate my working copy - in my case there was nothing to gain from trying to do this. I simply checked-out a new working copy on the MacOS as per option (2) at the end of the above mentioned piece - I didn't do a svn relocate. Not only do I have my repo history, but I can see the diff for each file in each commit.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.