[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Java Question

From: Daniel Rall <dlr_at_collab.net>
Date: 2006-08-01 19:59:31 CEST

On Mon, 31 Jul 2006, Mark Phippard wrote:

> JavaHL does not allow you to write files without a working copy, unless
> you count import. It can run log, info, cat and ls directly. Also, copy,
> move, delete.
>
> I did not realize that Subversion even let you do a commit with a working
> copy. Can it commit a change that way? One thing I would like to do in
> Subclipse with JavaHL is several repository actions in one commit. Such
> as create many directories with one commit, or move many files.

It can. The hoops to jump through involve writing delta editor
callbacks, doing validation on the state of the repository, and --
most importantly, and where most of the work is -- driving the delta
editor to apply your changes to the repository.

Here's an example (in C):

  http://svn.collab.net/repos/svn/trunk/tools/examples/svnput.c

(Also cited as examples by cmpilato and rooneg are: 'svn import', 'svn
copy URL URL', 'svn mkdir URL', 'svn delete URL', etc.)

Dan Pozmanter responded to Mark:

> You can do all of these with the c api, as well as with the mildly higher level
> bindings for python, perl and ruby. It is especially nifty being
> able to do a bunch of operations at once...
...

Can you describe exactly what you'd like the API to look like, and
provide pointers to how this looks in the other binding APIs
(e.g. Ruby, Python, etc.)?

And in another message on Mon, 31 Jul 2006, Dan Pozmanter wrote:

> :) So, how's about add and commit?

I might be able to put something together.
 
...
> Are there any plans to implement the repository, core, or fs api's in java?

As Mark mentioned, implementation of these APIs will be need-driven.
Personally, I'm definitely interested in seeing such bindings emerge,
and would certainly be willing to help anyone interested in writing
some patches.

  • application/pgp-signature attachment: stored
Received on Tue Aug 1 20:01:10 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.