Mercurial Hook - change a commit message pre commit
问题 Edit Made this basic hook to prevent branch name & commit message bugID mismatches. https://gist.github.com/2583189 So basically the idea is that the hook should append " BugID:xyz" to the end of the commit messages if the branch name is like bug_123, or feature_123. However I'm having problems finding out how to do this, as most examples of pretxncommit people don't want to mutate the changeset description. This is what I have so far. It updates .hg/commit.save with the right message, but