Questions tagged [javahg]

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.

For more information please see:

15 questions
29
votes
5 answers

Mercurial API for Java?

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…
Thilo
  • 257,207
  • 101
  • 511
  • 656
2
votes
1 answer

Get list of tags for a Changeset object in JavaHg?

Is there a way to get the list of tags for a Changeset object in JavaHg?
Martin Geisler
  • 72,968
  • 25
  • 171
  • 229
2
votes
4 answers

PowerMock Static method stubbing doesn't appear to work

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…
creftos
  • 2,090
  • 1
  • 18
  • 22
2
votes
1 answer

How do I enable the "largefiles" extension using the JavaHg Mercurial API?

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…
Jonathan Woo
  • 103
  • 1
  • 6
1
vote
1 answer

How do I get working folder info with JavaHg?

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…
Arthur Blake
  • 105
  • 1
  • 1
  • 6
1
vote
0 answers

How to get the incoming changes from a remote Mercurial repository with javahg?

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…
David Obber
  • 131
  • 2
  • 10
1
vote
2 answers

How to monitor clone progress with JavaHg

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…
Gurce
  • 592
  • 7
  • 18
1
vote
1 answer

javaHG with hg.exe not set as an environmental variable

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…
Simon Streicher
  • 2,638
  • 1
  • 26
  • 30
0
votes
1 answer

Setting Mercurial options with JavaHg

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…
Martin Geisler
  • 72,968
  • 25
  • 171
  • 229
0
votes
1 answer

How can I operate on a Mercurial bundle with JavaHg?

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?
Martin Geisler
  • 72,968
  • 25
  • 171
  • 229
0
votes
1 answer

Run hg log command from java in an existing branch

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…
Teddy
  • 4,009
  • 2
  • 33
  • 55
0
votes
1 answer

How can I build javahg?

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…
BrainStorm.exe
  • 1,565
  • 3
  • 23
  • 40
0
votes
1 answer

How do I use mercurial keyring extension with javahg

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…
roof01
  • 95
  • 1
  • 2
0
votes
1 answer

Get latest revision of the remote repository with javahg

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…
0
votes
1 answer

Getting javahg 0.6-SNAPSHOT from Maven

I'm trying to get JavaHG 0.6 snapshot using the following Maven pom: com.aragost.javahg javahg 0.6-SNAPSHOT