PreCommit Hook

View: New views
2 Messages — Rating Filter:   Alert me  

PreCommit Hook

by rajagopal NS :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I would like to do some authorization checking in precommit hook from a database in server.

If I pass the transaction id and repository to a java program, is there any API in SVNKIT which will tell us the repostory paths being committed and the the user id committing the change?

I can get this using svnlook to get the user id and these details and pass the output to my program

Regards
Rajagopal NS

Re: PreCommit Hook

by Alexander Sinyushkin :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Rajagopal,

Refer to SVNLookClient, it provides API similar to the one of the 'svnlook'
tool.

You'll need its doGetChanged(.., String transactionID,..) and
doGetAuthor(..., String transactionID)
methods, I suppose.

----
Alexander Sinyushkin,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!



rajagopal NS wrote:

> I would like to do some authorization checking in precommit hook from a
> database in server.
>
> If I pass the transaction id and repository to a java program, is there any
> API in SVNKIT which will tell us the repostory paths being committed and the
> the user id committing the change?
>
> I can get this using svnlook to get the user id and these details and pass
> the output to my program
>
> Regards
> Rajagopal NS
>  

---------------------------------------------------------------------
To unsubscribe, e-mail: svnkit-users-unsubscribe@...
For additional commands, e-mail: svnkit-users-help@...