171 """ |
171 """ |
172 self.versionStr = ".".join([str(v) for v in pysvn.svn_version[:-1]]) |
172 self.versionStr = ".".join([str(v) for v in pysvn.svn_version[:-1]]) |
173 self.version = pysvn.svn_version[:-1] |
173 self.version = pysvn.svn_version[:-1] |
174 return True, "" |
174 return True, "" |
175 |
175 |
176 def vcsInit(self, vcsDir, noDialog=False): |
176 def vcsInit(self, vcsDir, noDialog=False): # noqa: U100 |
177 """ |
177 """ |
178 Public method used to initialize the subversion repository. |
178 Public method used to initialize the subversion repository. |
179 |
179 |
180 The subversion repository has to be initialized from outside eric |
180 The subversion repository has to be initialized from outside eric |
181 because the respective command always works locally. Therefore we |
181 because the respective command always works locally. Therefore we |
251 return |
251 return |
252 shutil.rmtree(tmpProjectDir, True) |
252 shutil.rmtree(tmpProjectDir, True) |
253 project.closeProject(noSave=True) |
253 project.closeProject(noSave=True) |
254 project.openProject(pfn) |
254 project.openProject(pfn) |
255 |
255 |
256 def vcsImport(self, vcsDataDict, projectDir, noDialog=False, addAll=True): |
256 def vcsImport( |
|
257 self, vcsDataDict, projectDir, noDialog=False, addAll=True # noqa: U100 |
|
258 ): |
257 """ |
259 """ |
258 Public method used to import the project into the Subversion |
260 Public method used to import the project into the Subversion |
259 repository. |
261 repository. |
260 |
262 |
261 @param vcsDataDict dictionary of data required for the import |
263 @param vcsDataDict dictionary of data required for the import |
911 dlg.showError(e.args[0]) |
913 dlg.showError(e.args[0]) |
912 dlg.finish() |
914 dlg.finish() |
913 dlg.exec() |
915 dlg.exec() |
914 os.chdir(cwd) |
916 os.chdir(cwd) |
915 |
917 |
916 def vcsRemove(self, name, project=False, noDialog=False): |
918 def vcsRemove(self, name, project=False, noDialog=False): # noqa: U100 |
917 """ |
919 """ |
918 Public method used to remove a file/directory from the Subversion |
920 Public method used to remove a file/directory from the Subversion |
919 repository. |
921 repository. |
920 |
922 |
921 The default operation is to remove the local copy as well. |
923 The default operation is to remove the local copy as well. |
1526 if self.__wcng: |
1528 if self.__wcng: |
1527 return self.__vcsAllRegisteredStates_wcng(names, dname, shortcut) |
1529 return self.__vcsAllRegisteredStates_wcng(names, dname, shortcut) |
1528 else: |
1530 else: |
1529 return self.__vcsAllRegisteredStates_wc(names, dname, shortcut) |
1531 return self.__vcsAllRegisteredStates_wc(names, dname, shortcut) |
1530 |
1532 |
1531 def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True): |
1533 def __vcsAllRegisteredStates_wcng(self, names, dname, shortcut=True): # noqa: U100 |
1532 """ |
1534 """ |
1533 Private method used to get the registered states of a number of files |
1535 Private method used to get the registered states of a number of files |
1534 in the vcs. |
1536 in the vcs. |
1535 |
1537 |
1536 This is the variant for subversion installations using the new working |
1538 This is the variant for subversion installations using the new working |
1687 """ |
1689 """ |
1688 Public method to clear the status cache. |
1690 Public method to clear the status cache. |
1689 """ |
1691 """ |
1690 self.statusCache = {} |
1692 self.statusCache = {} |
1691 |
1693 |
1692 def vcsInitConfig(self, project): |
1694 def vcsInitConfig(self, project): # noqa: U100 |
1693 """ |
1695 """ |
1694 Public method to initialize the VCS configuration. |
1696 Public method to initialize the VCS configuration. |
1695 |
1697 |
1696 This method ensures, that eric specific files and directories are |
1698 This method ensures, that eric specific files and directories are |
1697 ignored. |
1699 ignored. |
1763 dia = SvnProcessDialog(self.tr("Subversion command")) |
1765 dia = SvnProcessDialog(self.tr("Subversion command")) |
1764 res = dia.startProcess(args, wd) |
1766 res = dia.startProcess(args, wd) |
1765 if res: |
1767 if res: |
1766 dia.exec() |
1768 dia.exec() |
1767 |
1769 |
1768 def vcsOptionsDialog(self, project, archive, editable=False, parent=None): |
1770 def vcsOptionsDialog( |
|
1771 self, project, archive, editable=False, parent=None # noqa: U100 |
|
1772 ): |
1769 """ |
1773 """ |
1770 Public method to get a dialog to enter repository info. |
1774 Public method to get a dialog to enter repository info. |
1771 |
1775 |
1772 @param project reference to the project object |
1776 @param project reference to the project object |
1773 @param archive name of the project in the repository (string) |
1777 @param archive name of the project in the repository (string) |