On Fri, May 27, 2011 at 12:53 PM, Jerry Maloney <[email protected]> wrote: > What is the procedure for sending output to the TortoiseHg window? I have a > hook in python: > > example.py > ----------------- > from mercurial import ui > > def saysomething(ui, repo, **kwargs): > ui.status('today is 26-May') > ----------------- > > And I have set my global .hgrc to call this as a commit hook: > ----------------- > [hooks] > commit = python:/path/to/example.py:saysomething > ----------------- > > > But I'm not seeing the message appear anywhere. It appears when I commit > via command line, just not via the Tortoise GUI. I must be missing > something really simple to wire it up properly. > > I've seen threads related to this at > http://sourceforge.net/mailarchive/message.php?msg_id=26130951 , > http://sourceforge.net/mailarchive/message.php?msg_id=23001197 , and > http://sourceforge.net/mailarchive/message.php?msg_id=22376150 , but they > seem to leave out a fundamental detail that I can't figure out.
The standalone commit tool in 2.0 does not show output unless there is an error. If you commit inside the Workbench, the hook output should go to the output log dock widget. -- Steve Borho ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Tortoisehg-discuss mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

