| 119 | } |
| 120 | |
| 121 | void TestSvnImport::testImportIntoDir() |
| 122 | { |
| 123 | QTemporaryDir reposDir; |
| 124 | VcsLocation reposLoc; |
| 125 | setupLocalRepository( reposDir.path(), reposLoc ); |
| 126 | |
| 127 | QTemporaryDir projectDir; |
| 128 | QString origcontent = QStringLiteral("This is a Test"); |
| 129 | setupSampleProject( projectDir.path(), origcontent ); |
| 130 | |
| 131 | reposLoc.setRepositoryServer( reposLoc.repositoryServer() + '/' + QDir( projectDir.path() ).dirName() ); |
| 132 | VcsJob* job = vcs->import( QStringLiteral("import test"), QUrl::fromLocalFile( projectDir.path() ), reposLoc ); |
| 133 | validatingExecJob(job); |
| 134 | |
| 135 | QTemporaryDir checkoutDir; |
| 136 | validateImport( reposLoc.repositoryServer(), checkoutDir, origcontent ); |
| 137 | } |
| 138 | |
| 139 | void TestSvnImport::validateImport( const QString& repourl, QTemporaryDir& checkoutdir, const QString& origcontent ) |
| 140 | { |
nothing calls this directly
no test coverage detected