« Svn » : différence entre les versions
Apparence
Aucun résumé des modifications |
|||
| (4 versions intermédiaires par 3 utilisateurs non affichées) | |||
| Ligne 1 : | Ligne 1 : | ||
=== 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 . | |||
svn | == recherche dans les logs == | ||
svn log --with-all-revprops --revision {2012-10-08}:{2012-11-30} --xml | |||
== set executable X == | == set executable X == | ||
svn propset svn:executable on FILENAME | 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 | |||
Dernière version du 16 novembre 2012 à 14:50
svn // SVN[modifier]
mkdir path, svnadmin create path, chown www-data:www-data path
svn status path
revert de version tout un dossier[modifier]
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[modifier]
svn log --with-all-revprops --revision {2012-10-08}:{2012-11-30} --xml
set executable X[modifier]
svn propset svn:executable on FILENAME
des infos en automatique dans les fichiers[modifier]
svn propset svn:keywords "Id HeadURL"
avec
$Id$ $HeadURL$
dans le fichier
cfengine for admins[modifier]
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