Is there a plain API to access Mercurial repositories from Java?
There are plugins for Netbeans and Eclipse, but unlike their Subversion counterparts, they do not us
The Maven SCM plugin seems to have a Mercurial provider available. However, I don't know how applicable that provider is in your case (ie how deeply it is tied to Maven architecture and/or how it interfaces with hg).