wiki:ComDevCorner

Le coin des développeurs

(On utilise un pluriel un peu abusif, y'en a surtout un de développeur)

Les commits svn

Il est possible, et du coup souhaitable, que les commits svn agissent sur les tickets du traker, notamment en référençant les tickets impactés et éventuellement en marquant leur résolution. Ce faisant, il sera possible, à partir du traker, de référencer toutes les révisions impactant un ticket donné.

Nous avons installé le hook qui va bien dans le script de post-commit du dépôt SVN, reste à utiliser la syntaxe qui va bien dans les messages de log des commits. Extrait de la doc du hook en question :

# TRAC interface : 

# It searches commit messages for text in the form of: 
# command #1 
# command #1, #2 
# command #1 & #2 
# command #1 and #2 
# 
# You can have more then one command in a message. The following commands 
# are supported. There is more then one spelling for each command, to make 
# this as user-friendly as possible. 
# 
# closes, fixes 
# The specified issue numbers are closed with the contents of this 
# commit message being added to it. 
# references, refs, addresses, re 
# The specified issue numbers are left in their current status, but 
# the contents of this commit message are added to their notes. 
# 
# A fairly complicated example of what you can do is with a commit message 
# of: 
# 
# Changed blah and foo to do this or that. Fixes #10 and #12, and refs #12. 
# 
# This will close #10 and #12, and add a note to #12.
Last modified 9 years ago Last modified on Jun 16, 2009 1:28:48 PM