Christopher, The problem is not with your perl code. Apparently, update returns success if you give it a path that does not exist in the current working directory.
Ø svn update foobar At revision 3158. Ø echo $? 0 For Svn 1.6.15, anyway. Seems to hold for linux & windows. -Steve From: Hahn, Christopher (SAN DIEGO) Sent: Monday, May 23, 2011 11:34 AM To: users@subversion.apache.org Subject: SVN question 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@01CAF080.AD65F1E0] Christopher Hahn The Dude Software Production Engineering R&D Services, Hewlett-Packard Phone: 858-655-4096 Cell: 619-630-9791 ch...@hp.com<mailto:christopher.h...@hp.com> Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx> ________________________________
<<inline: image001.png>>