The long dormant MediaWiki GitHub mirror is now running again. It's now lagging 10 minutes behind the MediaWiki repository at most:
http://github.com/mediawiki/mediawiki-svn
The mirror contains all MediaWiki branches and tags. It's currently 360MB, with a full checkout being another 320MB.
Once I figure out how to reconstruct the SVN metadata from a checkout (http://github.com/mediawiki/mediawiki-svn/issues#issue/1) you'll be able to follow these instructions:
http://www.mediawiki.org/wiki/Subversion#Using_the_GitHub_mirror
And do:
1. Check out MediaWiki from Git 2. Hack a bunch 3. Push back to Subversion
I'm also planning on having other repositories for selected subsets of the MediaWiki SVN. Similar to what I've already set up for the OpenStreetMap SVN repository:
http://github.com/openstreetmap
That is, you'll be able to clone just trunk/phase3 or trunk/extensions via Git without getting all the other stuff you don't care about.
Here are the scripts that sync the mirror, for the curious:
http://github.com/avar/mediawiki-mirror http://github.com/avar/git-anyonecanedit-etc
On Sat, May 8, 2010 at 14:22, Ævar Arnfjörð Bjarmason avarab@gmail.com wrote:
I'm also planning on having other repositories for selected subsets of the MediaWiki SVN. Similar to what I've already set up for the OpenStreetMap SVN repository:
trunk/phase3 is now up:
http://github.com/mediawiki/mediawiki-trunk-phase3
trunk/extensions will follow soon:
Is it possible to mirror branches in SVN there as well?
I personally prefer to put different extensions in different repos since I cannot clone a subdirectory in a repo only.
On 5/9/10, Ævar Arnfjörð Bjarmason avarab@gmail.com wrote:
On Sat, May 8, 2010 at 14:22, Ævar Arnfjörð Bjarmason avarab@gmail.com wrote:
I'm also planning on having other repositories for selected subsets of the MediaWiki SVN. Similar to what I've already set up for the OpenStreetMap SVN repository:
trunk/phase3 is now up:
http://github.com/mediawiki/mediawiki-trunk-phase3
trunk/extensions will follow soon:
http://github.com/mediawiki/mediawiki-trunk-extensions
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Sun, May 9, 2010 at 07:37, Liangent liangent@gmail.com wrote:
Is it possible to mirror branches in SVN there as well?
It's unclear due to top-posting what "there" means. You can do it with the mediawiki-svn repository, but the mediawiki-trunk-* repositories just clones of trunk, so no.
If you want branches too just bite the bullet and use the giant mediawiki-svn repository.
I could in theory produce a mirror of just */phase3 with branches. But I'd need a list of branches that are derived from phase3, and not just some extension. It also doesn't help that some people just copy some subdir around instead of making the branch/* tree mirror some subset of trunk/*, e.g.:
* http://svn.wikimedia.org/svnroot/mediawiki/branches/hashar/ * http://svn.wikimedia.org/svnroot/mediawiki/branches/CentralNotice-delayed-lo... * ...
I personally prefer to put different extensions in different repos since I cannot clone a subdirectory in a repo only.
Me too. But we have more than 400 extensions. For that to be practical I'd have to write a program to automatically spawn new repositories through the GitHub API & maintain them. I don't have that yet.
I'd also have to either use 'git filter-branch' after every update to filter out extensions/*, or git svn fetch for each one, or devise some system to fetch changes and apply them to each repository as needed. The first too are expensive, the second is messy and non-trivial to get right.
Anyway. I just uploaded some mirrors now that were easy to do (and mediawiki-trunk-extensions is there now). If you want something more I'd be happy to do that if it's easy, and I'd be even happier to accept patches against the mirroring scripts.
wikitech-l@lists.wikimedia.org