JavaHg gives you:
Fast: Normally, you would start a Mercurial process and then parse the output. JavaHg uses the Mercurial command server instead. This means that JavaHg starts a single Mercurial server process and interacts with that for the following operations.
Convenient: We have done the hard work of parsing the output and turning it into a useful Java API. Parsing a command like
hg logis easy enough, but JavaHg also has code to talk with the interactive commands such as
Safe: If you construct the command line by hand, then you might make a misspell the name of a flag and it wont be discovered until runtime. With JavaHg, you get a type safe API where command line flags are real Java methods. This gives you completion support in IDEs like Eclipse and prevents runtime errors.
Documented: JavaHg comes with extensive JavaDoc documentation that describes how each command works.
Tested: We have unit tests for all commands. We use Jenkins to run the tests against different Mercurial versions to ensure that we maintain compatibility with new and old versions.
JavaHg is available as snapshot builds for Maven. Please see our
Maven instructions for information about what to include in
pom.xml file to depend on JavaHg.
If you want to contact us, then please use one of these channels:
- The JavaHg group on Google Groups is, starting December 2016, the official forum for users and developers.
- I (the maintainer) have created a Trello board which reflects the state of the maintenance tasks and issues. It is always up-to- date, within a margin of a couple of minutes.
Mailinglist: This was the place for discussion about the development of JavaHg. You're also very welcome to send us a mail if you're using JavaHg in a project. Send a mail to firstname.lastname@example.org to subscribe. NOTE: This has now been superseded by the Google Group.
Stack Overflow: You're welcome to ask JavaHg questions on Stack Overflow. This is a good place to ask your "How do I do ... in JavaHg?" questions. Please make sure to tag your question with
javahgso it will show up in the right category.
Bitbucket Issue Tracker: This is where you should report bugs in JavaHg. That would be problems of the form "When I do ..., JavaHg throws an exception".
Please remember to tell us which JavaHg version you're using.
JavaHg is distributed under the MIT license.
JavaHg was started by Jan Sørensen and Martin Geisler. See the commit log for the full list of authors.
Starting December 2016, the maintainer of this project is Amenel Voglozin.