Difference between revisions of "Mediawiki subversion (SVN) to git migration"

From Biowikifarm Metawiki
Jump to: navigation, search
 
(59 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''This is a planning document'''
+
'''The history of this page contains the details of the migration from mediawiki 1.18 svn to 1.20 git. The permanently relevant information has now been migrated to '''[[Mediawiki installation]]''' and '''[[Mediawiki maintenance]]'''.
 +
 
 +
----
  
 
How-to is here: https://www.mediawiki.org/wiki/Download_from_Git . Checking extensions: Which extensions previously obtained from WMF-Subversion (i.e. excluding those we have in local SVN) are Not in the following list of git-migrated mediawiki extensions? https://gerrit.wikimedia.org/r/#/admin/projects/
 
How-to is here: https://www.mediawiki.org/wiki/Download_from_Git . Checking extensions: Which extensions previously obtained from WMF-Subversion (i.e. excluding those we have in local SVN) are Not in the following list of git-migrated mediawiki extensions? https://gerrit.wikimedia.org/r/#/admin/projects/
  
===Comparing 1.20 git-extensions with 1.18 and above, Sept. 2012===
+
Useful resources for understanding git checkout, head, detached head, --track:
''' Local SVN are now in same folder as git checkout = OK'''
+
* http://www.kernel.org/pub/software/scm/git/docs/git-checkout.html
 
+
* http://developer.imagej.net/using-git
'''Manually copied = OK,''' i.e. now available in the 1.20git extension folder:
+
# SMWAskAPI - only installed on offene-naturfuehrer
+
 
+
'''Missing but no longer used = OK'''
+
* AddMediaWizard (no longer found by find/grep)
+
* ArrayExtension replaced by extension: Arrays (all seem to be updated)
+
* SyntaxHighlight (no longer used, all occurrences refer to SyntaxHighlight_GeSHi)
+
 
+
'''Missing, now disabled in common/local settings = OK'''
+
* Disabling MassEditRegex - Installed on all wikis, but not used because the currently installed version (r4) is not compatible with MediaWiki 1.18. We have tested this extension on 1.19 where it works. For some wikis this extension would be very useful.
+
* Disabling MathStatFunctions - probably never used.
+
* Disabling DynamicPageList - only installed 4 wiki, was deprecated a long time; all pages checked and function removed.
+
 
+
 
+
''' THE FOLLOWING MISSING STILL NEED FURTHER WORK!'''
+
* Lockdown - installed on all wikis.
+
* MultipleUpload (also called MultiUpload) - only installed on OpenMedia, KeytoNature and OroWiki
+
* MediaFunctions - installed on all wikis, and probably used for height/width of images!
+
 
+
* jQueryMsg - installed on all wikis, probably obsolete in v.1.20!!
+
 
+
 
+
==New mediawiki git notes - LATER MOVE TO MW Maintenance!==
+
  
Main source: [http://www.mediawiki.org/wiki/Download_from_Git mediawiki.org: Download from Git]. See also [https://gerrit.wikimedia.org/r/#/admin/projects/ overview of wikimedia projects in Git].
+
==Finding tags and branches==
  
'''IMPORTANT CHANGE in comparison to earlier subversion setup: we directly clone all extensions into the /extension folder, instead of cloning elsewhere and then symlinking.'''
+
HINT: to see available branches/tags:
 +
<syntaxhighlight lang="bash">
 +
git branch -r | sort --version-sort
 +
git tag -l | sort --version-sort
 +
</syntaxhighlight>
  
# checkout = cloned with:
+
OR: Example "Thanks" extension:
cd /usr/share; mkdir mediawiki20; cd mediawiki20
+
* https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Thanks.git;a=heads
# the normal clone would be named "core" but we purposely rename to phase3; many of our symlinks use "phase3" back from 1.10 to 1.18
+
* https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/extensions/Thanks.git;a=tags
git clone https://gerrit.wikimedia.org/r/p/mediawiki/core.git phase3
+
cd /usr/share/mediawiki20/phase3
+
rm extensions -r
+
git clone https://gerrit.wikimedia.org/r/p/mediawiki/extensions.git
+
cd extensions; git submodule update --init
+
# Also insert the local-svn-managed extensions into the same folder:
+
cd /usr/share/mediawiki20/phase3/
+
sudo mkdir ext-LOCAL-svn; cd ext-LOCAL-svn;
+
sudo svn checkout file:///var/lib/svn/LocalSVNextensions /usr/share/mediawiki20/phase3/ext-LOCAL-svn
+
sudo chown -R  www-data.www-data /usr/share/mediawiki20/phase3/ext-LOCAL-svn
+
sudo mv /usr/share/mediawiki20/phase3/ext-LOCAL-svn/* /usr/share/mediawiki20/phase3/extensions
+
sudo mv /usr/share/mediawiki20/phase3/ext-LOCAL-svn/.svn /usr/share/mediawiki20/phase3/extensions
+
sudo rm /usr/share/mediawiki20/phase3/ext-LOCAL-svn -r
+
  
'''To update do:'''
+
----
cd /usr/share/mediawiki20/; cd phase3; sudo git pull; cd extensions; sudo git pull; sudo git submodule update --init
+
cd /usr/share/mediawiki20/phase3/extensions; /usr/bin/svn update
+
  
'''NEXT STEP IS:'''
+
<!-- internal memo: the command shell 1-line update loop was:
  cd /var/www/testwiki_v20; sudo -u www-data php ./maintenance/update.php  --quick --conf ./LocalSettings.php
+
  cd /usr/share/mediawiki20; sudo git pull; cd extensions; (for f in *; do cd "$f" && sudo git pull origin/master && cd ..; done); /usr/bin/svn update;
This will show the remaining unsolved extensions, see [[Mediawiki subversion (SVN) to git migration]]
+
-->

Latest revision as of 06:05, 15 April 2013

The history of this page contains the details of the migration from mediawiki 1.18 svn to 1.20 git. The permanently relevant information has now been migrated to Mediawiki installation and Mediawiki maintenance.


How-to is here: https://www.mediawiki.org/wiki/Download_from_Git . Checking extensions: Which extensions previously obtained from WMF-Subversion (i.e. excluding those we have in local SVN) are Not in the following list of git-migrated mediawiki extensions? https://gerrit.wikimedia.org/r/#/admin/projects/

Useful resources for understanding git checkout, head, detached head, --track:

Finding tags and branches

HINT: to see available branches/tags:

 git branch -r | sort --version-sort
 git tag -l | sort --version-sort

OR: Example "Thanks" extension: