Here's a start and others can add (this is how I do it, but there might be a better way). I'm assuming you have installed Tortoise CVS according to the instructions found on the Moodle CVS page.
1. Create a folder called moodle.
2. Right click on the folder and choose CVS Checkout and you should see a screen like the image below. Make sure yours looks the same. Click on the revision tab and make sure "Use Head branch" is chosen. As far as I know, this is the branch that 1.5+ is in and is the latest stable code. If this has changed, somebody let me know!
3. Then, to download Moodle just click okay.
4. A new window opens and the download begins. You might see this at the top of the window: cvs checkout: Empty password used - try 'cvs login' with a real password. Just ignore that and be patient, the download should begin shortly.
5. If you want to get something out of contrib, find out what folder it is in first by snooping around the sourceforge page. Then, create another new folder like above, then change the module (it says moodle now) in the bottom of the screen to whatever you want to get including the contrib folder. For example: contrib/the name of the module or block folder.
Whatever you download will include a CVS folder, and the folders should be shaded green. If you want to change the branch, you can right click on a green folder, then mouseover CVS, then choose update special from the list. Then you can change the branch. And there are other options their too.
The files that download are labeled in the CVS download window.
C means the file has changed both in CVS and on your computer and their were conflicts between the two.
M means the file has only changed on your computer.
P means the file has changed only in CVS and your copy was updated to match.
U means the file is new and has been added to your folder.
? means the file only exists on your computer and not in CVS.
Hope this helps
Thank You very much Chardelle. It was a big help!!
>Click on the revision tab and make sure "Use Head branch" is >chosen. As far as I know, this is the branch that 1.5+ is in and is >the latest stable code. If this has changed, somebody let me >know!
as "Use Head branch" it downloads moodle 1.6 development..
I dont want to use 1.6 development..
So I choose "Choose branch and tag" and then "update list"..
Now Which one to use : MOODLE_15_STABLE or MOODLE_153 ?
thank for your article, it helps me alot.
So I recommend you choose MOODLE_15_STABLE.
CVSroot: :pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle
Protocol: Password server
Server: moodle.cvs.sourceforge.net
Repository folder: /cvsroot/moodle
User name: anonymous
Module: contrib/questionnaire
AFAIK, this is the most recent version--I am not sure if this version is compatible with 1.6--I'm not sure Mike has even committed a 1.6 version yet.
I'm trying to use CVS from the debian command line and whilst I've managed to get the main moodle code, I can't seem to get to the contrib modules. Could someone show me a sample command so I can modify it please?
cheers,
Matt
Hi CHardelle,
Trying to connect to the CVS gives the following message.
"
connect to cvs.sourceforge.net:2401 failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
"
Any suggestions??
Garry
Maybe that's because Sourceforge has changed the location of the Moodle repository... you need to use ...
anonymous@moodle.cvs.sourceforge.net
instead of
anonymous@cvs.sourceforge.net
Hi Jan,
Still stuck.
In F:\BACK UP OF DOWNLOADS\MOODLE CVS\moodle: "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "checkout" "-P" "moodle"
CVSROOT=:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle
connect to cvs.sourceforge.net:2401 failed: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Success, CVS operation completed
ANY SUGGESTIONS where I am going wrong
Garry
error message:
In C:\: "C:\Program Files\TortoiseCVS\cvs.exe" "-q" "-z3" "checkout" "-P" "TortoiseCVS"
CVSROOT=:pserver:anonymous@tortoisecvs.cvs.sourceforge.net:/cvsroot/tortoisecvs
cvs [checkout aborted]: the :pserver: access method is not available on this system
Error, CVS operation failed
Any ideas?
~m
I've installed the Tortoise application, and copied :pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle
into the appropriate area, etc. And I get this error -
"CVSROOT=:pserver:anonymous@cvs.sourceforge.net:/cvsroot/moodle
cvs [checkout aborted]: the :pserver: access method is not available on this system
Error, CVS operation failed"
Unless I've missed a step somewhere, I think I've followed it to the letter, but I can't access the system.
~m
Gordon
cheers
Gordon
I'm new using cvs to write into contrib my module..
I use TortoiseCVS too but ho can i use it under a proxy??
OK i give up!!
Anyone can help... i really don't have an idea of how to connect my tortoisecvs to moodle.cvs.sourceforge.net
in other words I'm lost.
:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle
Did you ever get this to work? I seem to have the same issue, initially it was our firewall blocking it completely but I think they have made a hole in it for me I am at least getting a message now instead of a breaking glass sound!
If you did get it working what did you do?
Thanks
Heather
Here is an update to my original instructions above.
Changes are:
Server: is now --- moodle.cvs.sourceforge.net
Module: to get the entire moodle package still use moodle
to get a module -- it is now -- contrib/plugins/mod/thenameofthemod
Under the Revisions tab--unless you are a developer--do not use Head as your branch, be sure to click on the choose branch option and choose the latest STABLE version (click on the update list button first).
I'm new with CVS update, and my doubt is: Does the CVS resource update de database? If yes, how? Does it update the database like the full package update when I go to http://example.com/moodle/admin for the first time after updating the files?
Thanks in advance.
Regards.
Antonio.
It works the same as a manual update, just a lot easier
The update of the database is dependent on code in the individual components (modules, blocks etc.). Therefore, as long as the code is in the component and an update is required, when you go to admin it will take care of itself.
Regards
Harry
http://docs.moodle.org/en/CVS_for_Administrators#From_a_Windows_computer
Can anyone tell me what the settings really should be for TortoiseCVS, in order to download Moodle 1.8 (latest stable)?
Thanks,
Dan
Just make sure you replace SERVER.cvs.moodle.org with any of the following:
- eu.cvs.moodle.org
- es.cvs.moodle.org
- uk.cvs.moodle.org
- us.cvs.moodle.org
I have just followed the instructions (using es.cvs.moodle.org in my case), and have checked out MOODLE_18_STABLE without problems.
Saludos. Iñaki.
Now that I know what I missed, I'm not sure how I missed it in the instructions before...
Thanks,
Dan
I am currently running my Moodle site (1.8.4+) on Linux (Ubuntu 7.04) and have direct access to the server and would thus like to get setup to use CVS and have a couple questions about the process:
1. Can I use CVS with a Moodle instance that was setup without using CVS? (there are no cvs files/folders in my current instance). I have a development server on my laptop (moodle4mac) and see CVS folders in many places. None of them on my production server however.
2. Once I get my instance set up for CVS (if I manage it), can I use CVS to update all the Moodle 'core' without making changes to my custom 3rd party modules/blocks and 'self-adaptations'? In other words, for example, if I have a 3rd party module installed, will that module be deleted when I run a CVS update if that module does not exist in the Moodle stable core?
Thanks, in advance, for any help provided.
Jason
If you modded your local instal on your mac to have the same customizations as on your peroduction server, you could simply replace the folders ... with the exception of the config.php file. I've done this several times to a linux production server and encountered no problems.
When you run the cvs update using the shell script on your local MAMP build or by using terminal mode to access your production server, the modded files will appear with an M in front of them.
Sometimes, you get a C (meaning conflict) wrt your modded files on updating via CVS. I find this most often happens when there are 2 updates applied to the same modded file. Frequently, the issue can be corrected by deleting extra lines at the top of the modded file. Other times, I use TextWrangler to compare a clean copy of the cvs file to my modded one to see where the mixup occured.
Additional blocks, modules, themes, etc. are recognized as not being part of the core and are left untouched. You could download third-party blocks (that are in the contrib library) and replace the non-CVS versions with them ... then run another terminal command to check for and replace those files with updates from the contrib cvs repository as well.
Transmit and TextWrangler are a great combo to transfer and update files on your remote server, if you are using a Mac locally.
larry
Jason, to answer your questions,
Question #1
Yes, you can update using cvs even if you did not setup initally with cvs.
Question #2
If you have file folders or files in your moodle directory that are NOT part of the standard moodle checkout/update, then they will not be overwritten.
If you have modified a file that is part of the standard moodle, then I'm not actually sure whether it will overwrite the old one or not... you might havr to test this out to see what happens (in a test directory, not your production directory). You may not be able to use the old files anyway though, because the updated version may have changes that are needed for the new version of moodle to work properly. In case, what you need to do is move all your modifications from the old file into the new file.
Thank you both, very much, for your helpful information. I don't think I've made any modifications to Moodle core files, if I can remember correctly, so I probably won't have any troubles.
I'm overdue to get set up with CVS and glad to know that there won't be any issues with 3rd party packages.
Thanks again
Jason
Here's how I update our Linux server using terminal mode on a mac.
Our moodle folder is called "moodle" and you can see the path to it below.
The following (in blue) is what I enter:
ssh myadminusername@myserver.com
mypassword
sudo /bin/bash
mypassword
cd /; cd usr/local/apache2/htdocs; ls
cvs -q -z3 -d:pserver:anonymous@uk.cvs.moodle.org:/cvsroot/moodle co -r MOODLE_18_STABLE moodle
You may prefer to use the weekly update instead.
To keep the 3rd party plugins uptodate you can enter:
cvs -q -z3 -d:pserver:anonymous@uk.cvs.moodle.org/cvsroot/moodle co contrib
This will keep a master copy of the contributed elements on your server.
If manual changes are required (editing conflicting files, moving in newer versions of blocks or modules):
chmod -R 777 moodle/
If using Transmit, select the file and choose to edit it with TextWrangler on your local machine. Make your changes, then enter the following command in blue.
chmod -R 755 moodle/
Hope this makes sense ... I'm a tweaker and not a coder per se.
larry
Thanks for the help. I will actually be logging directly into the server (locally) and thus won't need the ssh and my moodle root is slightly different but that's no big deal.
The two cvs statements will be very helpful. I don't completely understand them yet as I'm not really a coder either, aspiring at best but in reality just a tweaker too
I'm going to try to work some time into my schedule to sit down and work on getting this all setup without accidentally messing something up in the process.
I will definitely refer back to this post for reference at that time.
Thanks again
Jason
I tried CVS, but I am not able to do it.
I input :pserver:anonymous@eu.cvs.moodle.org:/cvsroot/moodle in CVSROOT, and MOODLE_19 in Module.
I clicked Ok, then the following error message pops out.
--------------------
In .......htdocs\moodle:"C:Ptrogram files\CVSNT\cvs.exe"-q checkout -P MOODLE_19
CVSROOT=:pserver:anonymous@eu.cvs.moodle.org:/cvsroot/moodle
Connet to eu.cvs.moodle .org:2401 failed: NO connection could be made because the targe machine actively refulsed it.
Error, CVS operation failed.
-------------------------
I checked with us, uk and es. But none of them works.
I changed Use HEAD branch and Choose branch or tag in Revision, but it does not make any difference.
Could anyone help me?
I am having the same problem -
The target machine is actively refusing it (the connection). I tried eu, uk, us and us2.
Using anonymous login.
Need the source code ASAP !!!
"Question #1
Yes, you can update using cvs even if you did not setup initally with cvs."
I'm truly glad to know I can use cvs to update my current installations. Having read the posts that follow the one quoted here, I'm still a bit mystified. Is there a post somewhere that would walk me through the steps of installing turtlecvs and setting up my current installation to update with it? Sorry to ask what's probably obvious to some. Help would be appreciated.
Newbie
1. Make full site backup in case of screw up
2. determine approximate version of Moodle you have. administration / Notifications will tell you build, but you need to relate this to cvs tag such as MOODLE_191. Match doesn't have to be perfect, but it should be close to version you have. To see available tags, go to cvs.moodle.org
3. create a directory where you will do the check out, say /home/evan/temp
4. follow directions in "CVS for administrators" (docs.moodle.org) to check out the code from cvs, for examples
cd /home/evan/temp
cvs -d:pserver:anonymous@eu.cvs.moodle.org:/cvsroot/moodle login
cvs -z3 -d:pserver:anonymous@eu.cvs.moodle.org:/cvsroot/moodle co -P -r MOODLE_191 moodle
this create directory /home/evan/temp/moodle containing all code and CVS directories.
5. Next you will copy all CVS directories from your temp moodle onto your real Moodle. Supposing your real moodle is in /home/evan/public_html/moodle. Do this:
cd /home/evan/temp/moodle
find . -type d -name CVS -exec cp -R --parents {} /home/evan/public_html/moodle \;
6. As proof of concept, I would next suggest doing an upgrade to latest stable release
cd /home/evan/public_html/moodle
cvs update -dP
Depending on how close your version is to the version you checked out, you could have more or less conflicts to resolve here.
Maybe someone else have better idea, especially step 2. I am out of ideas.
Only one problem you may have: if you removed files or maybe even whole directories from your version, like I did (I delete everything which I am not using then CVS unfortunately will recreate all such and you has to delete again. Too bad cvs cant be smarter and see you don't want such. CVS don't know difference between "don't want" and "don't have"
Anybody know workaround?
Hi, please, I need some "Back to Basics", I´m trying to download Moodle from CVS, I have done everything you have said in this course but I have the same message and a ridiculous noise of broken glases:
En C:\ProgramData\Microsoft\Windows\Start Menu\Programs\CVSNT: "C:\Program
Files\CVSNT\cvs.exe" -q checkout -P moodle
CVSROOT=:pserver:anonymous@moodle.cvs.sourceforge.net:/cvsroot/moodle
Empty password used - try 'cvs login' with a real password
cvs [checkout aborted]: cannot make directory moodle: Permission denied
Operación CVS fallida