In the past I have really enjoyed using Trac with subversion repositories hosted on some of my own servers. The integrated ticketing and online code browsing is very conven
Since this question was asked GitHub now has integrated issue tracking. Somewhat lightweight, but for me that's a bonus.