You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Lacoste, Dana (TSG Software San Diego)" <da...@hp.com> on 2009/11/18 18:31:47 UTC
Migrating to svn
I don't know if someone can help me, but I'm trying to migrate from another SCM to svn.
I keep running into issues:
The original SCM was, well, extremely large. massive. So we're running a tool to extract data in it to the svn dump format. Fine (the dump format looks fine enough) but I can't seem to get it to LOAD.
Example:
Dump branch A into svn-brancha.dump (content is in branches/branchA)
Dump branch B into svn-branchb.dump (content is in branches/branchB)
svnadmin load branch A : no problem.
svnadmin load branch B : fails immediately, unable to create "branches"
Seriously? svn load won't load a dump file that references files that already exist? Or am I misunderstanding?
I can't make a single dump file that contains branchA _and_ branchB because it's too large: it runs out of memory.
I'm kind of stumped here: I can make dump files (using the scripts on tigris to migrate to svn) but I can't figure out how I can possibly make this work if I can't svnadmin load into a subdirectory of an existing directory.....
Any suggestions?
Thanks,
Dana Lacoste
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419642
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Migrating to svn
Posted by Bob Archer <bo...@amsi.com>.
> I don't know if someone can help me, but I'm trying to migrate from
> another SCM to svn.
>
> I keep running into issues:
>
> The original SCM was, well, extremely large. massive. So we're
> running a tool to extract data in it to the svn dump format. Fine
> (the dump format looks fine enough) but I can't seem to get it to
> LOAD.
>
> Example:
>
> Dump branch A into svn-brancha.dump (content is in
> branches/branchA)
> Dump branch B into svn-branchb.dump (content is in
> branches/branchB)
>
> svnadmin load branch A : no problem.
>
> svnadmin load branch B : fails immediately, unable to create
> "branches"
>
> Seriously? svn load won't load a dump file that references files
> that already exist? Or am I misunderstanding?
It would help if you gave us the full command you were running and the exact error.
I think a load into an empty repository is a bit different than one into a repository with stuff in it. Also, when you specify the repo path to load into iirc you have to create the path first.
You are using the --parent-dir parameter right?
BOb
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419648
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Migrating to svn
Posted by Les Mikesell <le...@gmail.com>.
Lacoste, Dana (TSG Software San Diego) wrote:
> I don't know if someone can help me, but I'm trying to migrate from another SCM to svn.
>
> I keep running into issues:
>
> The original SCM was, well, extremely large. massive. So we're running a tool to extract data in it to the svn dump format. Fine (the dump format looks fine enough) but I can't seem to get it to LOAD.
>
> Example:
>
> Dump branch A into svn-brancha.dump (content is in branches/branchA)
> Dump branch B into svn-branchb.dump (content is in branches/branchB)
>
> svnadmin load branch A : no problem.
>
> svnadmin load branch B : fails immediately, unable to create "branches"
You probably want to make branch B only contain the branchB directory
and load it with the --parent-dir option so it doesn't try to create
"branches" again.
> Seriously? svn load won't load a dump file that references files that already exist? Or am I misunderstanding?
I think your bigger problem will be that it will have to renumber the
revisions from your 2nd run, putting them out of time sequence - and it
probably won't know about things with a common history.
> I can't make a single dump file that contains branchA _and_ branchB because it's too large: it runs out of memory.
>
> I'm kind of stumped here: I can make dump files (using the scripts on tigris to migrate to svn) but I can't figure out how I can possibly make this work if I can't svnadmin load into a subdirectory of an existing directory.....
Add memory? Or write a script that checks out revisions one at a time
and commits to svn.
--
Les Mikesell
lesmikesell@gmail.com
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419659
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Migrating to svn
Posted by "Bolstridge, Andrew" <an...@intergraph.com>.
> -----Original Message-----
> From: Lacoste, Dana (TSG Software San Diego)
> [mailto:dana.lacoste@hp.com]
> Sent: Wednesday, November 18, 2009 6:32 PM
> To: users@subversion.tigris.org
> Subject: Migrating to svn
>
> I don't know if someone can help me, but I'm trying to migrate from
> another SCM to svn.
>
> I keep running into issues:
>
> The original SCM was, well, extremely large. massive. So we're
> running a tool to extract data in it to the svn dump format. Fine
(the
> dump format looks fine enough) but I can't seem to get it to LOAD.
>
What was the original SCM tool? There are a fair few options available
to port revisions to SVN, all of them tend to involve extracting data
from the old SCM and committing it using the standard SVN tools. This
would work for you as the import would not be so large to fail. It might
take a while but as it's a once-only task this wouldn't be much of an
issue.
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2420088
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
RE: Migrating to svn
Posted by Geir Engebakken <ge...@edb.com>.
Yes, a load fails if there is an existing directory in the dump. You will need to edit the second dump file and remove the Node-path creation of the branches directory, then it works.
Geir
-----Original Message-----
From: Lacoste, Dana (TSG Software San Diego) [mailto:dana.lacoste@hp.com]
Sent: 18. november 2009 19:32
To: users@subversion.tigris.org
Subject: Migrating to svn
I don't know if someone can help me, but I'm trying to migrate from another SCM to svn.
I keep running into issues:
The original SCM was, well, extremely large. massive. So we're running a tool to extract data in it to the svn dump format. Fine (the dump format looks fine enough) but I can't seem to get it to LOAD.
Example:
Dump branch A into svn-brancha.dump (content is in branches/branchA)
Dump branch B into svn-branchb.dump (content is in branches/branchB)
svnadmin load branch A : no problem.
svnadmin load branch B : fails immediately, unable to create "branches"
Seriously? svn load won't load a dump file that references files that already exist? Or am I misunderstanding?
I can't make a single dump file that contains branchA _and_ branchB because it's too large: it runs out of memory.
I'm kind of stumped here: I can make dump files (using the scripts on tigris to migrate to svn) but I can't figure out how I can possibly make this work if I can't svnadmin load into a subdirectory of an existing directory.....
Any suggestions?
Thanks,
Dana Lacoste
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419642
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2419994
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].
Re: Migrating to svn
Posted by Andrey Repin <an...@freemail.ru>.
Greetings, Lacoste, Dana (TSG Software San Diego)!
> I don't know if someone can help me, but I'm trying to migrate from another SCM to svn.
> I keep running into issues:
> The original SCM was, well, extremely large. massive. So we're running a tool to extract data in it to the svn dump format. Fine (the dump format looks fine enough) but I can't seem to get it to
> LOAD.
> Example:
> Dump branch A into svn-brancha.dump (content is in branches/branchA)
> Dump branch B into svn-branchb.dump (content is in branches/branchB)
If you want to import it in the same repository and have consistent repository
after that - don't do it.
Dump whole repository, or as much of it as required for migration, at once.
> svnadmin load branch A : no problem.
> svnadmin load branch B : fails immediately, unable to create "branches"
> Seriously? svn load won't load a dump file that references files that
> already exist? Or am I misunderstanding?
> I can't make a single dump file that contains branchA _and_ branchB because
> it's too large: it runs out of memory.
You can have incremental dumps. I.e. dump only a range of revisions. Even
single revision.
> I'm kind of stumped here: I can make dump files (using the scripts on tigris
> to migrate to svn) but I can't figure out how I can possibly make this work
> if I can't svnadmin load into a subdirectory of an existing directory.....
> Any suggestions?
What I said above. You took wrong approach to resolve your issue.
Instead of operating with revisions, what version control systems are for, you
brutally hacking the leaf pile, dividing ancestors from their descendants.
--
WBR,
Andrey Repin (anrdaemon@freemail.ru) 19.11.2009, <15:57>
Sorry for my terrible english...
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2420044
To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].