{"id":326,"date":"2012-07-27T08:40:40","date_gmt":"2012-07-27T08:40:40","guid":{"rendered":"http:\/\/www.h-hennes.fr\/blog\/?p=326"},"modified":"2012-07-27T08:40:40","modified_gmt":"2012-07-27T08:40:40","slug":"utilisation-des-svn-keywords","status":"publish","type":"post","link":"https:\/\/www.h-hennes.fr\/blog\/2012\/07\/27\/utilisation-des-svn-keywords\/","title":{"rendered":"Utilisation des svn keywords"},"content":{"rendered":"<p>Petite astuce pratique aujourd&rsquo;hui dans l&rsquo;utilisation de subversion avec Toirtoise Svn.<\/p>\n<p>Si comme moi vous vous \u00eates d\u00e9j\u00e0 demand\u00e9 \u00e0 quoi correspondait ce type d&rsquo;information dans les ent\u00eates d&rsquo;un fichier php<\/p>\n<pre>\/**\r\n * $Revision: 309 $\r\n * Last-Modified : $Date: 2012-07-24 10:53:07 +0200 (mar., 24 juil. 2012) $\r\n * Id : $Id: list.phtml 309 2012-07-24 08:53:07Z herve $\r\n *\/<\/pre>\n<p>Ces infos correspondent aux keywords svn et sont automatiquement remplac\u00e9es par les bonnes valeurs pour les fichiers modifi\u00e9s lors d&rsquo;un commit des modifications.<\/p>\n<p>Pour b\u00e9n\u00e9ficier de ces informations voici comment proc\u00e9der avec Toirtoise Svn :<\/p>\n<p>Pour commencer faites un clic droit sur le r\u00e9pertoire racine de votre d\u00e9p\u00f4t.<br \/>\nPuis dans les options \u00ab\u00a0Toirtoise SVN\u00a0\u00bb cliquer sur \u00ab\u00a0Properties\u00a0\u00bb.<\/p>\n<p>La fen\u00eatre suivante est ensuite affich\u00e9e :<\/p>\n<p><a href=\"https:\/\/www.h-hennes.fr\/blog\/wp-content\/uploads\/2012\/07\/svn-properties.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-327\" title=\"svn-properties\" src=\"https:\/\/www.h-hennes.fr\/blog\/wp-content\/uploads\/2012\/07\/svn-properties-300x155.jpg\" alt=\"Svn Properties\" width=\"300\" height=\"155\" srcset=\"https:\/\/www.h-hennes.fr\/blog\/wp-content\/uploads\/2012\/07\/svn-properties-300x155.jpg 300w, https:\/\/www.h-hennes.fr\/blog\/wp-content\/uploads\/2012\/07\/svn-properties.jpg 587w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Cliquer sur \u00ab\u00a0New\u00a0\u00bb.<br \/>\nDans property name s\u00e9lectionner \u00ab\u00a0svn:keywords\u00a0\u00bb.<\/p>\n<p>Les options disponibles sont les suivantes :<\/p>\n<ul>\n<li>URL,Head url : Url de base du projet<\/li>\n<li>Author,LastChangedBy : Auteur de la derni\u00e8re modification du fichier<\/li>\n<li>Date,LastChangedDate : Date et heure de la derni\u00e8re modification du fichier<\/li>\n<li>Rev,LastChangedRevision : Derni\u00e8re r\u00e9vision\u00a0 ou le fichier a \u00e9t\u00e9 modifi\u00e9<\/li>\n<li>Id : R\u00e9sum\u00e9 des 4 mots-cl\u00e9 pr\u00e9c\u00e9dents.<\/li>\n<\/ul>\n<p>Saisissez les options que vous souhaitez utiliser.<br \/>\nPar exemple :<br \/>\n<a href=\"https:\/\/www.h-hennes.fr\/blog\/wp-content\/uploads\/2012\/07\/svn-properties2.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-328\" title=\"svn-properties2\" src=\"https:\/\/www.h-hennes.fr\/blog\/wp-content\/uploads\/2012\/07\/svn-properties2-300x262.jpg\" alt=\"Svn Properties Keywords\" width=\"300\" height=\"262\" srcset=\"https:\/\/www.h-hennes.fr\/blog\/wp-content\/uploads\/2012\/07\/svn-properties2-300x262.jpg 300w, https:\/\/www.h-hennes.fr\/blog\/wp-content\/uploads\/2012\/07\/svn-properties2.jpg 359w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Veillez \u00e0 bien cocher la case \u00ab\u00a0Apply property r\u00e9cusively\u00a0\u00bb pour que les param\u00e8tres soient bien mis en place pour l&rsquo;ensemble des fichiers du d\u00e9p\u00f4t.<br \/>\nCliquer sur \u00ab\u00a0OK\u00a0\u00bb<\/p>\n<p>A pr\u00e9sent pour pouvoir b\u00e9n\u00e9ficier des mises \u00e0 jour de ces param\u00e8tre saississez les informations suivantes dans les ent\u00eates de tous vos fichiers :<\/p>\n<pre> \/**$Revision$\r\n  * Last-Modified : $Date$\r\n  * Id : $Id$\r\n  *\/<\/pre>\n<p>Dor\u00e9navant le suivi des modifications des fichiers sera grandement facilit\u00e9 \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Petite astuce pratique aujourd&rsquo;hui dans l&rsquo;utilisation de subversion avec Toirtoise Svn. Si comme moi vous vous \u00eates d\u00e9j\u00e0 demand\u00e9 \u00e0 quoi correspondait ce type d&rsquo;information dans les ent\u00eates d&rsquo;un fichier php \/** * $Revision: 309 $ * Last-Modified : $Date: 2012-07-24 10:53:07 +0200 (mar., 24 juil. 2012) $ * Id : $Id: list.phtml 309 2012-07-24 [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[6],"tags":[169,214,213],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-trucs-et-astuces","tag-svn","tag-svnkeywords","tag-toirtoise-svn"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":2,"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"predecessor-version":[{"id":330,"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/posts\/326\/revisions\/330"}],"wp:attachment":[{"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.h-hennes.fr\/blog\/wp-json\/wp\/v2\/tags?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}