Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SVN update after relocate fails with "no such revision" message

We used to have a shared SVN repository for several projects and yesterday, our SVN admin created a new SVN repository specific to our project.

I relocated my existing checkout of the project to the new SVN repository but now, when I make a SVN update, I get an error message like "No such revision 223297".

Indeed, the new repository has only the number of revisions specific to our project (around 33000 commits) while the old one had 223400.

I would like to know if it's possible to switch all my existing checked out folders to the new repository? Otherwise, I will have to do some clean checkouts.

like image 864
Merwan Avatar asked Oct 19 '12 07:10

Merwan


People also ask

How do I get the new changes in svn?

svn update brings changes from the repository into your working copy. If no revision is given, it brings your working copy up to date with the HEAD revision. Otherwise, it synchronizes the working copy to the revision given by the --revision ( -r ) option.

Does svn update overwrite local changes?

Subversion is pretty smart about updating and never just overwrites files that have local changes with copies from the repository. The most important thing to take away from this section is: If you collaborate with others on one repository, remember to update your working copy regularly.

What is Update to revision in Tortoise SVN?

If you want more control over the update process, you should use TortoiseSVN → Update to Revision... instead. This allows you to update your working copy to a specific revision, not only to the most recent one.

Which command is used to update to the latest version in svn?

Examples. Use the svn upgrade command to upgrade the working copy to the most recent metadata format supported by your version of Subversion.


2 Answers

Obviously your admin failed to include padding revisions which usually is highly recommended when using svndumpfilter to split repositories.

Otherwise it is absolute impossible to update your working copy with your repository, as SVN orients itself on revision numbers and your repository is (technical speaking) a different repository(usually the UUID of the repository should not match as well.. another quirk which should be fixed by your admin). Also if you use external tools like bugtracker which are saving the revision numbers to link contents to your sourcecode, these references are lost as well.

The best solution would be to redo the repository creation without svndumpfilter switch --drop-empty-revs however, then your work in your new repository is lost..

like image 160
Peter Parker Avatar answered Oct 18 '22 04:10

Peter Parker


  1. Back up the working directory

  2. Delete the .svn directory under the top working directory

  3. Check out the entire working directory.

Worked for me...

like image 7
Doron Saar Avatar answered Oct 18 '22 02:10

Doron Saar