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

RE: Get Svnlook output from .bat file

From: Bicking, David (HHoldings, IT) <David.Bicking_at_thehartford.com>
Date: 2007-11-20 20:48:40 CET

> -----Original Message-----
> From: Roth, Pierre [mailto:pierre.roth@covidien.com]
> Hi,
>
> But this is not the subject of my email; so here's my
> question : I would like to get the svnlook output.
>
> I tried to write the output to a temp file as described in
> another thread. But now, that log info is in this temp file,
> I can't get it back to my batch, to pass it to my
> trac-pre-commit-hook python script... I tried the
> file:%LOG_FILE% ... Did not work...
>
> Here is my pre-commit.bat hook....

I've not had the pleasure of working with Python (yet), but I did work a
bit with creating a hook script on Windows. In my case, I chose to
create a C# Console app, which works quite well. There must be a way in
Python to capture Console.Out and Console.Err (which is what I do in
C#). Check for that. If that isn't possible (I will be surprised),
then you'll have to look at using file operations to open and read the
file you generate. I will be flabbergasted if Python won't let you do
that!

Good luck!

--
David
*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 20 20:53:18 2007

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.