Changes between Version 14 and Version 15 of TimingAndEstimationSVNPostCommitHook


Ignore:
Timestamp:
Sep 8, 2015, 9:20:33 AM (6 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged as script

Legend:

Unmodified
Added
Removed
Modified
  • TimingAndEstimationSVNPostCommitHook

    v14 v15  
    1 = Using a Subversion commit hook To Interact With TimingAndEstimationPlugin  =
    2 == DOWNLOAD ==
    3  * ''' [browser:timingandestimationplugin/branches/trac0.10/scripts/trac-post-commit.py This plugin's version of the post-commit-hook for trac 10] '''
    4  * ''' [browser:timingandestimationplugin/branches/trac0.11/scripts/trac-post-commit.py This plugin's version of the post-commit-hook for trac 11] '''
     1[[PageOutline(2-5,Contents,pullout)]]
    52
    6 '''Note: This information was taken from http://trac.edgewall.org/wiki/TimeTracking#UsingaSubversioncommithookoptional and modified to show how it works with this plugin.'''
     3= Using a Subversion commit hook to interact with TimingAndEstimationPlugin
    74
    8 == Description ==
     5== Description
    96
    10 The {{{contrib/trac-post-commit-hook}}} script is a very convenient tool to interact with Trac's ticket system on commit. It allows to modify time tracking values and ticket state through special commit messages.
     7The {{{contrib/trac-post-commit-hook}}} script is a very convenient tool to interact with Trac's ticket system on commit. It allows to modify time tracking values and ticket state through special commit messages. This script references the TimingAndEstimationPlugin.
    118
    129 * Copy {{{trac-post-commit-hook}}} into /usr/share/trac/contrib.
     
    1411 * Set the executable bit: {{{chmod 755 hooks/post-commit}}}.
    1512
    16 {{{
     13{{{#!sh
    1714#!/bin/sh
    1815REPOS="$1"
     
    3633||fixes #id||Closes the ticket||
    3734
    38 The time spent is specified in parenthesis. :
     35The time spent is specified in parentheses:
    3936
    4037{{{
     
    4239}}}
    4340
    44 
    45 
    4641See {{{contrib/trac-post-commit-hook}}} for details (after applying the patch).
    4742
    48 '''Examples:'''}}
     43== Download
    4944
    50 {{{
     45This plugin's version of the post-commit-hook:
     46 * [browser:timingandestimationplugin/branches/trac0.10/scripts/trac-post-commit.py for Trac 0.10]
     47 * [browser:timingandestimationplugin/branches/trac0.11/scripts/trac-post-commit.py for Trac 0.11]
     48
     49'''Note''': This information was taken from http://trac.edgewall.org/wiki/TimeTracking#UsingaSubversioncommithookoptional and modified to show how it works with this plugin.
     50
     51== Examples
     52
     53{{{#!sh
    5154svn commit -m 'closes #1 (1), refs #2 (.5)  Added time tracking'
    5255}}}
     
    5457This closes ticket #1, increases the time spent by 1 hour. It adds an entry to the Changelog of ticket #2, increases the time spent by .5 hours.
    5558
    56 == Gotchas ==
     59== Gotchas
     60
    5761The script is pretty picky about what input it accepts.  I would suggest entering all of the commit hook commands on separate lines at the beginning of the message for best results.
    5862
    59 == Open Questions ==
     63== Open Questions
    6064
    61 This section contains requests for clarification.
     65=== Relationship with normal ticket commit script
    6266
    63 === Relationship with normal ticket commit script ===
    64 
    65 There is a commit hook trac-post-commit-hook that comes with trac that enables closing tickets and adding references to tickets. This plugin provides a modified version that should be used instead, that also allows tracking hours.
     67There is a commit hook trac-post-commit-hook that comes with Trac that enables closing tickets and adding references to tickets. This plugin provides a modified version that should be used instead, that also allows tracking hours.