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
For completeness: http://gitorious.org/
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 :/
Assembla provides a wiki, tickets, and other things for free, and allows Github integration. If you don't want to use Github, you can use plain Git with Assembla (with all the goodies you get with any other project).
Pricing is cheap, too ("$2 per team member per month").
http://mtrack.wezfurlong.org/ simil Trac with Git support