TSQL - TortoiseSVN from the command line and "IF ERRORLEVEL"?

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.

I've got a command-line entry for TortoiseSVN to automatically update the local copy of my repository like so:

tortoiseproc /command:update /path:"C:/SVN/My Code/Dev/2009.07.23" /closeonend:3

According to the documentation, the /closeonend:3 option will leave the TortoiseSVN dialog box open if any errors, conflicts or merges occur during the update.

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.

When the TortoiseSVN dialog box is closed in the case of an error, conflict, or merge following an update, will the ERRORLEVEL be set to some nonzero value, enabling me to bypass the rest of the batch file? Or will it happily return 0 to indicate it did its job successfully even if the code isn't quite right?

This question and answers originated from www.stackoverflow.com
Question by (7/23/2009 9:12:29 PM)

Answer

I ended up just manually updating my local SVN repository prior to performing the other actions in the batch file.

Answer by

Find More Answers
Related Topics  tsql  batch-file  tortoisesvn  errorlevel
Related Questions
  • ERRORLEVEL inside IF

    Just stumbled into a weird thing with %ERRORLEVEL% and wanted to see if anyone knows why and if there's a way to fix it. Essentially, it seems as if commands executed inside if statements don't set …
  • Windows batch-file errorlevel question

    I've got a batch file that parses a bunch of file names out of a text file and concatenates them into a single strong - it was previously discussed here . However, I don't want the string to contain…
  • Getting the current Revision number on command line via TortoiseSVN

    I'm trying to write a batch file in which I need the HEAD revision of the project I am working on. Is there a command to get this from the command line? I am on a Windows XP Machine. EDIT …
  • Batch ERRORLEVEL results different from CMD?

    Why does ERRORLEVEL behave differently in these two circumstances? From the command line: Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. C:\>aescrypt.exe -…
  • Why does makensis.exe return errorlevel 1 even though it worked?

    I have a NSIS script that works. It compiles, the produced installer works fine. And yet, makensis.exe returns 1 instead of 0. This is a real pain because I use it in a continuous integration setup …
  • Clearing TortoiseSVN authentication cache from the command line

    TortoiseSVN is nice for the most part, but one thing that blows in a team development situation where more than one person is using a particular PC is the authentication. When I'm working on stuff, …
  • Create event with the batch files

    Here's what i want to achieve. We have this email archive database which we optimize on a weekly basis . At the moment we are manually logging in run the command and monitor the status. The optimiza…
  • How to set ERRORLEVEL in SSIS?

    I have a batch file that runs an SSIS job. I have no knowledge of how the SSIS job runs, I took over a project involving it. The batch file uses %ERRORLEVEL% to detect errors that occur within t…
  • TortoiseSVN command line diff

    The command I'm using is: TortoiseProc /command:diff /path:myfile.txt It will open up the diff TortoiseSVN window, but it will only compare the working copy with the HEAD copy. What I want is…
  • Calling Tortoise from command line and build if new code (how to know if tortoise updated anything)?

    I am writing a batch file which is supposed to update the source files from tortoise and - if anything new was gotten - build the solution. Should be a very simple task. My batchfile looks like t…