A simple (clone only) Mercurial client in pure Java?
There are somewhat recurring que开发者_JS百科stions about whether there's a pure Java Mercurial client available (or whether is it possible to run Mercurial in a Javafied Python environment, such as Jython. Googling around, nothing recent is found and it seems that Jython is not able to support Mercurial on the whole.
But I have a tightly focused requirement: to only perform an hg clone (from scratch). Maybe this relaxed constraint makes it possible to solve the problem. Does anybody knows about it?
My problem is that the operation must be performed from a webapp running in a virtualized host where there's no hg support. I have other choices (such as downloading the files by browsing the web access that most forces offer), but of course a direct integration would be preferred.
Thanks.
There's Hg4J. Their most recent version 0.1.0 (as of July 21) doesn't seem to support clone, but it seems possible according to their sources. So maybe try an unofficial build.
Personally I would too go with downloading an archive that hgweb offers.
精彩评论