mercurialmercurial-commit

How do I attach a number to a Mercurial commit?


How do I include a defect number when doing a mercurial commit? The way that I'm currently doing it is to precede the commit message with the defect number so that QA can find the commits that relate to each defect.

Is there a field or tag that would allow me to add a number to each mercurial commit?

If not, is there a better way (than putting the number in the commit message) to associate a number with a commit?


Solution

  • There are no special fields. The only trick is that only the first line appears when you're not using verbose view.

    However, some software that integrates with Mercurial parses the message in various ways. For example, Google Code will detect references to "issue n", and create a link.