Index: trunk/extensions/CodeReview/svnImport.php |
— | — | @@ -33,14 +33,20 @@ |
34 | 34 | } |
35 | 35 | } |
36 | 36 | |
37 | | - $repo = $this->getArg(); |
| 37 | + $startRev = null; |
| 38 | + if ( $this->hasArg( 1 ) ) { |
| 39 | + $startRev = $this->getArg( 1 ); |
| 40 | + } |
| 41 | + |
| 42 | + $repo = $this->getArg( 0 ); |
| 43 | + |
38 | 44 | if ( $repo == "all" ) { |
39 | 45 | $repoList = CodeRepository::getRepoList(); |
40 | 46 | foreach ( $repoList as $repoInfo ) { |
41 | | - $this->importRepo( $repoInfo->getName(), null, $cacheSize ); |
| 47 | + $this->importRepo( $repoInfo->getName(), $startRev, $cacheSize ); |
42 | 48 | } |
43 | 49 | } else { |
44 | | - $this->importRepo( $repo, $this->getArg( 1 ), $cacheSize ); |
| 50 | + $this->importRepo( $repo, $startRev, $cacheSize ); |
45 | 51 | } |
46 | 52 | } |
47 | 53 | |
— | — | @@ -69,6 +75,7 @@ |
70 | 76 | $startTime = microtime( true ); |
71 | 77 | $revCount = 0; |
72 | 78 | $start = ( $start !== null ) ? intval( $start ) : $lastStoredRev + 1; |
| 79 | + |
73 | 80 | /* |
74 | 81 | * FIXME: when importing only a part of a repository, the given path |
75 | 82 | * might not have been created with revision 1. For example, the |