[IPython-dev] bzr to git migration
Wed Oct 19 01:53:29 CDT 2011
On Tue, Oct 18, 2011 at 5:42 PM, Fernando Perez <firstname.lastname@example.org> wrote:
> Hi Jorgen,
> On Tue, Oct 18, 2011 at 2:05 PM, Jörgen Stenarson
> <email@example.com> wrote:
>> I'm planning to move pyreadline over to github. Did you ever write up
>> how you did the migration from launchpad to github? I'm wondering how to
>> get all the branches into a single git repo properly.
>> All bzr to git documents I've seen focus on a single bzr branch.
> I never wrote anything up for real, but I do have a copy of the script I used:
> # Convert the ipython repo into a git one.
> set -e
> branches="master 0.8 0.9 0.10 0.10.1"
> rm -rf $gitrepo
> mkdir $gitrepo
> cd $gitrepo
> git init
> for br in $branches
> echo New branch from bzr: upstream-$br
> git bzr add upstream-$br $bzrepo/$br
> git bzr fetch upstream-$br
> git co -b $br bzr/upstream-$br
> git gc
> git remote add mainline firstname.lastname@example.org:ipython/ipython.git
> echo "Started at: $t0"
> echo "Ended at : $(date)"
> #git push origin master
> That might get you going with the code. My issues migration script is here:
> but github has changed its api since, so it will need some tweaking on
> the upload part for the new api.
> I hope this is useful to get started...
> Glad to have you coming over to github! BTW, you're welcome to create
> a separate organization for pyreadline, but if you'd like, I'm happy
> to make a pyreadline repo under the ipython organization and make you
> owner of it. There's little overhead in managing a separate org, but
> for a small project that is so closely tied to ipython, it may make
> sense to have it in the ipython org. Ultimately it's your call, just
> let me know if you want it.
I'd highly recommend putting it under an organization either way,
rather than just under your personal account (you can have a fork
there if you won't always push directly to the main repo). It looks
much more professional to see something like
github.com/someusername/pyreadline. It's also easier to remember :)
More information about the IPython-dev