Here's the process for each project:

Fork/clone the project, e.g. git://github.com/mausch/Castle.ActiveRecord.git
Fork/clone the trunk: git://github.com/mausch/castle.git
>From the trunk repo:
Add a remote to the project's repo and fetch it. They don't have any
common commits, that's ok.
Let P be the SHA1 of the last commit in trunk before the project got
moved to its own repo.
Let R be the SHA1 of the first commit in the project's repo.
Create .git/info/grafts with these SHA1s R P (e.g.
"cd0f4f795cc8800661d5221b0b59f18129b2bacc
750b420d6db1b6096a821aa9acdfbfcfac18e7c4")
Check with gitk that both repos are now stitched together.
Let A,B,C,... be the heads (local branches and tags) of the project's
repo.
Run git filter-branch -- P..A P..B P..C ...
Check with gitk that everything's ok.
Remove the original heads: rm -Rf .git/refs/original
Add the buildscripts submodule: git submodule add
git://github.com/mausch/Castle.Buildscripts.git buildscripts (this
should be easily relocatable later)
Commit and push with tags to the project's (not the trunk's) github

Sample result: http://github.com/mausch/Castle.Components.Binder

Hope it's clear!


On Jan 27, 2:52 am, Mauricio Scheffer <[email protected]>
wrote:
> All git repos are updated. Ex svn trunk with all common history is 
> athttp://github.com/mausch/castle.
>
> I'll describe the process to stitch the history tomorrow, using grafts
> and filter-branch.
>
> On Jan 26, 7:55 pm, Mauricio Scheffer <[email protected]>
> wrote:
>
>
>
> > We could split this rebase process among several people, each one
> > would handle one or more projects.
>
> > I'll update my github repos with the latest svn commits, then upload
> > the base history somewhere.
>
> > On Jan 26, 7:31 pm, Henry Conceição <[email protected]> wrote:
>
> > > @ayende: the dump:http://www.castleproject.org/files/castle.rar
>
> > > @mauricio: what can I do to help you?
>
> > > Cheers,
> > > Henry Conceição
>
> > > On Tue, Jan 26, 2010 at 8:12 PM, Mauricio Scheffer
>
> > > <[email protected]> wrote:
> > > > Yup, I'm on it. Unfortunately I've been quite busy lately and haven't
> > > > touched it for some time, sorry.
>
> > > > I already have git-svn repositories for all projects. What I need to
> > > > do now is rebase the history after the split to the history before the
> > > > split, for every project. Then upload them to github.
>
> > > > On Jan 26, 6:53 pm, Henry Conceição <[email protected]> wrote:
> > > >> Hi guys,
>
> > > >> Now that our main projects are released, I think that is a good time
> > > >> to bring this subject back to the table. Is there someone working on
> > > >> this?
>
> > > >> Cheers,
> > > >> Henry Conceição
>
> > > > --
> > > > You received this message because you are subscribed to the Google 
> > > > Groups "Castle Project Development List" group.
> > > > To post to this group, send email to 
> > > > [email protected].
> > > > To unsubscribe from this group, send email to 
> > > > [email protected].
> > > > For more options, visit this group 
> > > > athttp://groups.google.com/group/castle-project-devel?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Development List" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/castle-project-devel?hl=en.

Reply via email to