git repo setup

2 views
Skip to first unread message

jamesmi...@googlemail.com

unread,
Oct 27, 2009, 6:37:48 AM10/27/09
to mediawiki-vcs
I have setup a git repo for hosting changes to the mediawiki
http://mediawikivcs.indefero.net/p/mediawiki/

First : installing the standard mediawiki for ubuntu
sudo apt-get install mediawiki
Hole:1 http://ftp.riken.jp karmic/main mysql-common 5.1.37-1ubuntu5 [69,5kB]
Hole:2 http://ftp.riken.jp karmic/main libmysqlclient16 5.1.37-1ubuntu5 [1903kB]
Hole:3 http://ftp.riken.jp karmic/main mysql-client 5.1.37-1ubuntu5
[63,7kB]
Hole:4 http://ftp.riken.jp karmic/main mysql-client-5.1
5.1.37-1ubuntu5 [8201kB]
Hole:5 http://ftp.riken.jp karmic/main mysql-server-core-5.1
5.1.37-1ubuntu5 [3838kB]
Hole:6 http://ftp.riken.jp karmic/main mysql-server-5.1
5.1.37-1ubuntu5 [7186kB]
Hole:7 http://ftp.riken.jp karmic/main libxml2-dev 2.7.5.dfsg-1ubuntu1
[745kB]
Hole:8 http://ftp.riken.jp karmic/main libxml2 2.7.5.dfsg-1ubuntu1
[819kB]
Hole:9 http://ftp.riken.jp karmic/main php5-common
5.2.10.dfsg.1-2ubuntu6 [424kB]
Hole:10 http://ftp.riken.jp karmic/main libapache2-mod-php5
5.2.10.dfsg.1-2ubuntu6 [2502kB]
Hole:11 http://ftp.riken.jp karmic/main php5 5.2.10.dfsg.1-2ubuntu6
[1120B]
Hole:12 http://ftp.riken.jp karmic/main php5-cli
5.2.10.dfsg.1-2ubuntu6 [2507kB]
Hole:13 http://ftp.riken.jp karmic/main php5-mysql
5.2.10.dfsg.1-2ubuntu6 [66,2kB]
Hole:14 http://ftp.riken.jp karmic/universe mediawiki 1:1.15.0-1.1
[10,8MB]
Hole:15 http://ftp.riken.jp karmic/main mysql-server 5.1.37-1ubuntu5 [63,9kB]

Second, getting source code of latest mediawiki
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3 wiki

Third Checkout of various git libs for php :
524 git clone git://github.com/patrikf/glip.git
525 git clone http://people.proekspert.ee/peeter/git/git.php?p=git-php.git
526 git clone http://people.proekspert.ee/peeter/git/git-php.git yourpath
527 clone git://github.com/josegonzalez/git-php.git
528 git clone git://repo.or.cz/viewgit.git
529 git clone git://github.com/josegonzalez/git-php.git

my first goal will be to create a way to store all the changes to
articles in git.

that means
1. Creation of branchs for each article
1.1 creation of file names for each article
1.2 every time an edit is made, a commit is done (locally)
1.3. a periodic timer will push the repositories to other locations.

Mike

Bernie Innocenti

unread,
Oct 27, 2009, 11:38:00 AM10/27/09
to mediaw...@googlegroups.com
El Tue, 27-10-2009 a las 11:37 +0100, jamesmi...@googlemail.com
escribió:

> Second, getting source code of latest mediawiki
> svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3 wiki

You could have used

git svn clone http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3 wiki

to get *all* of the Mediawiki history in git. Doing it this way would
ease your work as the Mediawiki codebase moves forward, requiring your
changes to be rebased on top of the latest version.

--
// Bernie Innocenti - http://codewiz.org/
\X/ Sugar Labs - http://sugarlabs.org/

jamesmi...@googlemail.com

unread,
Oct 27, 2009, 11:54:19 AM10/27/09
to mediaw...@googlegroups.com
Thanks bernie, I will look into that! I knew it would be easy, but no that easy!

Right now I am debugging the first extension file to mediawiki, it can
be installed and worked out without the entire mediawiki svn repo.

I am using the version from ubuntu.

let me check the new code in .
http://mediawikivcs.indefero.net/p/mediawiki/source/tree/master/var/lib/mediawiki/extensions/VCS/SendToGIT.php

more to come.
mike

Reply all
Reply to author
Forward
0 new messages