Using svn with Trac, for example, one can use "r1234" to refer to a revision from a ticket, or "#123" to refer to a ticket number from a commit message.
We make extensive use of these at the day job. It is a lifesaver. If I ever get around to using bug tracking for myself, I'm certainly going to continue the practice.