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

SVN question

From: Hahn, Christopher (SAN DIEGO) <christopher.hahn_at_hp.com>
Date: Mon, 23 May 2011 18:34:29 +0000

Hello,

I have been wondering how best to capture errors from
the SVN command line.

I wanted to show you how a basic test is failing.

Consider the simple code snippet:
==========================================
use strict;
my $options=" --username builduser --password XXXX";

chdir("C:\\source");
my $output = `svn update --depth=infinity mang $options`;

die "svn failed with errorcode $?" if $?;
print "We survived!\n";
==========================================

This command works if the "mang" above is changed to "main"
(which does exist at c:\source).

However, both code have this result:
==========================================
C:\source\cm\script>perl svntest.pl
We survived!

C:\source\cm\script>perl svntest.pl
We survived!
==========================================

What am I doing wrong?

Chris

________________________________

[cid:image001.png_at_01CC193A.444C7240]

Christopher Hahn
The Dude
Software Production Engineering
R&D Services, Hewlett-Packard
Phone: 858-655-4096
Cell: 619-630-9791
chahn_at_hp.com<mailto:christopher.hahn_at_hp.com>

Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>

________________________________

image001.png
Received on 2011-05-23 20:35:43 CEST

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.