tsql - TortoiseSVN from the command line and "IF ERRORLEVEL"? -
I have a batch file that I'm running from a Windows XP W / Service Pack 3 workstation that changes the SQL database Implementing SQL in SQL 2005 using sqlcmd.exe
I have received a command line entry for TortoiseSVN to automatically update the local copy of my repository:
<, According to If this happens, and the user closes the dialog without solving the problem, they may possibly skip the changes that we want to apply to the test database of a given branch. When the TortoiseSVN dialog box is closed in case of an error, conflict or merge after an update, then ERRORLEVEL on some nonzero values Be set up, so that the BP batch files the rest of the asses? The old question is, but today I faced a single thing and there is a solution ... Turtleprocel on error and -1 on success, so the following solution is the problem for me:
/ code: update / path: "c: / svn / my code / dev / 2009.07.23" / Closeonend: / Closeonend: 3 option will discontinue the TortisSVN dialog box if there is any error, conflict, or merger during the update.
Turtle / path: "% targetdir%" / command: update / close: 3 if% ERRORLEVEL% NEQ 0 goto SvnError: SvnSuccess echo it worked! Goto was done: SvnError echo it did not work! : Done
Comments
Post a Comment