282 os.mkdir(os.path.join(tmpDir, project, 'tags')) |
282 os.mkdir(os.path.join(tmpDir, project, 'tags')) |
283 shutil.copytree( |
283 shutil.copytree( |
284 projectDir, os.path.join(tmpDir, project, 'trunk')) |
284 projectDir, os.path.join(tmpDir, project, 'trunk')) |
285 else: |
285 else: |
286 shutil.copytree(projectDir, os.path.join(tmpDir, project)) |
286 shutil.copytree(projectDir, os.path.join(tmpDir, project)) |
287 except OSError as e: |
287 except OSError: |
288 if os.path.isdir(tmpDir): |
288 if os.path.isdir(tmpDir): |
289 shutil.rmtree(tmpDir, True) |
289 shutil.rmtree(tmpDir, True) |
290 return False, False |
290 return False, False |
291 |
291 |
292 locker = QMutexLocker(self.vcsExecutionMutex) |
292 locker = QMutexLocker(self.vcsExecutionMutex) |