usage: svn <subcommand> [options] [args] Subversion command-line client, version 1.4.0. Type 'svn help <subcommand>' for help on a specific subcommand. Type 'svn --version' to see the program version and RA modules or 'svn --version --quiet' to see just the version number. Most subcommands take file and/or directory arguments, recursing on the directories. If no arguments are supplied to such a command, it recurses on the current directory (inclusive) by default. ...
commit (ci): Send changes from your working copy to the repository. usage: commit [PATH...] A log message must be provided, but it can be empty. If it is not given by a --message or --file option, an editor will be started. If any targets are (or contain) locked items, those will be unlocked after a successful commit. Valid options: -q [--quiet] : print as little as possible -N [--non-recursive] : operate on single directory only --targets arg : pass contents of file ARG as additional args --no-unlock : don't unlock the targets -m [--message] arg : specify log message ARG -F [--file] arg : read log message from file ARG ...
% svn checkout https://svn.lal.in2p3.fr/projects/Etudiants/demo demo A demo/data A demo/data/grille.dat A demo/data/Simu1.raw A demo/data/Simu2.dat A demo/data/ganglion1.dat A demo/data/ganglion2.dat A demo/data/test1.dat ... % cd demo
% echo "test" >fichier.txt % svn add fichier.txt A fichier.txt
% svn status
A fichier.txt
% svn commit fichier.txt -m "Ajout de fichier de test"
Authentication realm: <https://svn.lal.in2p3.fr:443> LAL …
Password for 'garnier':
Adding fichier.txt
Transmitting file data .
Committed revision 2923.
% svn update
U subversion.html
Updated to revision 1789.
% svn info
Path: .
URL: https://svn.lal.in2p3.fr/projects/Etudiants/demo
Repository Root: https://svn.lal.in2p3.fr/projects/Etudiants
Repository UUID: 589c6671-760a-0410-a932-a3fdf8820ca6
Revision: 2922
Node Kind: directory
Schedule: normal
Last Changed Author: garnier
Last Changed Rev: 2922
Last Changed Date: 2007-07-12 10:53:32 +0200 (Thu, 12 Jul 2007)
% svn add double.cpp
A double.cpp
% svn revert double.cpp
Reverted 'double.cpp'
~/tmp/demo % svn log
------------------------------------------------------------------------
r2923 | garnier | 2007-07-12 11:07:06 +0200 (Thu, 12 Jul 2007) | 1 line
ajout de fichier de test
------------------------------------------------------------------------
r2922 | garnier | 2007-07-12 10:53:32 +0200 (Thu, 12 Jul 2007) | 1 line
import de fichierts pour la demo
------------------------------------------------------------------------
r2921 | garnier | 2007-07-12 10:51:40 +0200 (Thu, 12 Jul 2007) | 1 line
remise a zero de demo
...
% echo "nouveau texte" >>nouveau.txt
% svn diff
Index: nouveau.txt
===================================================================
--- nouveau.txt (revision 2924)
+++ nouveau.txt (working copy)
@@ -1 +1,2 @@
test
+nouveau texte
La structuration du dépôt, son organisation est libre et peut s'adapter complètement à son modèle de développement, qui peut évoluer.
À tout moment, il est possible de changer l'organisation, de déplacer, renommer, supprimer répertoires ou fichiers simplement et sans perdre l'historique.
% svn mv fichier.txt nouveau.txt
A nouveau.txt
D fichier.txt
% svn commit ....
% svn cp nouveau.txt copie.txt
A copie.txt
% svn commit ....
% svn mkdir test
A test
% svn commit ....
% svn rm test D test % svn commit ....
Commiter de manière à faciliter le code review :
Questions ?