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

Re: Writing java hooks, can I use javahl?

From: Alexander Kitaev <alex_at_tmate.org>
Date: 2006-11-08 01:41:51 CET

Hello Dave,

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.

See:
http://www.nabble.com/Re-2-%3A-Using-JavaSVN-to-print-out-the-file-contents-of-a-current-transaction-tf2502627.html

and also:
http://www.nabble.com/Fwd%3A-Using-JavaSVN-to-print-out-the-file-contents-of-a-current-transaction-tf2496010.html
for the beginning of the discussion.

Alexander Kitaev,
TMate Software,
http://tmate.org/

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:dev@subversion.tigris.org" -- README-HIGH-LEVEL-API.txt )
>
> Thanks in advance for your help
> Dave
>
> ---------- Forwarded message ----------
> From: Joseph Mocker <mock+svn@fakebelieve.org
> <mailto:mock+svn@fakebelieve.org>>
> Date: Nov 6, 2006 2:51 PM
> Subject: Re: Hooks written in Java
> To: Dave_Thomas mailing lists < davelist@peoplemerge.com
> <mailto:davelist@peoplemerge.com>>
> Cc: users@subversion.tigris.org <mailto:users@subversion.tigris.org>
>
> In the source dist I see a folder, subversion/bindings/java which
> appears to be java bindings. The README there says its mature.
>
> --joe
>
> Dave_Thomas mailing lists wrote:
> > Hi all,
> >
> > I'm the only python developer at the company I work, and they'd
> really
> > 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: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 8 01:42:30 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.