You could write hooks in Java and use JavaSVN in case your repository is
of 'fsfs' type. There recently was a discussion about how to access
transaction information from commit hook using JavaSVN.
for the beginning of the discussion.
Dave_Thomas mailing lists wrote:
> Hi all,
> Given a repository and the name/number of a transaction I need to
> get the following info to write hooks in java:
> * a list of changed paths
> * the log entry of a transaction
> * ability to get a property of a specific path in a transaction
> Note, this is not revision info that I need. This is for a
> 'pre-commit' hook. Any samples would be appreciated.
> (No-whining disclaimer #1: Sorry if this is a duplicate. I tried to
> send mail to this list but I wasn't subscribed. List archives don't
> cover Nov 2006 yet.)
> (No-whining disclaimer #2: I thought this was a user mailing list
> issue but "Please direct discussions of the API to the
> mailto:firstname.lastname@example.org" -- README-HIGH-LEVEL-API.txt )
> Thanks in advance for your help
> ---------- Forwarded message ----------
> From: Joseph Mocker <email@example.com
> Date: Nov 6, 2006 2:51 PM
> Subject: Re: Hooks written in Java
> To: Dave_Thomas mailing lists < firstname.lastname@example.org
> Cc: email@example.com <mailto:firstname.lastname@example.org>
> In the source dist I see a folder, subversion/bindings/java which
> appears to be java bindings. The README there says its mature.
> Dave_Thomas mailing lists wrote:
> > Hi all,
> > I'm the only python developer at the company I work, and they'd
> > appreciate it if I could port the scripts I wrote into Java.
> > Does anyone have sample java hooks I could look at? I saw a mention
> > of using the JavaSVN FSFS and FSRepresentation clases.
> > I know getting Java to run as a trigger is easy: I can simply invoke
> > the JVM and the classes I want from a shell script which will get a
> > return code like the Python equivalent.
> > Alternatively, I could parse the output of `svnlook.`
> > Thanks!
> > Dave
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Wed Nov 8 01:42:30 2006