Hi,

I have moved a lot of packages from the subversion collective to the github collective:

https://svn.plone.org/svn/collective/Products.membrane
https://svn.plone.org/svn/collective/buildout/collective.recipe.i18noverrides
https://svn.plone.org/svn/collective/collective.collectionsnapshot
https://svn.plone.org/svn/collective/collective.depositbox
https://svn.plone.org/svn/collective/collective.editskinswitcher
https://svn.plone.org/svn/collective/collective.emaillogin
https://svn.plone.org/svn/collective/collective.noindexing
https://svn.plone.org/svn/collective/collective.portlet.relateditems
https://svn.plone.org/svn/collective/collective.realestatebroker
https://svn.plone.org/svn/collective/collective.sortmyfolder
https://svn.plone.org/svn/collective/dexterity.membrane
https://svn.plone.org/svn/collective/feedfeeder
https://svn.plone.org/svn/collective/poi.receivemail
https://svn.plone.org/svn/collective/smtp2zope

And some packages to https://github.com/zestsoftware :

https://svn.plone.org/svn/collective/zest.commentcleanup
https://svn.plone.org/svn/collective/zest.emailhider
https://svn.plone.org/svn/collective/zest.social
https://svn.plone.org/svn/collective/Products.eXtremeManagement
https://svn.plone.org/svn/collective/xm.booking
https://svn.plone.org/svn/collective/xm.charting
https://svn.plone.org/svn/collective/xm.theme
https://svn.plone.org/svn/collective/xm.tracker
https://svn.plone.org/svn/collective/kss.plugin.yuidnd
https://svn.plone.org/svn/collective/kss.plugin.timer

The old subversion trunks have been renamed to OLD-trunk.

I have used http://collective.github.com/ to do the migration. I have created a few helper scripts, which I will post here. Maybe someone finds it useful.

To cleanup the old subversion locations I used this script, which takes an old subversion location and its new github location as input:

$ cat svncollectivecleanup.sh
#! /bin/sh
SVN=$1
GH=$2
MOVED=MOVED-TO-GITHUB.txt
echo $GH > $MOVED
echo "Committing $MOVED: $GH"
svn import MOVED-TO-GITHUB.txt $SVN/MOVED-TO-GITHUB.txt -m "Moved to github."
echo "Listing $SVN ..."
svn ls $SVN
echo "Showing contents of $MOVED ..."
svn cat $SVN/MOVED-TO-GITHUB.txt
echo "About to rename trunk to OLD-trunk. Press CTRL-C to quit."
read
svn mv $SVN/trunk $SVN/OLD-trunk -m "Renamed trunk to OLD-trunk."
echo "Listing $SVN ..."
svn ls $SVN

And to do some fixups in the new github location, I used this script:

$ cat githubcleanup.sh
#! /bin/sh
if test ! -f .gitignore; then
    cp ~/az/snippets/gitignore .gitignore
    git add .gitignore && git ci -m "Added .gitignore."
fi
if test ! -f MANIFEST.in; then
    cp ~/az/snippets/MANIFEST.in .
    emacs -nw MANIFEST.in
    git add MANIFEST.in && git ci -m "Added MANIFEST.in."
fi
if test -f README.txt -a ! -e README.rst; then
ln -s README.txt README.rst && git add README.rst && git ci -m "Added README.rst as link to README.txt."
fi
ack CHANGES.txt && refactor.sh CHANGES.txt CHANGES.rst && mv CHANGES.txt CHANGES.rst && git rm CHANGES.txt && git add CHANGES.rst && git ci -am "Renamed CHANGES.txt to CHANGES.rst"

That script uses two snippets:

$ cat ~/az/snippets/gitignore
*.egg-info
*.pyc
*.pyo
.installed.cfg
.mr.developer.cfg
bin
build
develop-eggs
dist
download
eggs
fake-eggs
parts
var

$ cat ~/az/snippets/MANIFEST.in
recursive-include your *
recursive-include docs *
include *
global-exclude *.pyc

The script also starts an emacs session, because you will want to tweak the MANIFEST.in file.

Cheers,

--
Maurits van Rees: http://maurits.vanrees.org/
Zest Software: http://zestsoftware.nl

_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to