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

Re: answer redirect to file does not work (svn ... >c:\tempfile.txt)

From: Jean-Marc van Leerdam <j.m.van.leerdam_at_gmail.com>
Date: Fri, 25 Jun 2010 11:02:20 +0200

Hi,

On 25 June 2010 09:44, Artem Reva <artemu78_at_rambler.ru> wrote:
> i try to use svn.exe as child process in my application. So i want to see results in file. But some text never appear in file, alsways in console.
>
> For example:
> C:\>svn commit -m "" c:\SvnSource\ >c:\ttt.txt
>
> Text "Sending        SvnSource\cls\TEO_Teo.xml
> Transmitting file data .." goes to file, but answer from server always goes to console:
> "svn: Commit failed (details follow):
> svn: File '/Cache/SvnSource/cls/TEO_Teo.xml' is out of date"
>
> Why does it happen, how can i make svn write everything in text file ?
>

That is because there are two output streams: 1 standard, 1 error. The
way to also catch the error stream is to add a second redirect: 2>&1

This will connect the error stream (number 2) to the same output as
the standard stream (number 1).

-- 
Regards,
Jean-Marc
--
.       ___
.  @@  // \\      "De Chelonian Mobile"
. (_,\/ \_/ \     TortoiseSVN
.   \ \_/_\_/>    The coolest Interface to (Sub)Version Control
.   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=2625920
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-06-25 11:02:31 CEST

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

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