Note: You are currently viewing documentation for Moodle 2.2. Up-to-date documentation for the latest stable version is available here: CVS for Administrators.

CVS for Administrators: Difference between revisions

From MoodleDocs
mNo edit summary
No edit summary
Line 3: Line 3:
[[Image:Cvstree.png|CVS tree]]
[[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 1 hour between the time a developer commits changes to developer CVS and the time it becomes available on anonymous CVS.  
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 using '''anonymous CVS''' as described below. There can however currently be a delay of up to 1 hour between the time a developer commits changes to developer CVS and the time it becomes available on anonymous CVS.  


==CVS Servers==


Until 25th April 2007, we only had one server available for anonymous CVS (moodle.cvs.sourceforge.net).  Unfortunately this server is now disabled.
Since then we have a growing list of CVS mirror servers around the world.  Please choose the closest server to you from this list:
{| border="1" cellpadding="2" cellspacing="0"
|'''Country'''
|'''Server'''
|'''Provided by'''
|-
|UK
|uk.cvs.moodle.org
|[http://www.cleo.net.uk Cumbria and Lancashire Education Online] in collaboration with Lancaster University Network Services
|}
Replace the SERVER.cvs.moodle.org in the instructions below with the server you chose above!
==Instructions==


===From a Unix computer===
===From a Unix computer===
Line 11: Line 31:
To connect and login for the first time to the CVS server, you can use this command:
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
  cvs -d:pserver:anonymous@SERVER.cvs.moodle.org:/cvsroot/moodle login


There is no password - when asked for one, just hit Enter.
There is no password - when asked for one, just hit Enter.
Line 17: Line 37:
To checkout (download) the entire Moodle code for the first time, use this command to get the latest STABLE version:
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_18_STABLE moodle
  cvs -z3 -d:pserver:anonymous@SERVER.cvs.moodle.org:/cvsroot/moodle co -r MOODLE_18_STABLE moodle


Or the latest development version:
Or the latest development version:


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


Or the modules in Contrib
Or the modules in Contrib


  cvs -z3 -d:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle co contrib
  cvs -z3 -d:pserver:anonymous@SERVER.cvs.moodle.org:/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:
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:
Line 42: Line 62:
# Find or create a new folder somewhere where you want Moodle to be downloaded to.
# Find or create a new folder somewhere where you want Moodle to be downloaded to.
# Right-mouse-click that folder and choose "CVS Checkout" from the menu. You should see a dialog box. [[Image:CVS moodle settings for tortoise CVS.jpg|thumb|Tortoise CVS Screen capture]]
# Right-mouse-click that folder and choose "CVS Checkout" from the menu. You should see a dialog box. [[Image:CVS moodle settings for tortoise CVS.jpg|thumb|Tortoise CVS Screen capture]]
# Copy this text into the CVSROOT field: <code>:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle</code>
# Copy this text into the CVSROOT field: <code>:pserver:anonymous@SERVER.cvs.moodle.org:/cvsroot/moodle</code>
# 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).
# 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 latest 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_18_STABLE.
#* For the latest 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_18_STABLE.

Revision as of 14:44, 27 April 2007

The CVS archive contains all the source code for Moodle. You can use a CVS program to extract versions ranging from the most stable release to the most cutting-edge development version. CVS can be an extremely convenient way of maintaining a Moodle server.

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 using anonymous CVS as described below. There can however currently be a delay of up to 1 hour between the time a developer commits changes to developer CVS and the time it becomes available on anonymous CVS.

CVS Servers

Until 25th April 2007, we only had one server available for anonymous CVS (moodle.cvs.sourceforge.net). Unfortunately this server is now disabled.

Since then we have a growing list of CVS mirror servers around the world. Please choose the closest server to you from this list:

Country Server Provided by
UK uk.cvs.moodle.org Cumbria and Lancashire Education Online in collaboration with Lancaster University Network Services


Replace the SERVER.cvs.moodle.org in the instructions below with the server you chose above!


Instructions

From a Unix computer

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

cvs -d:pserver:anonymous@SERVER.cvs.moodle.org:/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@SERVER.cvs.moodle.org:/cvsroot/moodle co -r MOODLE_18_STABLE moodle

Or the latest development version:

cvs -z3 -d:pserver:anonymous@SERVER.cvs.moodle.org:/cvsroot/moodle co moodle

Or the modules in Contrib

cvs -z3 -d:pserver:anonymous@SERVER.cvs.moodle.org:/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

To update your local copy of Moodle to a new version (e.g. from 1.7+ to 1.8), go into your local Moodle directory and type:

cvs update -dP -r MOODLE_18_STABLE

From a Windows computer

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.
    Tortoise CVS Screen capture
  4. Copy this text into the CVSROOT field: :pserver:anonymous@SERVER.cvs.moodle.org:/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 latest 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_18_STABLE.
    • If you don't see the very latest version in the long drop-down list under Branch or tag name, click the Update List button next to it and wait for the list to be updated.
    • 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.

From a Mac OS X computer

You will find some information about CVS and Mac OS X in the documentation for the complete installation package Moodle4Mac. Please read How To Update Your Moodle4Mac.

See also