Reputation: 7583
I have this batch file to export two files from svn. But it never exports the second file, the output is "Export Complete."
I tried using IF statement and even PAUSE, it seems the command after the first svn export is never executed.
Here is my batch file: (Note that I only export two files, not two trees)
@ECHO off
svn export URL1
svn export URL2
Version:
Subversion 1.6.15,
Win7 32bit
Upvotes: 0
Views: 3737
Reputation: 26766
Have you tried swapping the URLs? Is it still the 2nd that fails? Sorry to suggest the obvious but do you definitely have the correct URL?
Try putting a Start
before each SVN call...
@ECHO OFF
Start svn export URL1
Start svn export URL2
This is equivalent to using Start->Run and typing in the commands. It should give some degree of separation.
Upvotes: 1
Reputation: 45057
Do both of your export
commands work if you enter them manually?
If you place echo
statements after each svn export
command, do you see both of them?
Add the --verbose
option and see if you get any more useful output.
Instead of export
, try svn log
and see if that command behaves the same.
Update: Hmm.. that sounds like the return from the first command is being interpreted as the return from the batch file. Try combining them into one command: command1 && command2
. It's not a pretty solution, but it should work around the problem.
Upvotes: 1