title: TortoiseSVN from the command line and "IF ERRORLEVEL"?
body: <p>I have a batch file I'm running from a Windows XP w/service pack 3 workstation which applies SQL changes to a database using sqlcmd.exe in SQL 2005.</p>
  
  <p>I've got a command-line entry for <strong>TortoiseSVN</strong> to automatically update the local copy of my repository like so:</p>
  
  <pre><code>tortoiseproc /command:update /path:"C:/SVN/My Code/Dev/2009.07.23" /closeonend:3
  </code></pre>
  
  <p>According to <a href="http://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-automation.html" rel="nofollow noreferrer">the documentation</a>, the <strong>/closeonend:3</strong> option will leave the TortoiseSVN dialog box open if any errors, conflicts or merges occur during the update.</p>
  
  <p>If such does occur, and the user closes the dialog without resolving the issues, they could potentially omit changes we want applied to a given branch's test database.</p>
  
  <p>When the TortoiseSVN dialog box is closed in the case of an error, conflict, or merge following an update, will the <strong>ERRORLEVEL</strong> be set to some <em>nonzero</em> value, enabling me to bypass the rest of the batch file?  Or will it happily return <strong>0</strong> to indicate it did its job successfully even if the code isn't quite right?</p>