CVS для администраторов: различия между версиями

Материал из MoodleDocs
Перейти к:навигация, поиск
(Скопирована английская версия страницы, начат перевод)
 
мНет описания правки
Строка 3: Строка 3:
[[:en:Image:Cvstree.png|CVS tree]]
[[:en:Image:Cvstree.png|CVS tree]]


Developers may have selective write access to the Moodle CVS archive using their Sourceforge username and password (see [[CVS for Developers]] for details about how to do this). However, most people only need read-only access, so they can just connect anonymously as described below. There can however currently be a delay of up to 5 hours between the time a developer commits changes to developer CVS and the time it becomes available on anonymous CVS. The CVS date found on the /admin page is updated manually.
Developers may have selective write access to the Moodle CVS archive using their Sourceforge username and password (see [[CVS для разработчиков]] for details about how to do this). However, most people only need read-only access, so they can just connect anonymously as described below. There can however currently be a delay of up to 5 hours between the time a developer commits changes to developer CVS and the time it becomes available on anonymous CVS. The CVS date found on the /admin page is updated manually.


===Для пользователей Unix===
===Для пользователей Unix===

Версия от 09:55, 27 июня 2006

CVS архив включает весь исходный код Moodle. Вы можете использовать CVS-клиента для получения любой версии Moodle как стабильной, так и нестабильной веток, включая самые свежие. CVS является очень удобным инструментов для администрирования сервера Moodle.

CVS tree

Developers may have selective write access to the Moodle CVS archive using their Sourceforge username and password (see CVS для разработчиков for details about how to do this). However, most people only need read-only access, so they can just connect anonymously as described below. There can however currently be a delay of up to 5 hours between the time a developer commits changes to developer CVS and the time it becomes available on anonymous CVS. The CVS date found on the /admin page is updated manually.

Для пользователей Unix

To connect and login for the first time to the CVS server, you can use this command:

cvs -d:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle login

There is no password - when asked for one, just hit Enter.

To checkout (download) the entire Moodle code for the first time, use this command to get the latest STABLE version:

cvs -z3 -d:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle co -r MOODLE_15_STABLE moodle

Or the latest development version:

cvs -z3 -d:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle co moodle

Or the modules in Contrib

cvs -z3 -d:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle co contrib

Later, to update your local copy of Moodle to the current version in CVS you just need to go into your local moodle directory and type:

cvs update -dP

Для пользователей Windows

To get started with a fresh copy of Moodle, follow the following steps:

  1. Get TortoiseCVS from tortoisecvs.org and install it, then reboot.
  2. Find or create a new folder somewhere where you want Moodle to be downloaded to.
  3. Right-mouse-click that folder and choose "CVS Checkout" from the menu. You should see a dialog box. thumb|Tortoise CVS Screen capture
  4. Copy this text into the CVSROOT field: :pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle
  5. Under the "Module" field, type "moodle" to get moodle. (Other options here include"contrib" to get the contrib directory of hacks and addons, or "mysql" to get the optional MySQL Admin module).
    • For the STABLE version, click on the "Revision" tab and then check the radio button labelled "Choose branch or tag". From the drop-down menu select MOODLE_15_STABLE.
    • For the latest UNSTABLE development version, the radio-button "Use HEAD branch" in the Revision tab should be checked.
  6. Press the button: "OK" and everything should be downloaded.

Later, to update your local copy of Moodle to the current version in CVS, just right-mouse-click the folder and choose "CVS Update".

Note that the enclosing moodle folder is self-contained - you can move it anywhere you like or even rename it.

See also