Migrating to the new SVN server

From Docswiki
Jump to navigation Jump to search

All of these steps assume you put the repository in ~/svn so modify as needed!

  • update your local copy (important! If this doesn't work, it means the old server has been taken off-line)
cd ~/svn
svn update
  • switch the repository location to the new server
svn switch --relocate https://wwmm.ch.cam.ac.uk/svn2/groups/wales https://svn.ch.cam.ac.uk/svn/wales/groups/wales

You will then be asked to accept the security certificate of the new server - so enter p to accept it permanently, and then enter your AD/Admitto password. As this is a new server, you will need to login once from each machine you use. The password you need to use now is your Active Directory (AD - used for the VPN etc) or Admitto password. If you don't have one or have lost/forgotten it - there is more information here.

  • update your SVN variables in .bashrc
vi ~/.bashrc

Find the export SVN line and modify the URL to https://svn.ch.cam.ac.uk/svn/wales/groups/wales. You will also need to change the export MYSVN line to https://svn.ch.cam.ac.uk/svn/USER where USER is your user name used to log into the repository. If you do use your personal SVN account, you will need to run a similar svn switch' command that that above. Once you're done, you need to export those variables:

source ~/.bashrc
  • log into the new repository to make sure it's working
svn ls $SVN/trunk

If the ls works, that should be it :)