Page 1 of 1

Migration of SVN revision history

Posted: Fri Apr 06, 2007 12:40 pm
by Geraint
Is there a way to migrate a repository from the old to new forge? The JEvents project has a lot of development history we don't really want to loose  :-\.

I;m not a SVN expert but I have been experimenting with svnsync to create a mirror on my own development machine - if this worked then I'd look at doing the same for the new forge.

I can initialise the synchronisation ok but I can't get the synchronization to work.    I authenticate on both servers ok but then get an error

svnsync: REPORT request failed on 'http://scm.joomla.org/svn/repos/jevents'
svnsync: The requested report is unknown.


Should this approach be possible/is there an alternative way to migrate the repository?

Thanks

Geraint

Re: Migration of SVN revision history

Posted: Fri Apr 06, 2007 3:28 pm
by Websmurf
Yeah, i'm wondering the same thing.
I tried to do a relocate, but that didn't work either.

Getting an error about the uuid's not matching

Re: Migration of SVN revision history

Posted: Fri Apr 06, 2007 4:22 pm
by friesengeist
Geraint wrote:Is there a way to migrate a repository from the old to new forge? The JEvents project has a lot of development history we don't really want to loose  :-\.

I;m not a SVN expert but I have been experimenting with svnsync to create a mirror on my own development machine - if this worked then I'd look at doing the same for the new forge.

I can initialise the synchronisation ok but I can't get the synchronization to work.    I authenticate on both servers ok but then get an error

svnsync: REPORT request failed on 'http://scm.joomla.org/svn/repos/jevents'
svnsync: The requested report is unknown.



SvnSync is not working because it needs a method (REPORT) which was added in SVN 1.4, but the old forge is running 1.2.3 IIRC.

The migration of the Joomla! SVN repository was done with SVM. I think it's not possible for you to upload your existing repository to the new forge though, even if you are able to retrieve it to a local repository. The reason is that it should not be possible for anyone to modify revision-properties (without specifically enabling some pre-revprop-change-hooks), which hold information about the person who committed a revision, when it was done etc. So if you mirror you old repo, you would loose all the commit times and commiter's names.

I'm not 100% sure about this, but I think that if you answered the mail every project admin received when the new forge was annouced, your old SVN will be transfered to your new project sometime. I'm interested in this as well, maybe someone from the JoomlaCode team can enlighten us?

Websmurf wrote:Yeah, i'm wondering the same thing.
I tried to do a relocate, but that didn't work either.

Getting an error about the uuid's not matching


I think you are trying to accomplish something different - switching your SVN checkout from the old forge to the new one? If so, here's the reason it does not work.

Re: Migration of SVN revision history

Posted: Fri Apr 06, 2007 5:03 pm
by Tonie
Matt has been busy with preparing the migration. During the weekend, I will know how far he has come so far.

Re: Migration of SVN revision history

Posted: Sun Apr 08, 2007 3:38 am
by ianmac
friesengeist wrote:

I think you are trying to accomplish something different - switching your SVN checkout from the old forge to the new one? If so, here's the reason it does not work.


Actually, for straight copies, it might be possible to import in to the new SVN in such a way that the switch statement will work.  I don't know for sure if this will be possible though...  In some circumstances it is possible to force a UUID on a repository, making this possible.

This was not possible on the Joomla! SVN because the structure of the repository was changed.  There are now three main directories - development, documentation, and q&t.  What used to be the root of the old repository now resides in the development directory.

We'll have to wait and see how Mat does it and then find out how it goes.

Ian

Re: Migration of SVN revision history

Posted: Thu Apr 19, 2007 5:55 pm
by Geraint
Any updates on if it will be possible to do a SVN migration or at least a "svnadmin dump"?

Geraint

Re: Migration of SVN revision history

Posted: Fri Apr 20, 2007 1:47 pm
by Jonah
bad news:

lamad wrote:A question about migration and svn, will the whole repository be migrated or are you only going to migrate the latest revision?  The main point of this question is if I will have access to past revisions after svn has been migrated.


Tonie wrote:Most likely it's the last revision only. The version of SVN (<1.4) used on the Forge server doesn't allow exporting the complete SVN history.


What are our options people?  Beg VA for a tarball of the entire repository?  Script something that will co and cm each individual revision so as to rebuild history?

Of course this is assuming that the forge svn comes back up.  As I'm sure some of you have noticed, while the forge website is up again the svn is still down.

Re: Migration of SVN revision history

Posted: Fri Apr 20, 2007 1:51 pm
by Tonie
I'll ask Matt as well, and I didn't do SVN was down on Forge. Will look into that.

Re: Migration of SVN revision history

Posted: Fri Apr 20, 2007 2:51 pm
by ianmac
Tonie wrote:Most likely it's the last revision only. The version of SVN (<1.4) used on the Forge server doesn't allow exporting the complete SVN history.


Hmmm...  there is a mistake somewhere...  According to the svnbook for 1.2, look at:
http://svnbook.red-bean.com/en/1.2/svn.reposadmin.maint.html#svn.reposadmin.maint.tk.svnadmin

they still had svnadmin dump which allows you to dump the whole repository.

Also, you will notice that the Joomla! repository on the new forge has all the history from the old forge.  And no, nobody entered 6000 or so by hand :)

The question is how well it can be scripted to move 833 projects over (though there will be some that won't need this).

From what I understand, we did manage to get a dump of the entire old forge, so we have at least something to work from.  I trust  and am confident that when Matt gets his script working and tested we will be able to move the SVN history over.

Ian

Re: Migration of SVN revision history

Posted: Fri Apr 20, 2007 2:54 pm
by Websmurf
I do hope the latest dump will be used.
I have committed stuff to the old repository since I got the mail about the move, would hate to loose those commits..

Re: Migration of SVN revision history

Posted: Mon Apr 23, 2007 1:06 pm
by motin
I answered the e-mail one month ago but have not received any feedback.

Hope they will move the repositories soon!

I have done a lot of subversion migrations myself, having moved two repositories between 3 servers now and updating 6 working copies thereafter. Give me some credentials and I will help out moving repos.

Couldn't find the contact details of the Forge team however - have you had any better luck?

Re: Migration of SVN revision history

Posted: Thu May 10, 2007 8:41 pm
by Websmurf
Any update on the migration?

Re: Migration of SVN revision history

Posted: Thu May 10, 2007 11:45 pm
by Tonie
Now that we have the backup of SVN, Sam can work ro incorporate it into current Joomlacode. More information when we set the migration steps that have to be taken for SVN. Hopefully he will have it done next week.

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 7:14 am
by Geraint
Hi Tonie

Any update on this?  I know that the big meeting in SF has taken a lot of your time since the last update so appreciate that the opportunity to do anything about this has been limited.

The reason I ask is that development on JEvents (and other projects I suspect) has completely stopped for a couple of months now while we wait for the migration to occur.  With Joomla1.5beta2 out this is not very helpful timing  :(

Should we just give up on the past and start again with a new snapshot?

Geraint

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 9:04 am
by Tonie
I'll ask Sam to the Jevents project first, since you don't already have an SVN repository, this should be quite simple.

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 9:27 am
by Websmurf
is there a timeframe known for the other projects too?

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 9:33 am
by Tonie
Ca depends. Most likely the following will be done (of technically possible). Have to talk to Sam about that:

* All projects devs that indicated that it doesn't have to be migrated, are not going to be migrated.
* All projects that have no SVN on Joomlacode now will have their SVN migrated straight to their project.
* If a project already has a working SVN, I hope that we can modify the current SVN and add a directory in the current repository so we don't accidentally merge all kind of things.

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 12:43 pm
by Tonie
Geraint, can you try and take a look at SVN in the Jevents project? You are hereby promoted to the guinea pig, the first project (besides Joomla) that had its SVN migrated. There is a difference now, there's only one repository instead of multiple (GForge vs Forge functionality).

Can you reply here if all is ok?

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 1:02 pm
by Geraint
Having one repository is great - we rearranged the tree at one point and got stuck with the orphans from the past.  Having one repository will make all this a LOT easier to manage.

1. Looks great in the web browser via the project pages
2. checkout works fine
3. commit worked fine

Haven't tried a switch yet - but I can't see it being a problem.

Thanks a lot - great work

Geraint

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 1:27 pm
by Geraint
There was a tiny problem when relocating an existing checked working copy but I could do a fresh checkout and copy and overwrite the checked out files from my working copy.

Thanks again

Geraint

p.s. Note important but the revision numbers were bumped up by about 5-6, would this make any sense?

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 1:33 pm
by Tonie
I'll ask Sam about the revision numbers. I noticed the same with the relocating of SVN code with Joomla! SVN initially, I will add it to my notes so I can mention it in the email to devs again.

Cool, looks like we can go on and finish this migration. It's pretty safe to say we're getting tired of it ;).

Re: Migration of SVN revision history

Posted: Fri May 18, 2007 6:57 pm
by Jonah
Geraint wrote:The reason I ask is that development on JEvents (and other projects I suspect) has completely stopped for a couple of months now while we wait for the migration to occur.  With Joomla1.5beta2 out this is not very helpful timing  :(


Ack that.  RSGallery2 also stopped for over a month.  Eventually we just took a snapshot and imported it.  However, we need history to merge changes from trunk to a branch.  So our J1.5 branch continues to languish.  As soon as we have history we can work on the J1.5 version again.

Re: Migration of SVN revision history

Posted: Mon May 21, 2007 8:03 am
by fmadec
Any updates on svn migration?

I understand that you have a lot of work but a timeframe will be great.

thanks

Fab

Re: Migration of SVN revision history

Posted: Tue May 22, 2007 3:33 pm
by ianmac
Tonie wrote:I'll ask Sam about the revision numbers. I noticed the same with the relocating of SVN code with Joomla! SVN initially, I will add it to my notes so I can mention it in the email to devs again.

Cool, looks like we can go on and finish this migration. It's pretty safe to say we're getting tired of it ;).


How far off were the Joomla! SVN revision numbers?  AFAIK, they should have been off by 1 because the repo was restructured.  The root is not development, documentation and qt, whereas before everything under development was in the root.

Just in case this had been forgotten...

Ian