JavaHg is a Java library for interacting with Mercurial. It uses the command server in Mercurial 1.9 and later to avoid starting a new Mercurial process on every request.
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 use a common lower-level library but bring their own wrappers to call out to the…
I've done a bunch of googling and messing around with my code but in the end I can't seem to figure out why the static mocking isn't working with PowerMock and Mockito.
I am trying to mock the LogCommand class' on() method in the JavaHg Library…
I am using Mercurial 2.1.1 with the daily snapshot of JavaHg in a Grails 1.3.7 environment.
I am trying to interact with a remote repository that has the largefiles extension enabled.
I have created an hgrc file with the largefiles extension enabled…
How can I determine what changeset the current working directory of the repository is on?
hg identity and hg summary do not yet appear to be implemented in JavaHg.
A third alternative, hg parents is implemented, but doesn't appear to work exactly…
I'm trying to write a sample program that uses javahg to get information on a project repository. I'm running on a Windows client and the remote repository is on a Linux Server. However, when I try to get the incoming changes, it hangs or it gives…
I'm using JavaHg in order to build a customised GUI interface. I was able to clone via code as follows:
BaseRepository repo = Repository.clone(new File(checkout_folder), url);
However, this being a GUI app, it just stalls until the clone is…
I am using javaHg on our company's web-application.
I want to avoid installing mercurial when I setup the new release on our server. Do I need to go into details as to why management doesn't want "external" applications installed on the server?
I…
How are --config options interpreted by JavaHg and the Mercurial command server if I set them with the cmdAppend method? The method has no Javadoc yet.
Will they persist from call to call or will they reset automatically after each call to an…
I have a x.hg bundle file that I would like to inspect with JavaHg. I could of course unbundle it onto my repository, but I would like to open it and see the changesets inside instead. Is this possible?
I am trying to use JavaHg to run some hg commands from Java.
I already have an existing hg working directory.
:pwd
/Users/theodore/Work/proj1
:hg identify -b
PROJ1_FEATUREX_BRANCH
I want to connect to this working directory using JavaHg and run hg…
I have made attempts to build 0.7 and later, but it always fails with the following message:
The build could not read 1 project -> [Help 1]
The project com.aragost.javahg:javahg:0.7 (/home//DEV/NoBackup/javahg/pom.xml) has 1…
I have a web application that communicates to Mercurial for Clones,Pull,Push,Commit,etc and I've been using the RepositoryConfiguration.setHgrcPath to supply the [auth] username/password but need to be able to use the keyring extension instead in…
In our current Java project we want to compare the local with the remote revision number of an alreay cloned mercurial repository, especially we want to get the latest revision number from the server. We are using javahg to access mercurial…