I can vaguely remember that PVCS had a way of explicitly linking tickets to commits, TFS probably has this as well.
Jira and other ticketing systems can often read repos and look for ticket ids. In my commits at work I just mention PRJCTNAME-142 and that'll link to a ticket and aggregate in jira all the commits/pull requeusts/branches... tagged with that