This page discusses efforts to convert away from our current Subversion repository to Git. MediaWiki core and extensions used on Wikimedia sites have now switched to Git, but moving additional affected projects, and improving our new development infrastructure with tools integrating Gerrit and Git into our workflow, will continue to take engineering time until we completely switch our Subversion repository to read-only in the summer of 2013.
Status[edit | edit source]
With the migration of pywikipediabot from Subversion to Git, we were able to switch svn.wikimedia.org to read-only mode, thus completing this migration. We plan to keep the Subversion service around indefinitely for archival purposes, and can still migrate any dormant project that hasn't already been migrated on request.
Rationale[edit | edit source]
Our current Subversion-based version control system has served us well, but we're in need of a more suitable version control system for our development effort. Our community is very distributed, with many parallel efforts and needs to integrate many different feature efforts. After long consideration, we've decided to move from Subversion to Git.
Some advantages of git:
- "I love git just because it allows me to commit locally (and offline)." - Guillaume Paumier
- "[Y]ou can create commits locally and push them to the server later (great for working without wifi), you can tell it 'save my work so I can go do something else now' in one command, and it'll allow us to review changes before they go into "trunk" (master).... without human intervention in merging things into trunk. Gerrit automates this process." - Roan Kattouw
Affected development projects[edit | edit source]
MediaWiki core (/trunk/phase3/) and MediaWiki extensions that WMF deploys moved to Git in March 2012. Afterwards, any other extensions, tools, or projects that wish to move can do so. These might include operations, fundraising, pywikipediabot, etc.
We will leave some codebases in Subversion and not bother migrating them, because those extensions or tools have been abandoned. Some developers will choose to move their projects to Github or some other git site. We will also leave svn.wikimedia.org up for at least multiple years; for the subdirectories holding projects that have moved to git, the repository will be read-only.
In January 2013, the MediaWiki SVN repository was made read-only. All active projects have moved to Git by now. Pywikipedia is still on their respective repository, their status is detailed below:
Timeline[edit | edit source]
See Git/Conversion/Timeline for a history of how this proceeded.
Split up and convert repositories[edit | edit source]
git-svn conversion of the entire repository (with branches) weighs in at around 7.8GB (November 2011). It makes no sense to make one Git MediaWiki repository, it should be split up.
In Subversion everything gets squashed into one giant repository. In Git repositories are split at the boundaries over which code does not cross.
Splitting[edit | edit source]
- MediaWiki will go in mediawiki/core.git
- Extensions will go in mediawiki/extensions/foo.git
- There will be an extension "meta repository" at mediawiki/extensions.git which will contain all extensions as submodules.
- Other things across SVN need to find new homes in Git
Converting[edit | edit source]
- Every commit needs to be rewritten to give name/email pairs to SVN users. We are using firstname.lastname@example.org for a unified e-mail address scheme for all old commits.
Ongoing items[edit | edit source]
- Update links on MediaWiki.org
Ideal state[edit | edit source]
History[edit | edit source]
People[edit | edit source]
Working on the conversion[edit | edit source]
- Antoine Musso
- Roan Kattouw
Documents[edit | edit source]
- labsconsole:Gerrit bugs that matter - wishlist of issues we're tracking in the upstream bug tracker
- Task management: Task list from Bugzilla (bug 22596)
- Status updates
- Gerrit - main documentation page for Gerrit
- Gerrit/Tagging Document describing how we intend to implement tagging feature
Communications[edit | edit source]
- draft plan
- announcement of test repository
- "git boot camp" from October 2011 NOLA hackathon etherpad:GitBootcamp
- Git, Gerrit, and You! or, Gerrit training available starting Monday 27 February
- Postponing Git migration until March 21
- When/how we'll add, remove people from Gerrit project owner groups
- Git migration: documentation and short-term considerations
- MediaWiki core deployments starting in April, and how that might work