Hi,
hg shouldn't allow this.
The only allowed way for communicating with other applications and other "things" should be using helper classes.
For example using a tcp connection or an http one.
You're still free to hack =) let me know if any of you achieve that.
Cheers,
g.