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

svnversion does not output to stdout

From: Brandon Bonds <bondsbw_at_hotmail.com>
Date: Thu, 5 Sep 2013 13:07:13 -0700 (PDT)

Running the build of svnversion which is installed with TortoiseSVN does not send output to stdout. As a result, build tools such as msbuild cannot read the Subversion revision number.

This can be reproduced by the following PowerShell script (arguments need to be changed for your system):

#-----begin script----#

$pinfo = New-Object System.Diagnostics.ProcessStartInfo
$pinfo.FileName = "C:\Program Files\TortoiseSVN\bin\svnversion.exe"
$pinfo.Arguments = "--no-newline `"C:/svn/tortoisesvn`""
$pinfo.RedirectStandardError = $true
$pinfo.RedirectStandardOutput = $true
$pinfo.UseShellExecute = $false
$p = New-Object System.Diagnostics.Process
$p.StartInfo = $pinfo
$p.Start() | Out-Null
$p.WaitForExit()
$stderr = $p.StandardError.ReadToEnd()
$stdout = $p.StandardOutput.ReadToEnd()
Write-Host "stdout: $stdout"
Write-Host "stderr: $stderr"
Write-Host "exit code: " + $p.ExitCode

#-----end script----#

No information is sent to stdout. The expected behavior is that the revision number is output to stdout.

Changing the location of svnversion.exe from "C:\Program Files\TortoiseSVN\bin\" to another distribution, for example "C:\Program Files\SlikSVN\bin\", results in the expected behavior.

Thank you for looking into this!

Brandon Bonds

-------------------------

TortoiseSVN 1.8.2, Build 24708 - 64 Bit , 2013/08/27 19:20:39
Subversion 1.8.3, -release
apr 1.4.8
apr-util 1.5.2
serf 1.3.1
OpenSSL 1.0.1e 11 Feb 2013
zlib 1.2.8

Windows 7 x64 Enterprise

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3064024

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-09-05 22:24:08 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.