Hello Raphael,

> I would like to setup extra hooks on this server, in order to process some
> checks (like validation of xml files upon commit). Do you think this is
> possible for SVNKit ?

You may call java application from hooks (e.g. pre-commit hook), and
use SVNKit, in particular its SVNLookClient to analyze transaction to
be committed. Also, these hooks may actually send transactions to
another Subversion server and let them be installed to the local one
in case remote commit have failed.

> I am considering SVNKit to develop a SVN "proxy" with some extra checks.> I 
> would like to have a local repository on some server and have SVNKit as> the 
> main gateway to this repository. It would enable access to the> repository 
> via the SVN protocol.

SVNKit doesn't implement server-side of the Subversion, it only may
work as a client or directly with repository located on the file
system.

I'd suggest you to split your task into smaller chunks (like
validation, or replaying commit from a pre-commit hook), then try
using SVNLookClient from SVNKit to read from transaction and then in
case you experience problems, we could try to find a solution for some
particular issues.
Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!



On 24 November 2011 16:29, Raphael Jolivet <[email protected]> wrote:
> Hello,
> I am considering SVNKit to develop a SVN "proxy" with some extra checks.
> I would like to have a local repository on some server and have SVNKit as
> the main gateway to this repository. It would enable access to the
> repository via the SVN protocol.
> I would like to setup extra hooks on this server, in order to process some
> checks (like validation of xml files upon commit). Do you think this is
> possible for SVNKit ?
> Do you have any example of how to achieve that ?
> Thanks in advance,
> Raphael

Reply via email to