up vote 1 down vote favorite
share [g+] share [fb]

I'm in the process of migrating one Subversion repository with multiple projects in it into one repository per project.

Because of copies between the projects, I had to use svndumpfilter2 to untangle them.

I ran svndumpfilter2 with --drop-empty-revs, then loaded the filtered dumpfile into a repository.

It appears that when I loaded the dumpfile into the repository, the revision numbers were renumbered. This appears to be causing a problem when I try to svn switch --relocate working copies:

$ svn switch --relocate from to
$ svn update
svn: No such revision 51000

Is it possible to get svndumpfilter2/svnadmin load to not renumber the revision numbers? Or is there a way to "switch" the revision? I tried @### on my URLs and that didn't work.

On the current subversion server:

for project in $(svn ls [repository URL]) do svnadmin dump /path/to/repos |
   svndumpfilter2 --drop-empty-revs /path/to/repos projects/$project > 
   $project.dump done

I copied over *.dump to the new server and for each project, I ran:

svnadmin create /new/path/[project] 
svnadmin load /new/path/[project] < [project].repos

Then on a working copy pointed at @HEAD on the old server:

svn switch --relocate [old repository url] [new repository url] 
svn update svn: Revision [latest revision number from old repository] not found
link|improve this question
It looks like svnadmin load is renumbering the revisions. – Toxygene Oct 12 '09 at 18:46
Is it possible for you to post the exact commands in the order you ran them? That may help someone here to exactly figure out where things may have gone awry. – Critical Skill Oct 13 '09 at 3:03
Also, you perhaps already went through the recommendations here w.r.t to migrationof copied paths -- but just in case you havent looked at this, here is the link: svnbook.red-bean.com/en/1.5/… – Critical Skill Oct 13 '09 at 3:04
On the current Subversion server: for project in $(svn ls [repository URL]) do svnadmin dump /path/to/repos | svndumpfilter2 --drop-empty-revs /path/to/repos projects/$project > $project.dump done I copied over *.dump to the new server and for each project, I ran: svnadmin create /new/path/[project] svnadmin load /new/path/[project] < [project].repos Then on a working copy pointed at @HEAD on the old server: svn switch --relocate [old repository url] [new repository url] svn update svn: Revision [latest revision number from old repository] not found – Toxygene Oct 13 '09 at 18:40
post on stackoverflow, not here? – Jason S Oct 24 '09 at 0:00
show 1 more comment
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown