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

RE: SVNAdmin Verify sends output to stderr

From: <blackhole_at_reality.earth.sol.mway.universe.net>
Date: Tue, 3 Feb 2009 08:27:53 -0800 (PST)

ran into this today myself and noticed your post and an almost identical one a few years back, both without replies.

i have begun dealing with it by folding stderr into the same stream as stdout: msh supports the same hacky syntax that unix shells use: 2>&1 (i guess 2> means redirect stderr and &1 is magic which means stdout).

this has led to messiness in the output stream, well intended, no doubt. :)

e.g. "* Revision 0 verifiziert." expands to:

svnadmin.exe : * Revision 0 verifiziert.
At E:\Svn\maint_scripts\CopySvnHotcopyToLocalAndVerify.ps1:37 char:10
+ svnadmin <<<< verify ${dest} 2>&1 | Out-File ${verifyLog}

but presumably there is magic to deal with this as well. (perhaps it is a side-effect of stderr and stdout being object (rather than character) streams in powershell, and the moment i stringify them naively i get "useful stuff" i might otherwise lose.

cheers,

Tim

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1097516

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-03 17:31:22 CET

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.