PEAR Development on Github

From: Date: Fri, 05 Aug 2011 03:20:26 +0000
Subject: PEAR Development on Github
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-54423@lists.php.net to get a copy of this message
Greetings, I wanted to notify PEAR package developers that you are all welcome to use any of the github org accounts we have. Just send a message to this list or pear-group and we'll set up a repository for you. Right now we have two accounts, http://github.com/pear and http://github.com/pear2 — each are organizations which can have teams of developers with push access to repositories. For those developers that would like to migrate an existing package from svn.php.net, the following is for you: The svn2git tool supports standard svn layouts and preserves tags and branches. I would highly recommend using it if you're interested in moving your packages to git. One caveat, the svn.php.net repository is very large, so to be respectful of the server resources it is best to start from the first committed revision for your package. When I migrated all the pear2 packages, I found a fork of svn2git which supported starting at a specific revision. That fork is here: https://github.com/svenax/svn2git First, the steps on getting svn2git installed: mkdir svn2git cd svn2git svn clone https://github.com/svenax/svn2git.git . gem build svn2git.gemspec sudo gem install svn2git-2.0.0.gem Once you have the svn2git tool installed, you're ready to migrate a package.. svn2git uses an authors file in ~/.svn2git/authors (sample attached), so put that in place. Here's the simple steps I used to migrate PEAR2_Templates_Savant to git, note the starting revision number: mkdir PEAR2_Templates_Savant cd PEAR2_Templates_Savant svn2git http://svn.php.net/repository/pear2/Templates_Savant --revision 284750 git remote add origin git@github.com:pear2/PEAR2_Templates_Savant.git git push -u origin master Just change the directory name, svn.php.net path, revision number, and remote repository url and you should be set. Once you're comfortable with the source on github, you can either delete the source on svn.php.net or request that commit access to your package be removed by emailing pear-group. If you have any trouble feel free to email the pear-dev list or ask on efnet #PEAR. Happy social coding. -- Brett Bieber

« previous php.pear.dev (#54423) next »