Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I lost my SVN repository

Tags:

svn

My SVN repository was installed on a server and this server got down, I have three working copies and all of them made some changes and not commit them to the base What to do in this case, please help me

like image 796
Saeed Avatar asked Jul 08 '10 08:07

Saeed


People also ask

Where is my SVN repository located?

http:// or https:// This is svn over http or https. You need to find the virtual host in your apache configuration and look for a <Location> section that matches your url path and look for a SVNPath or SVNParentPath config line. This will tell you the location of your subversion repository.

How do I find my SVN repository in Linux?

For example, using SVN commands can help you display a list of SVN repositories. Simply use the svn list repository command, and you'll get a list of all repositories and their contents. Of course, this is just one of many useful SVN commands you should know.

How do I find SVN in Windows?

Once installed you might need to add the folder containing svn.exe to the system PATH as described here so that it is available in your console. To check if it was already added by the installer open a new console and type echo %PATH% . Use set on its own to see all environmental variables.


Video Answer


1 Answers

Does this mean you have lost the repository?

In that case (if you have no backups at all) I guess the simplest thing to do would be:

  1. Create a new repository somewhere.
  2. Choose one of your working copies (start with the oldest one, i.e. the one with less changes).
  3. Make a check-out of your new repository into an empty folder on that machine.
  4. Export your working copy (do not copy it) to the empty folder you got in step 3. Since you are probably going to delete you old working copies later, it would be wise to Export unversioned files also (if you are using Tortoise SVN, there is a checkbox at the top of the Export dialog).
  5. Commit you changes.

Repeat steps 2. to 5. for all working copies you have. During step 5., you will need to merge things manually. Take care to add any unversioned files, if needed.

You will have lost all the previous revision history, but no working data should be lost this way, provided that you have all the working copies.

like image 157
Groo Avatar answered Oct 10 '22 08:10

Groo