News for hackers. Stuff that matters.
Re:On Commit Messages by ams6110 on Monday December 28, 2009 @09:55AM (#1018605)
What I like to do is reference a tracking number from the issue/bug tracking system in my commit messages. Yes, this has some possible pitfalls, e.g. the source code may outlive the issue tracking system, or may change owners without the issue history coming along.. but it works well in practice.
Re:On Commit Messages by jparise on Monday December 28, 2009 @10:41AM (#1018690)
Some SCM systems have per-commit metadata facilities. For example, Perforce changelists can be tagged with a "job" field, which could be a bug identifier.
Re:On Commit Messages by prodigal_erik on Tuesday December 29, 2009 @01:47AM (#1020143)
Microsoft's system was pretty nice. Once you tell the bug database which commit(s) fix a bug (sometimes backed by a set of uploaded crash dumps), it keeps track of which branches the fix has been merged into, so when QA deploys a build they know what is now available to regress. They licensed Perforce for source control (rather than SourceSafe, which they long since stopped recommending anyone use, look directly into, or feed after midnight) but don't use its "job" features for this.

Though it sounds like they're going to replace all this with Visual Studio Extra Crispy Team System for Epic Workgroups Prime. Best of luck prying everyone I met off vim and build.exe, guys.

Re:On Commit Messages by gregwebs on Monday December 28, 2009 @10:10AM (#1018637)
its best when your bug tracker can automatically link to issue numbers and commit numbers.
Re:On Commit Messages by makecheck on Monday December 28, 2009 @11:44AM (#1018828)
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.
Re:On Commit Messages by patio11 on Monday December 28, 2009 @01:41PM (#1019090)
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.
Re:On Commit Messages by modoc on Monday December 28, 2009 @12:48PM (#1018954)
Yes! JIRA + Mylyn (for Eclipse) makes this automatic and let's you see the commits made for the ticket in Jira, and link from the commit e-mails to the Jira ticket(s). Huge fan.
Re:On Commit Messages by petewarden on Monday December 28, 2009 @10:53AM (#1018713)
Having a URL scheme for bugs was a massive help at Apple, the standard for commit messages was including something like "Fix for rdar://17373108".
Re:On Commit Messages by steveklabnik on Monday December 28, 2009 @02:08PM (#1019130)
Lighthouse not only does this, but lets you modify tickets with your commits (through Github, at least). Pretty cool.