Subversion Migration Issue

1 view
Skip to first unread message

Sirisha Meda (WT01 - BANKING & FINANCIAL SERVICES)

unread,
Jan 22, 2010, 3:17:16 AM1/22/10
to us...@subversion.apache.org
 Hi

I sucessfully migrated one clearcase directory to SVN repo with the help of
load_svn_dirs.pl script.

To the same SVN repo, when I tried to migrate second directory then
load_svn_dirs.pl script deleted first directory elements in trunk and migrated
second directory elements.
In HEAD, I can see only second directory elements but in old revisions I can
see first directory elements.

I used svn copy command to copy the first directory elements to latest
revision. Instead of this workaround, is there any possible way to migrate
clearcase directories one after the other to the same SVN repo.

Commands I used to migrate first and second directory
/usr/bin/svn/svn_load_dirs.pl https://svnrepo/ trunk -
t 'tags/REL1.0' /view/my_view/vobs/vbtag/dir1

/usr/bin/svn/svn_load_dirs.pl https://svnrepo/ trunk -
t 'tags/REL1.0' /view/my_view/vobs/vbtag/dir2

Regards
Sirisha

Please do not print this email unless it is absolutely necessary.

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments.

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.

www.wipro.com

Ryan Schmidt

unread,
Jan 22, 2010, 3:24:31 AM1/22/10
to Sirisha Meda, us...@subversion.apache.org

On Jan 22, 2010, at 02:17, Sirisha Meda (WT01 - BANKING & FINANCIAL SERVICES) wrote:

> I sucessfully migrated one clearcase directory to SVN repo with the help of
> load_svn_dirs.pl script.
>
> To the same SVN repo, when I tried to migrate second directory then
> load_svn_dirs.pl script deleted first directory elements in trunk and migrated
> second directory elements.
> In HEAD, I can see only second directory elements but in old revisions I can
> see first directory elements.
>
> I used svn copy command to copy the first directory elements to latest
> revision. Instead of this workaround, is there any possible way to migrate
> clearcase directories one after the other to the same SVN repo.
>
> Commands I used to migrate first and second directory
> /usr/bin/svn/svn_load_dirs.pl https://svnrepo/ trunk -
> t 'tags/REL1.0' /view/my_view/vobs/vbtag/dir1
>
> /usr/bin/svn/svn_load_dirs.pl https://svnrepo/ trunk -
> t 'tags/REL1.0' /view/my_view/vobs/vbtag/dir2

The purpose of svn_load_dirs.pl is to load multiple successive versions of a single project into a repository. For example, if you've kept a makeshift version control system by hand, by duplicating your source directory before every major change, and now want to import that history properly into a repository.

If instead you just want to import a number of different projects into a new repository, without history, you just use "svn import" and don't need svn_load_dirs.pl.

Ulrich Eckhardt

unread,
Jan 22, 2010, 3:26:35 AM1/22/10
to us...@subversion.apache.org
On Friday 22 January 2010, Sirisha Meda wrote:
> I sucessfully migrated one clearcase directory to SVN repo with the help of
> load_svn_dirs.pl script.

This isn't actually migrating, as all history is lost. If you want to migrate
and can live without the history, you can simply use import, too.
svn_load_dirs is rather for repeatedly importing something into the same
location in order to track some independent, external source.

> To the same SVN repo, when I tried to migrate second directory then
> load_svn_dirs.pl script deleted first directory elements in trunk and
> migrated second directory elements.
> In HEAD, I can see only second directory elements but in old revisions I
> can see first directory elements.

You gave svn_load_dirs the wrong target location, in this case 'trunk'.

Uli

--
ML: http://subversion.tigris.org/mailing-list-guidelines.html
FAQ: http://subversion.tigris.org/faq.html
Docs: http://svnbook.red-bean.com/

**************************************************************************************
Sator Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at <http://www.satorlaser.de/>
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte Änderungen enthalten. Sator Laser GmbH ist für diese Folgen nicht verantwortlich.
**************************************************************************************

Reply all
Reply to author
Forward
0 new messages