hgco looks up at your current branch name, and if it contains a JIRA issue key, hgco adds the issue key at the end of your commit message.
In any other case, hgco throws and your commit is canceled.
npm install -g hgco
hgco -m 'your commit message'
# --> converts to "hg commit -m 'your commit message [<your JIRA issue key>]'"
Michel Moreau - michmoreau.l@gmail.com