186 else: |
186 else: |
187 errMsg = self.tr("Could not start the svn executable.") |
187 errMsg = self.tr("Could not start the svn executable.") |
188 |
188 |
189 return False, errMsg |
189 return False, errMsg |
190 |
190 |
191 def vcsInit(self, vcsDir, noDialog=False): # noqa: U100 |
191 def vcsInit(self, vcsDir, noDialog=False): # noqa: U-100 |
192 """ |
192 """ |
193 Public method used to initialize the subversion repository. |
193 Public method used to initialize the subversion repository. |
194 |
194 |
195 The subversion repository has to be initialized from outside eric |
195 The subversion repository has to be initialized from outside eric |
196 because the respective command always works locally. Therefore we |
196 because the respective command always works locally. Therefore we |
270 shutil.rmtree(tmpProjectDir, ignore_errors=True) |
270 shutil.rmtree(tmpProjectDir, ignore_errors=True) |
271 project.closeProject(noSave=True) |
271 project.closeProject(noSave=True) |
272 project.openProject(pfn) |
272 project.openProject(pfn) |
273 |
273 |
274 def vcsImport( |
274 def vcsImport( |
275 self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U100 |
275 self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U-100 |
276 ): |
276 ): |
277 """ |
277 """ |
278 Public method used to import the project into the Subversion |
278 Public method used to import the project into the Subversion |
279 repository. |
279 repository. |
280 |
280 |
871 ) |
871 ) |
872 res = dia.startProcess(args, dname) |
872 res = dia.startProcess(args, dname) |
873 if res: |
873 if res: |
874 dia.exec() |
874 dia.exec() |
875 |
875 |
876 def vcsRemove(self, name, project=False, noDialog=False): # noqa: U100 |
876 def vcsRemove(self, name, project=False, noDialog=False): # noqa: U-100 |
877 """ |
877 """ |
878 Public method used to remove a file/directory from the Subversion |
878 Public method used to remove a file/directory from the Subversion |
879 repository. |
879 repository. |
880 |
880 |
881 The default operation is to remove the local copy as well. |
881 The default operation is to remove the local copy as well. |
1667 res = dia.startProcess(args, wd) |
1667 res = dia.startProcess(args, wd) |
1668 if res: |
1668 if res: |
1669 dia.exec() |
1669 dia.exec() |
1670 |
1670 |
1671 def vcsOptionsDialog( |
1671 def vcsOptionsDialog( |
1672 self, project, _archive, editable=False, parent=None # noqa: U100 |
1672 self, project, _archive, editable=False, parent=None # noqa: U-100 |
1673 ): |
1673 ): |
1674 """ |
1674 """ |
1675 Public method to get a dialog to enter repository info. |
1675 Public method to get a dialog to enter repository info. |
1676 |
1676 |
1677 @param project reference to the project object |
1677 @param project reference to the project object |