When you commit a change using Mercurial, include a single line of the form BugzID: case number in the log after the other comments.