Moving an svn repository to integrate with trac

I just started on a project that was using trac and subversion but they weren't integrated. I love the cross referncing trac provides. It can really help explain changesets and show how an issue was resolved.

The steps to add subversion to trac are

  • Stop people using the old repository
  • copy the repository files from one server to the other
    I used tar and scp
  • edit trac.ini to add the location of the respository

    Trac and svn must be on the same server
  • run trac-admin resync

    This imports all the svn history.

I enabled access to subversion via apache SSL while I could get access via the browser checking out code with different tools gave the follwoing errors

svn: OPTIONS of 'https://195.99.1.93/svn': 200 OK

svn: PROPFIND of '/svn': 405 Method Not Allowed

svn: Server sent unexpected return value (405 Method Not Allowed) in response to PROPFIND request for '/svn'

Thanks to techpulp.com/2009/01/webdav-405-method-not-allowed-in-porpfind/ I found out that my problem was an extraneous trailing slash in my apache config!

I then ran svn relocate (right click on the repository using eclipse in the subversion perspective).

I moved Trac to SSL for good measure - changing the location on the task repository in eclipse was straightforward.

And as a finishing touch I customised Trac by adding a project logo - it goes in trac/htdocs/mylogo.png and is referenced in trac.ini as site/mylogo.png - I've failed this step before but actuallt read the docs this tim.

Tags

Post new comment

Got something to add - just enter a comment
all other fields are optional.

Your email address will not be published.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.