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

Re: JavaHL bindings - force commit?

From: Mark Phippard <markphip_at_gmail.com>
Date: Thu, 6 Mar 2008 20:00:16 -0500

On Thu, Mar 6, 2008 at 7:57 PM, Davin McCall <davmac_at_deakin.edu.au> wrote:

> Am I missing something or do the JavaHL bindings not allow a forced
> commit? (A commit of a file which is not up-to-date). Is there any way
> to achieve it?

The JavaHL bindings basically expose libsvn_client API to Java. Which
also basically makes it the same as what you can do using the CLI.
This command:

svn ci --force -m "Commit out of date file" FOO

Does not allow you to commit an out of date file. So JavaHL would not
allow it either. In fact, the above command yields this error:

Subcommand 'commit' doesn't accept option '--force'
Type 'svn help commit' for usage.

I do not know if at the lower levers of the Subversion API you can
commit an out of date file, but JavaHL only exposes libsvn_client by
design. That is what makes it a "high level" API. If the low level
Subversion API can do this, then you can probably do it using SVNKit.


Mark Phippard
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-03-07 02:00:29 CET

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