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

RE: windows hooks

From: Marc Haesen <Marc.Haesen_at_telindus.be>
Date: 2004-11-02 08:29:02 CET

Hi,

In C it is possible but not straightforward to get the output of a system command. What I am doing is using a python script as a hook and using py2exe to convert the python script to a windows executable. Attached is an example of a pre-commit hook.

Marc

-----Original Message-----
From: Paulo Ruivo [mailto:pruivo@partner.auchan.com]
Sent: Friday, October 29, 2004 08:10 PM
To: users@subversion.tigris.org
Subject: windows hooks

Hi,
My subversion server is running in windows, and I want to make some hooks.
I was thinking in making some executables in c, but I need to call svn
functions
inside the c code. I'm having problems in getting the results of functions
such as
the "svnlook author ...." .
I think the way to call this function is with the function system(command),
but how do I read the result?

Is there a better way to implement the hooks in windows?

Thank you,
Paulo Ruivo

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Received on Wed Nov 3 17:08:55 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.