A Subversion version control system is available for FI students. Users can set up a repository using application at the Faculty Administration FI.
Line client
A module is available on Unix machines
subversion
(or
subversion-X.Y.Z
with the number of the currently installed version). The basic command for managing the contents of the repository is
svn
. But first, create a typical repository structure with these directories, such as in
/tmp/project/
:
- trunk /
- will contain the current working copy of the project
- tags /
- is for storing consistent, significant versions of a project
- branches /
- used to store different branches of the project
Save your entire project in the directory
trunk
and then calling the command
svn
import the whole structure into the repository:
$ svn import /tmp/project/ https://svn.fi.muni.cz/fi/${REPOSITORY_NAME}
...
Adding project/trunk
Adding project/branches
Adding project/tags
If we want to start working with the repository, we first get the current working copy from the server (ie important because of the metadata that is added to each directory):
$ svn checkout https://svn.fi.muni.cz/fi/${REPOSITORY_NAME} ~/project/
A /home/xpepik/project/trunk
A /home/xpepik/project/branches
A /home/xpepik/project/tags
Checked out revision 1.
For further work with the repository has
svn
these parameters:
-
add
-
delete
-
copy
-
move
-
update
Example: we create a new file and assign it under the administration of the versioning system:
$ cd ~/project/trunk/
$ vim Makefile
$ svn add Makefile
Changes to the working copy should be saved north:
$ svn commit
Adding trunk/Makefile
Transmitting file data .
Committed revision 2.
Web client
A simple web client is available at an address identical to the full network name of the repository:
https://svn.fi.muni.cz/fi/${REPOSITORY_NAME}