translated by Google

Machine-translated page for increased accessibility for English questioners.

Are you creating a new repository?

Consider using a more modern versioning system instead of SVN Git . We recommend basing the repository on the faculty GitLabu . In addition to a more convenient web interface, it offers Issues , Milestones and Wiki . See more information here .

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 the same address with the full network name of the repository:

https://svn.fi.muni.cz/fi/${REPOSITORY_NAME}

Graphic client

Subversion support is already part of development environments, but there are also graphical tools that make administration much easier. E.g.:

  • RealSVN
  • TortoiseSVN
  • SmartSVN

etc.

Links