Fresh checkout (once)
cvs -z3 -d:pserver:email@example.com:/sources/mldonkey co -P mldonkey
mldonkey is created. It contains all sources and
CVS directories for CVS bookkeeping (do not remove them!).
All operations below should be started from this newly created directory (
cvs -q -z3 up -dPA
Update and discard local changes
cvs -q -z3 up -dPAC
Check diffs (see your local changes)
cvs diff -u -w
Apply a patch
BSD users: use gpatch instead.
patch -p0 -E -s < .../some.patch
If no errors occur you are ready to recompile.
Check out a specific version (creates new directory)
cvs -z3 -d:pserver:firstname.lastname@example.org:/sources/mldonkey co -r <release tag> -P mldonkey
Update existing sources to a specific version
cvs -q -z3 up -dPA -r <release tag>
Release tags can be found in distrib/ChangeLog (e.g. release-3-0-1).
You can also look up the tags in the CVS by checking the status of some file (e.g. ChangeLog):
cvs -q -z3 stat -v distrib/ChangeLog
Output will show the full status of the file, including all tags attached to it.
Switch to branch
(Currently not needed as only single branch is used).
To get the newest version from a branch enter the mldonkey source directory, then update from cvs using the branch tag:
cvs -q -z3 upd -dP -r <branch tag>
All further updates not using the 'A' option will update to the latest version on the branch.