Transferir de SVN

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Download from SVN and the translation is 61% complete.

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Lëtzebuergesch • ‎català • ‎español • ‎français • ‎italiano • ‎magyar • ‎occitan • ‎polski • ‎português • ‎português do Brasil • ‎čeština • ‎български • ‎русский • ‎العربية • ‎中文 • ‎日本語 • ‎粵語

Subversion (SVN) is a version control software that allows users to download the very latest version of a branch, without having to wait for someone to get around to packaging it. Advantages to using Subversion include the latest version, vastly simplified updating, the ability to roll back an upgrade, the ability to create and submit patches.

Consulte Subversion para mais detalhes; em baixo estão algumas instruções rápidas para algumas tarefas comuns.

Utilizar "Subversion" para transferir o MediaWiki

Pré-requisitos

You must have a Subversion client installed before you can use it. (Although you can theoretically download files without Subversion, this would mean tediously downloading each individual file manually.) The recommended software is the official Subversion client, available from the Subversion project page. Note that this client uses a command-line interface, which the instructions below use. Alternatively, you can get subversioning software with a graphical user interface such as TortoiseSVN.

Transferir

$IP stands for the Installation Path (or "directory") of your MediaWiki installation, the same directory that holds LocalSettings.php, index.php etc..

Pode transferir de qualquer ramificação e módulo (antes do MediaWiki 1.18.2) no MediaWiki SVN.

  • Modules: The two modules important to web applications are phase3 (the main application) and extensions (extension code).
  • Branches: Named release branches use the naming scheme REL$1_$2[_$3], where $1 is the MediaWiki version, $2 is a major version and $3 is a minor revision. For example, version 1.6.3 is branch REL1_6_3, the latest 1.6 is REL1_6, 1.5.8 is REL1_5_8, and the latest (untagged) would be HEAD.

To download from the latest 1.31 release (recommended), use Git, not Subversion. To get MediaWiki 1.18.1 (not recommended) enter the following command from the command-line in the directory you wish to download to:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/branches/REL1_31/phase3

Alternately, you can download the last development version left behind in subversion using the following command:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3

To get the latest skins directory (as of MediaWiki 1.18.1) including the Vector skin, use this line:

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/skins

To check out an extension like Extension:TitleKey to your folder "$IP/extensions/TitleKey":

cd $IP/extensions
svn checkout http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/TitleKey TitleKey

Utilizar TortoiseSVN

TortoiseSVN is a convenient SVN client for Windows that integrates with Windows Explorer.

  • Go to Windows Explorer (hit WIN+E or right-click on the Start button and click Explore), and create a new folder in a location of your choice. You may want to name it something like "Mediawiki Repository."
  • Right click on that folder and TortoiseSVN -> Create repository here.
  • Right click on that folder again and click SVN Checkout; DO NOT CLICK "IMPORT".
  • For the "URL of repository," put http://svn.wikimedia.org/svnroot/mediawiki/trunk/phase3/
  • The checkout directory should automatically populate to the mediawiki subfolder of your repository folder.
  • Click OK.

Instalação

Normal installation rules apply. However, for best results, use PHP 5.3.3 as an Apache module.

Atualização e reverter para versão anterior

A atualização entre os lançamentos com SVN é simples. Se tiver acesso direto à linha de comandos no servidor, pode inserir diretamente os comandos abaixo; alternativamente, pode manter uma cópia numa máquina local e enviar as versões atualizadas para o servidor.

Para atualizar o MediaWiki, basta utilizar o comando abaixo na raiz da diretoria de instalação. Note que isto será atualizado para a versão mais recente da versão principal atual. Se estiver a utilizar o MediaWiki 1.6, isto irá atualizar para qualquer versão 1.6.x, mas não para 1.7:

svn update

Para atualizar para outra ramificação de versão (versão 1.7, no exemplo abaixo) ou para alternar entre as etiquetas de versão selecionadas individualmente, pode utilizar o comando "switch" (substituindo as versões apropriadas):

svn checkout http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_6_2/phase3
svn switch http://svn.wikimedia.org/svnroot/mediawiki/tags/REL1_7_3/phase3

Não se esqueça de executar "maintenance/update.php" de vez em quando, especialmente se notar algo de estranho.