Trac


Your Trac Account at: https://server/~username/projectname
Your SVN repository at: https://server/svn/projectname
Using Trac

The first URL (e.g. https://server/~username/projectname) is the wiki and Trac Web Interface to your SVN account. You can login, and update whatever details you require, (e.g. project wiki, timelines, milestones etc.) Note that this Trac Web Interface is only for updating project details. No SVN checkin-checkout etc. are carried out through this interface.

    * The Main TRAC (Web Interface as described aboev) Configuration file is in /home/username/projectname/conf/trac.ini

Some of the changes made to Trac (on a user level) are:

alt =
height = -1
link = http://server/~username/projectname
src = /~username/projectname/images/logo.gif
width = -1

The following can be included to eliminate spam etc., as anyone can open a ticket for bugs/updates etc. If you want to DISABLE tickets - the following can be inserted into the trac.ini config file:


trac.ticket.* = disabled

Using SVN

If you are not familiar with SVN - then the following PDF document is a DEFINATE MUST: http://svnbook.red-bean.com/

The following are ONLY the Basic guidelines to using SVN:

   1. Setup a new folder in your home dir - all the initial files in your project, in a folder called setupprojectname (or similar)
   2. ~$ svn import /home/username/setupprojectname https://server/svn/projectname/ -m "Initial Import"
   3. Go check out your Trac SVN interface and browse the files you just imported.
   4. Remove the folder setupprojectname in your homedir. It is not needed. All the files have been imported into your SVN repository.
   5. Checkout a "Working Copy" of your SVN imported code: ~$ svn checkout https://server/svn/projectname workingprojectname.
   6. Now you have Checked out a Copy of the Project.
   7. Edit a file and make changes.
   8. To see your change(s) type ~$ svn diff
   9. To Save and Commit back your changes, type ~$ svn commit workingprojectname -m "message"
  10. Go to Trac and See your Changes etc.

Advanced Usage of SVN

You can also access your svn using svn+ssh:// and file:// instead of https://. For example:

svn import /home/username/setupprojectname svn+ssh://username@svn.server.com/var/lib/svn/project
svn import /home/username/setupprojectname file:///var/lib/svn/project

That Ends the HowTo on SVN and Trac. Have fun and enjoy.
Comments