Commit console doesn't show anymore the messages from API's object ui
Created originally on Bitbucket by Anonymous
Hello,
I've just updated to tortoisehg-3.1 from tortoise 2.5.1, and I found that the messages send from the pretxncommit.check_commit doesn't appears anymore in the commit console.
A workaround is to run "Hg Workbench", choose "View->Show Output Log", and commit from it. The error messages don't appear yet in the console message, but you can see them in the "Output Log".
To reproduce:
- Add the next line to hooks area in .hgrc file:
#!python
pretxncommit.check_commit = python:c:/jira-client.py:check_commit
- Create file c:/jira-client.py, and put the nex lines on it
#!python
def check_commit(ui, repo, hooktype, node, **kwargs):
ui.status('\n\n\\nnError Message\n\n\n\n')
return True