Svn
De Admin -- TALEVAS.
(Différences entre les versions)
(→set executable X) |
|||
| (3 révisions intermédiaires par 2 utilisateurs sont masquées) | |||
| Ligne 1 : | Ligne 1 : | ||
| − | |||
| − | |||
=== svn // SVN === | === svn // SVN === | ||
| − | |||
mkdir path, svnadmin create path, chown www-data:www-data path | mkdir path, svnadmin create path, chown www-data:www-data path | ||
svn status path | svn status path | ||
| + | |||
| + | == revert de version tout un dossier == | ||
| + | Most of the time when I’m working with code that is checked out from Subversion it’s moving forward, version after version. There are times though where I need to revert back to a previous version (one reason you should have your code versioned in the first place). Subversion can do this, but it isn’t via the revert command, instead it’s done with merge. | ||
| + | |||
| + | Most of the time this means I can revert my working copy to rev 12345 with this command: | ||
| + | |||
| + | svn merge -r HEAD:12345 . | ||
| + | |||
| + | == recherche dans les logs == | ||
| + | svn log --with-all-revprops --revision {2012-10-08}:{2012-11-30} --xml | ||
== set executable X == | == set executable X == | ||
| Ligne 19 : | Ligne 26 : | ||
$Id$ $HeadURL$ | $Id$ $HeadURL$ | ||
dans le fichier | dans le fichier | ||
| + | |||
| + | == cfengine for admins == | ||
| + | avant de ci dans le cfegine ... | ||
| + | /usr/sbin/cfagent -p -q -v -f ./cf.pfs | ||
| + | |||
| + | |||
| + | il ne doit rien avoir entre | ||
| + | Looking for an input file ./cf.pfs | ||
| + | et | ||
| + | Finished with ./cf.pfs | ||
Version actuelle en date du 16 novembre 2012 à 14:50
Sommaire |
svn // SVN
mkdir path, svnadmin create path, chown www-data:www-data path
svn status path
revert de version tout un dossier
Most of the time when I’m working with code that is checked out from Subversion it’s moving forward, version after version. There are times though where I need to revert back to a previous version (one reason you should have your code versioned in the first place). Subversion can do this, but it isn’t via the revert command, instead it’s done with merge.
Most of the time this means I can revert my working copy to rev 12345 with this command:
svn merge -r HEAD:12345 .
recherche dans les logs
svn log --with-all-revprops --revision {2012-10-08}:{2012-11-30} --xml
set executable X
svn propset svn:executable on FILENAME
des infos en automatique dans les fichiers
svn propset svn:keywords "Id HeadURL"
avec
$Id$ $HeadURL$
dans le fichier
cfengine for admins
avant de ci dans le cfegine ...
/usr/sbin/cfagent -p -q -v -f ./cf.pfs
il ne doit rien avoir entre
Looking for an input file ./cf.pfs et Finished with ./cf.pfs