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
By the way with InDefero, you can go the hosted way with 250MB free space and unlimited private/public projects. The hosted option offers Git and Subversion but sadly no Mercurial yet :/