PEAR Development on Github
Brett Bieber <brett.bieber <at> gmail.com>
2011-08-05 03:20:26 GMT
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:
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:
svn2git http://svn.php.net/repository/pear2/Templates_Savant --revision 284750
git remote add origin git <at> 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.
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php