TRAC & SVN (use TRAC and SVN to build the SCM Environment)-Part One

Source: Internet
Author: User
Tags version control system

TRAC & SVN (use TRAC and SVN to build the SCM Environment)-Part One
0. TRAC is an enhanced Software Engineering Development wiki/issue tracking system. TRAC manages network-based software projects as few as possible. TRAC is used to help developers compile excellent software.
TRAC provides SVN (subversion) interfaces, an integrated wiki, and an easy-to-use report tool.

TRAC can use wiki tags in issue instructions and commit messages to create links and seamless references between buckets, tasks, Change sets, files, and Wiki pages. The timeline can be sorted to reflect the current and past project time, which makes the project overview and tracking process very simple. Roadmap is used to display a plan and list milestones.

The Subversion is a version control system developed by collabnet. It is used to maintain the current and historical versions. The maintenance objects includeSource code, Web pages and documents. Subversion civilization and Open SourceCommunityAnd applied to many open-source projects, such as Apache Software Foundation, Kde, gnome, free Pascal, FreeBSD, GCC, Python, Django, Ruby, Mono, sourceforge.net, Google code ....

This document describes how to integrate TRAC and subversion to build an SCM environment.

1. Environment
The environment used by the author is as follows:
OS: Windows XP SP2
Trac_0.11.3: http://trac.edgewall.org/wiki/TracDownload
Python_2.5.4: http://www.python.org/download/
Subversion_1.4.6: http://subversion.tigris.org/files/documents/15/41077/svn-win32-1.4.6.zip
Http://subversion.tigris.org/files/documents/15/41687/svn-1.4.6-setup.exe
Subversion_1.4.6 (python2.5): http://subversion.tigris.org/files/documents/15/41076/svn-python-1.4.6.win32-py2.5.exe
Apache HTTP server_2.2.11: http://httpd.apache.org/
Apache HTTP Server mod_python_3.3.1: http://www.apache.org/dist/httpd/modpython/win/3.3.1/mod_python-3.3.1.win32-py2.5-Apache2.2.exe
Setuptools_0.69 (python2.5): http://pypi.python.org/packages/2.5/s/setuptools/setuptools-0.6c9.win32-py2.5.exe#md5=602d06054ec1165e995ae54ac30884d7
Genshi_0.5.1 (python2.5): http://ftp.edgewall.com/pub/genshi/Genshi-0.5.1.win32-py2.5.exe
Pysqlite_2.4.0 (python2.5): http://initd.org/pub/software/pysqlite/releases/2.4/2.4.0/pysqlite-2.4.0.win32-py2.5.exe
Tortoisesvn_1.5.9: http://tortoisesvn.net/

The configuration process may vary depending on different versions (for example, the configurations of Python 2.3 and pythod 2.5 are different .). The environments and versions used by the author are not necessarily suitable for other people's environments. They only provide a general introduction and discussion.
All resources written by the author are from the Internet. Please referArticleThe reference section at the end.

2. Installation Process
A. Install Python
Install python2.5.4 according to the default settings.
After the installation is complete, add the installation path to the system path to run the python command directly at the command line prompt. (In Windows, you can choose "my computer"-> "properties" --> "advanced" --> "environment variables" --> "system variables" --> "path ", add the python installation path to the end and end with a semicolon. For example, C:/python25 ;)
In addition, setuptools is injected. The Subversion does not currently support 64-bit computer versions. Therefore, you need to use the x86 version of the above software.

B. InstallationProgramPackage Installation
In the environment section, all the links provided by the author are installed packages. The links may expire in the future. The following is the original URL of the above software: http://trac.edgewall.org/wiki/traconwindows.
This is also the main reference resource for the author to write this article.
Note:
(1) In the above software list, if the Python version is 2.5, Python has the built-in sqlite3 module (same as pysqlite2.3.2), so you do not need to install the pysqlite program.
(2) Subversion is not required either. TRAC can work with other version control systems. If the Subversion is installed and TRAC is integrated with apache2.2, you also need to download the apache2.2 compatibility program.
Install the setuptools, genshi, TRAC, and subversion packages.

C. Manual Installation
This method uses easy install to manually install the above software. Setuptools can automatically download and install Python packages from the Internet. It can also be used to find and load TRAC plugins. Download the setuptools installer file ez_setup.py: Installation. Enter % python_home %/scripts in the command line prompt of widows, and then install the required software by running easy_install.

Download the genshi0.5.1 release package: Release.

Install the pysqlite database DRIVER: easy_install pysqlite. If an error occurs during installation using the command line method, you can download the installation package in the B Installation Method for installation.
The following command line prompt contains the structure in the python25/lib/Site-pacages directory after installation method B (using the installation package:
Directory of C:/python25/lib/Site-packages

03/02/2009 :08 PM <dir>.
03/02/2009 :08 PM <dir> ..
09/21/2006 005 am 126 easy_install.py
03/02/2009 PM 314 easy_install.pyc
03/02/2009 PM 314 easy_install.pyo
03/02/2009 :08 PM <dir> genshi
03/02/2009 PM <dir> Genshi-0.5.1-py2.5.egg-info
03/02/2009 11: 08 PM <dir> libsvn
09/24/2008 PM 83,956 pkg_resources.py
03/02/2009 PM 89,087 pkg_resources.pyc
03/02/2009 PM 89,087 pkg_resources.pyo
10/28/2005 PM 121 readme.txt
03/02/2009 11: 07 PM <dir> setuptools
03/02/2009 PM <dir> setuptools-0.6c9-py2.5.egg-info
09/21/2006 005 am 2,362 site. py
03/02/2009 PM 1,765 site. PyC
03/02/2009 PM 1,765 site. Pyo
03/02/2009 11: 08 PM <dir> SVN
12/21/2007 am 276 svn_python-1.4.6-py2.5.egg-info
03/02/2009 11: 08 PM <dir> TRAC
03/02/2009 PM <dir> Trac-0.11.3-py2.3.egg-info

Download and run the subversioninstaller svn-1.4.6-setup.exe. Install it according to the default options.
Install subversion Python library in a command line prompt:
Easy_install-Z http://subversion.tigris.org/files/documents/15/41076/svn-python-1.4.6.win32-py2.5.exe
Note: here the-Z option is required. Because the Subversion is not zipped, TRAC cannot access the zipped subversion.
Install mod_python: This module must be installed only when TRAC and Apache HTTP Server are used together.
Mod_python for apache2.2 again python2.5: http://www.apache.org/dist/httpd/modpython/win/3.3.1/mod_python-3.3.1.win32-py2.5-Apache2.2.exe
Double-click the file to install it. During installation, select the correct installation directory for python and Apache HTTP server.

Install the TRAC plug-in as follows:
> Cd C:/src
> SVN checkout http://svn.edgewall.org/repos/trac/sandbox/spam-filter
> Cd spam-Filter
> Python setup. py install

Install TRAC: ensure that the python installation path is appended to the System Path Environment Variable and that setuptools is installed.
> Cd C:/src
> SVN checkout http://svn.edgewall.org/repos/trac/trunk
> Cd trunk
> Python setup. py install

the installation process ends now. Next, you need to configure Trac, Apache, Apache, SVN, and TRAC and database.
This section will be introduced in the next article.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.