You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Victor Hadianto <vi...@synop.com> on 2004/12/14 00:03:28 UTC

Email commit log in Windows.

Hi,

Our Subversion repository is hosted in a Windows box with FSFS. Does
anyone have an email commit log script in Windows? I tried to look for
one and I found only *nix based scripts.

Thanks,

Victor Hadianto


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


php email commit scripts

Posted by alistair <me...@alistair.com.au>.
Rainer,

At the moment my PHP scripts are just of a proof-of-concept .. ie I just 
got the .bat files to fire correctly and in the process of porting 
post-commit.pl to a php script. I am happy to share my files once I get 
them to a working (but not necessarily full featured) state.

Cheers
Alistair

Rainer Müller wrote:

> Can you make your php scripts available to the public? I'm also using 
> PHP CLI for some operations (but not yet for hook-scripts), so I'm 
> interested in this.
>
> Rainer
>
>
> ---------------------------------------------------------------------
> 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

Re: Email commit log in Windows.

Posted by Rainer Müller <mu...@gmx.de>.
alistair wrote:
> 
>> Have you tried outputting some text to a known location?
> 
> I was trying to output to a know location .. alas I hadn't factored in 
> the empty environment. Your example worked so I adjusted my bat file 
> accordingly (including feeding the full php script path to the php.exe) 
> & it all works now .. thanks for you help.
> 
> Now just got to get PHP to return diffs etc etc...

Can you make your php scripts available to the public? I'm also using 
PHP CLI for some operations (but not yet for hook-scripts), so I'm 
interested in this.

Rainer


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

Re: Email commit log in Windows.

Posted by alistair <me...@alistair.com.au>.
> Have you tried outputting some text to a known location? 
>
I was trying to output to a know location .. alas I hadn't factored in 
the empty environment. Your example worked so I adjusted my bat file 
accordingly (including feeding the full php script path to the php.exe) 
& it all works now .. thanks for you help.

Now just got to get PHP to return diffs etc etc...

Cheers
Alistair

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

Re: Email commit log in Windows.

Posted by John Szakmeister <jo...@szakmeister.net>.
alistair wrote:
> I have a rough one that uses command line php rather than python.
> 
> Problem is I can't get SVN to fire up post-commit.bat :-S

Are you sure?  post-commit.bat fires just fine on my Windows box.  Have
you tried outputting some text to a known location?  I generally try
something like the following just to make sure I've set up everything
correctly:

echo post-commit hook script fired for %1 > c:\post-commit.log

In general, you should assume that you don't know the directory the
script is going to be executed in, and you should assume an empty
environment.  So you may need to adjust your hook script accordingly
(i.e., cd to a particular directory, and possibly set up an appropriate
path and other environment variables that you might need).

-John


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

Re: Email commit log in Windows.

Posted by alistair <me...@alistair.com.au>.
I have a rough one that uses command line php rather than python.

Problem is I can't get SVN to fire up post-commit.bat :-S

Alistair

Victor Hadianto wrote:

>Hi,
>
>Our Subversion repository is hosted in a Windows box with FSFS. Does
>anyone have an email commit log script in Windows? I tried to look for
>one and I found only *nix based scripts.
>
>
>  
>


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

Re: Email commit log in Windows.

Posted by John Szakmeister <jo...@szakmeister.net>.
Victor Hadianto wrote:
> Hi,
> 
> Our Subversion repository is hosted in a Windows box with FSFS. Does
> anyone have an email commit log script in Windows? I tried to look for
> one and I found only *nix based scripts.

I assume you're talking about a post-commit hook to email information
about the commit, including the log message.  If so, then take a look at
the following:

http://svn.collab.net/repos/svn/trunk/tools/hook-scripts/mailer/

You'll need Python and the Subversion Python bindings for Windows as
well.  You can get the latter from here:

http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91

-John

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