Index: trunk/extensions/CodeReview/svnImport.php |
— | — | @@ -33,19 +33,18 @@ |
34 | 34 | } |
35 | 35 | } |
36 | 36 | |
37 | | - $startRev = null; |
38 | | - if ( $this->hasArg( 1 ) ) { |
39 | | - $startRev = $this->getArg( 1 ); |
40 | | - } |
41 | | - |
42 | 37 | $repo = $this->getArg( 0 ); |
43 | 38 | |
44 | 39 | if ( $repo == "all" ) { |
45 | 40 | $repoList = CodeRepository::getRepoList(); |
46 | 41 | foreach ( $repoList as $repoInfo ) { |
47 | | - $this->importRepo( $repoInfo->getName(), $startRev, $cacheSize ); |
| 42 | + $this->importRepo( $repoInfo->getName(), null, $cacheSize ); |
48 | 43 | } |
49 | 44 | } else { |
| 45 | + $startRev = null; |
| 46 | + if ( $this->hasArg( 1 ) ) { |
| 47 | + $startRev = $this->getArg( 1 ); |
| 48 | + } |
50 | 49 | $this->importRepo( $repo, $startRev, $cacheSize ); |
51 | 50 | } |
52 | 51 | } |