13 |
13 |
14 from PyQt4.QtCore import QProcess, pyqtSignal, QFileInfo |
14 from PyQt4.QtCore import QProcess, pyqtSignal, QFileInfo |
15 from PyQt4.QtGui import QMessageBox, QApplication, QDialog, QInputDialog, QFileDialog |
15 from PyQt4.QtGui import QMessageBox, QApplication, QDialog, QInputDialog, QFileDialog |
16 |
16 |
17 from E5Gui.E5Application import e5App |
17 from E5Gui.E5Application import e5App |
|
18 from E5Gui import E5MessageBox |
18 |
19 |
19 from QScintilla.MiniEditor import MiniEditor |
20 from QScintilla.MiniEditor import MiniEditor |
20 |
21 |
21 from VCS.VersionControl import VersionControl |
22 from VCS.VersionControl import VersionControl |
22 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog |
23 from VCS.RepositoryInfoDialog import VcsRepositoryInfoDialog |
197 @param vcsDataDict dictionary of data required for the conversion |
198 @param vcsDataDict dictionary of data required for the conversion |
198 @param project reference to the project object |
199 @param project reference to the project object |
199 """ |
200 """ |
200 success = self.vcsImport(vcsDataDict, project.ppath)[0] |
201 success = self.vcsImport(vcsDataDict, project.ppath)[0] |
201 if not success: |
202 if not success: |
202 QMessageBox.critical(None, |
203 E5MessageBox.critical(self.__ui, |
203 self.trUtf8("Create project repository"), |
204 self.trUtf8("Create project repository"), |
204 self.trUtf8("""The project repository could not be created.""")) |
205 self.trUtf8("""The project repository could not be created.""")) |
205 else: |
206 else: |
206 pfn = project.pfile |
207 pfn = project.pfile |
207 if not os.path.isfile(pfn): |
208 if not os.path.isfile(pfn): |