176 """ |
176 """ |
177 self.versionStr = ".".join([str(v) for v in pysvn.svn_version[:-1]]) |
177 self.versionStr = ".".join([str(v) for v in pysvn.svn_version[:-1]]) |
178 self.version = pysvn.svn_version[:-1] |
178 self.version = pysvn.svn_version[:-1] |
179 return True, "" |
179 return True, "" |
180 |
180 |
181 def vcsInit(self, vcsDir, noDialog=False): # noqa: U100 |
181 def vcsInit(self, vcsDir, noDialog=False): # noqa: U-100 |
182 """ |
182 """ |
183 Public method used to initialize the subversion repository. |
183 Public method used to initialize the subversion repository. |
184 |
184 |
185 The subversion repository has to be initialized from outside eric |
185 The subversion repository has to be initialized from outside eric |
186 because the respective command always works locally. Therefore we |
186 because the respective command always works locally. Therefore we |
260 shutil.rmtree(tmpProjectDir, ignore_errors=True) |
260 shutil.rmtree(tmpProjectDir, ignore_errors=True) |
261 project.closeProject(noSave=True) |
261 project.closeProject(noSave=True) |
262 project.openProject(pfn) |
262 project.openProject(pfn) |
263 |
263 |
264 def vcsImport( |
264 def vcsImport( |
265 self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U100 |
265 self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U-100 |
266 ): |
266 ): |
267 """ |
267 """ |
268 Public method used to import the project into the Subversion |
268 Public method used to import the project into the Subversion |
269 repository. |
269 repository. |
270 |
270 |
947 dlg.showError(e.args[0]) |
947 dlg.showError(e.args[0]) |
948 dlg.finish() |
948 dlg.finish() |
949 dlg.exec() |
949 dlg.exec() |
950 os.chdir(cwd) |
950 os.chdir(cwd) |
951 |
951 |
952 def vcsRemove(self, name, project=False, noDialog=False): # noqa: U100 |
952 def vcsRemove(self, name, project=False, noDialog=False): # noqa: U-100 |
953 """ |
953 """ |
954 Public method used to remove a file/directory from the Subversion |
954 Public method used to remove a file/directory from the Subversion |
955 repository. |
955 repository. |
956 |
956 |
957 The default operation is to remove the local copy as well. |
957 The default operation is to remove the local copy as well. |
1602 if self.__wcng: |
1602 if self.__wcng: |
1603 return self.__vcsAllRegisteredStates_wcng(names, dname, shortcut) |
1603 return self.__vcsAllRegisteredStates_wcng(names, dname, shortcut) |
1604 else: |
1604 else: |
1605 return self.__vcsAllRegisteredStates_wc(names, dname, shortcut) |
1605 return self.__vcsAllRegisteredStates_wc(names, dname, shortcut) |
1606 |
1606 |
1607 def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True): # noqa: U100 |
1607 def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True): # noqa: U-100 |
1608 """ |
1608 """ |
1609 Private method used to get the registered states of a number of files |
1609 Private method used to get the registered states of a number of files |
1610 in the vcs. |
1610 in the vcs. |
1611 |
1611 |
1612 This is the variant for subversion installations using the new working |
1612 This is the variant for subversion installations using the new working |
1860 res = dia.startProcess(args, wd) |
1860 res = dia.startProcess(args, wd) |
1861 if res: |
1861 if res: |
1862 dia.exec() |
1862 dia.exec() |
1863 |
1863 |
1864 def vcsOptionsDialog( |
1864 def vcsOptionsDialog( |
1865 self, project, _archive, editable=False, parent=None # noqa: U100 |
1865 self, project, _archive, editable=False, parent=None # noqa: U-100 |
1866 ): |
1866 ): |
1867 """ |
1867 """ |
1868 Public method to get a dialog to enter repository info. |
1868 Public method to get a dialog to enter repository info. |
1869 |
1869 |
1870 @param project reference to the project object |
1870 @param project reference to the project object |