Changes between Version 3 and Version 4 of TracInstall


Ignore:
Timestamp:
03/10/09 07:17:23 (10 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • TracInstall

    v3 v4  
    77 
    88== Short - Install a released version == 
    9 For the quick install, make sure you have [http://python.org Python-2.5], [http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install easy_install] and SQlite-3.3.4 installed (or above). 
     9For the quick install, make sure you have [http://python.org Python-2.5], [http://peak.telecommunity.com/DevCenter/EasyInstall#installing-easy-install easy_install] and SQlite-3.3.4 installed (or above). (You also might want to install python-dev to build genshi) 
    1010{{{ 
    1111sudo easy_install Trac 
     
    176176 * TracModPython if you use the mod_python method. 
    177177 
    178 == Trac 0.11 & SVN on Mac OS X Leopard (10.5) == 
    179  
    180  * [trac:TracOnLeopardServer TracOnLeopardServer] 
     178== Automatic reference to the SVN changesets in Trac tickets == 
     179 
     180You can configure SVN to automatically add a reference to the changeset into the ticket comments, whenever files are committed to the repository. The description of the commit needs to contain one of the following formulas: 
     181 * '''Refs #123''' - to reference this changeset in #123 ticket 
     182 * '''Fixes #123''' - to reference this changeset and close #123 ticket with the default status ''fixed'' 
     183 
     184All you have to do is to edit the ''post-commit'' hook in your SVN repository and make it execute ''trac-post-commit-hook'' coming with Trac. 
     185 
     186If you are editing the ''post-commit'' hook for the first time you need to navigate to your SVN repository's hooks subfolder and rename existing there ''post-commit'' template: 
     187 
     188{{{ 
     189$ cd /path/to/svn/repository/hooks 
     190$ mv post-commit.tmpl post-commit 
     191}}} 
     192 
     193Next open it in any text editor and add a line with path to the Trac environment connected with this SVN repository and another line executing the ''trac-post-commit-hook'' script: 
     194 
     195{{{ 
     196REPOS="$1" 
     197REV="$2" 
     198TRAC_ENV="/var/lib/trac/mamut" 
     199 
     200/usr/bin/python /usr/local/bin/trac-post-commit-hook -p "$TRAC_ENV" -r "$REV" 
     201}}} 
     202 
     203Make sure that ''trac-post-commit-hook'' exists in above path with execution permissions for the same user which SVN is running from. This script can be found in contrib subfolder of your Trac distribution and the latest version can be always downloaded from [source:trunk/contrib/trac-post-commit-hook]. 
     204 
     205 
     206== Platform-specifics installations == 
     207 
     208 * See [trac:TracInstallPlatforms TracInstallPlatforms] 
     209  
    181210 
    182211== Using Trac == 
     
    191220 
    192221---- 
    193 See also:  TracGuide, TracCgi, TracFastCgi, TracModPython, [wiki:TracModWSGI], TracUpgrade, TracPermissions 
    194  
     222See also:  TracInstallPlatforms, TracGuide, TracCgi, TracFastCgi, TracModPython, [wiki:TracModWSGI], TracUpgrade, TracPermissions