Following this link you can browse the SVN repository: svn repository
download this script and use it: svn-co "nome_progetto"
remote, via ssh:
svn co svn+ssh://ginevra/home/svn/<project>/trunk <working dir name>
local:
svn checkout file:///home/svn/<project>/trunk <working dir name>
Go to server machine. As user on the server machine (is it possible from remote?), create a repos for your "project"
newgrp svn && umask 002 && svnadmin create /home/svn/<project name>and then import the "project" from your machine
svn import <path-to-project> file:///home/svn/<project name> -m"Initial import"or from a remote site:
svn import <path-to-project> svn+ssh://<server>/home/svn/<project name> -m"Initial import"
Merging different revs (e.g. to report modifications made in trunk in another branch). Example: we are in the branch ecmwf. Last modification is rev 378 (svn info). The present rev of trunk is 389. The command
svn merge -r 378:389 <path_to_repos>/trunkmerges modifications made from 378 to 389 and writes them in the present directory (the ecmwf branch).
Procedura per allineare un branch con il trunk. Da eseguire regolarmente per evitare drift troppo ampi delle due versioni
svn update
svn log -v | grep trunk | head -1il risultato è (esempio):
A /branches/dust (from /trunk:259)e quindi la revisione di distacco è 259
svn info | grep Revision
svn merge --dry-run -r <rev distacco>:<ultima rev> svn+ssh://ginevra/home/svn/bolchem_V-2/trunk
svn merge --dry-run -r <rev distacco>:<ultima rev> svn+ssh://ginevra/home/svn/bolchem_V-2/trunk | egrep "^C"
svn merge -r <rev distacco>:<ultima rev> svn+ssh://ginevra/home/svn/bolchem_V-2/trunk
Quando si deve chiudere il branch, si esegue la procedura e poi ...
apt-get install subversion subversion-tools websvn
dpkg-reconfigure websvn
create the "parent" directory (not an svn repos, just the "container" where user with permission can create repositories)
mkdir /home/svn
(see http://www.debian-administration.org/articles/374#comment_1)
chgrp -R svn /home/svn/ chmod -R g+w /home/svn/ chmod -R g+s /home/svn/ addgroup svn addgroup alberto svn
just rename the directory on the server (http://svn.haxx.se/users/archive-2006-09/1139.shtml)