Index: trunk/tools/mwmultiversion/multiversion/checkoutMediaWiki |
— | — | @@ -42,21 +42,22 @@ |
43 | 43 | # Create the destination path to SVN checkout to... |
44 | 44 | $destIP = "$commonHomeDir/$dstVersion"; |
45 | 45 | if ( file_exists( $destIP ) ) { |
46 | | - die( "Cannot checkout, the directory $destIP already exists.\n" ); |
47 | | - } |
48 | | - print "Creating checkout directory $destIP..."; |
49 | | - mkdir( $destIP, 0775 ); |
50 | | - print "done.\n"; |
| 46 | + print "Skipping checkout, the directory $destIP already exists.\n"; |
| 47 | + } else { |
| 48 | + print "Creating checkout directory $destIP..."; |
| 49 | + mkdir( $destIP, 0775 ); |
| 50 | + print "done.\n"; |
51 | 51 | |
52 | | - print "Checking out $source to $destIP...\n"; |
53 | | - # Checkout the SVN directory... |
54 | | - $retval = 1; // error by default? |
55 | | - passthru( "svn checkout $source $destIP", $retval ); |
56 | | - if ( $retval !== 0 ) { |
57 | | - rmdir( $destIP ); // rollback |
58 | | - die( "\nUnable to checkout SVN path.\n" ); |
| 52 | + print "Checking out $source to $destIP...\n"; |
| 53 | + # Checkout the SVN directory... |
| 54 | + $retval = 1; // error by default? |
| 55 | + passthru( "svn checkout $source $destIP", $retval ); |
| 56 | + if ( $retval !== 0 ) { |
| 57 | + rmdir( $destIP ); // rollback |
| 58 | + die( "\nUnable to checkout SVN path.\n" ); |
| 59 | + } |
| 60 | + print "...SVN checkout done.\n"; |
59 | 61 | } |
60 | | - print "...SVN checkout done.\n"; |
61 | 62 | |
62 | 63 | $localSettingsCode = <<<EOT |
63 | 64 | <?php |