10 import os |
10 import os |
11 import contextlib |
11 import contextlib |
12 |
12 |
13 from PyQt6.QtCore import QObject, QCoreApplication |
13 from PyQt6.QtCore import QObject, QCoreApplication |
14 |
14 |
15 from EricWidgets.EricApplication import ericApp |
15 from eric7.EricWidgets.EricApplication import ericApp |
16 |
16 |
17 import Preferences |
17 from eric7 import Preferences, Utilities |
18 from Preferences.Shortcuts import readShortcuts |
18 from eric7.Preferences.Shortcuts import readShortcuts |
19 |
19 |
20 from VcsPlugins.vcsSubversion.SvnUtilities import getConfigPath, getServersPath |
20 from eric7.Plugins.VcsPlugins.vcsSubversion.SvnUtilities import ( |
21 |
21 getConfigPath, |
22 import Utilities |
22 getServersPath, |
23 import UI.Info |
23 ) |
|
24 |
|
25 from eric7.UI import Info |
24 |
26 |
25 # Start-Of-Header |
27 # Start-Of-Header |
26 name = "Subversion Plugin" |
28 name = "Subversion Plugin" |
27 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
29 author = "Detlev Offenbach <detlev@die-offenbachs.de>" |
28 autoactivate = False |
30 autoactivate = False |
29 deactivateable = True |
31 deactivateable = True |
30 version = UI.Info.VersionOnly |
32 version = Info.VersionOnly |
31 pluginType = "version_control" |
33 pluginType = "version_control" |
32 pluginTypename = "Subversion" |
34 pluginTypename = "Subversion" |
33 className = "VcsSubversionPlugin" |
35 className = "VcsSubversionPlugin" |
34 packageName = "__core__" |
36 packageName = "__core__" |
35 shortDescription = "Implements the Subversion version control interface." |
37 shortDescription = "Implements the Subversion version control interface." |
109 |
111 |
110 @param configDlg reference to the configuration dialog (QDialog) |
112 @param configDlg reference to the configuration dialog (QDialog) |
111 @return reference to the configuration page |
113 @return reference to the configuration page |
112 """ |
114 """ |
113 global subversionCfgPluginObject |
115 global subversionCfgPluginObject |
114 from VcsPlugins.vcsSubversion.ConfigurationPage.SubversionPage import SubversionPage |
116 from eric7.Plugins.VcsPlugins.vcsSubversion.ConfigurationPage.SubversionPage import ( |
|
117 # __IGNORE_WARNING__ |
|
118 SubversionPage, |
|
119 ) |
115 |
120 |
116 if subversionCfgPluginObject is None: |
121 if subversionCfgPluginObject is None: |
117 subversionCfgPluginObject = VcsSubversionPlugin(None) |
122 subversionCfgPluginObject = VcsSubversionPlugin(None) |
118 page = SubversionPage(subversionCfgPluginObject) |
123 page = SubversionPage(subversionCfgPluginObject) |
119 return page |
124 return page |
164 self.__subversionDefaults = { |
169 self.__subversionDefaults = { |
165 "StopLogOnCopy": True, |
170 "StopLogOnCopy": True, |
166 "LogLimit": 20, |
171 "LogLimit": 20, |
167 } |
172 } |
168 |
173 |
169 from VcsPlugins.vcsSubversion.ProjectHelper import SvnProjectHelper |
174 from eric7.Plugins.VcsPlugins.vcsSubversion.ProjectHelper import ( |
|
175 SvnProjectHelper, |
|
176 ) |
170 |
177 |
171 self.__projectHelperObject = SvnProjectHelper(None, None) |
178 self.__projectHelperObject = SvnProjectHelper(None, None) |
172 with contextlib.suppress(KeyError): |
179 with contextlib.suppress(KeyError): |
173 ericApp().registerPluginObject( |
180 ericApp().registerPluginObject( |
174 pluginTypename, self.__projectHelperObject, pluginType |
181 pluginTypename, self.__projectHelperObject, pluginType |
199 Public method to activate this plugin. |
206 Public method to activate this plugin. |
200 |
207 |
201 @return tuple of reference to instantiated viewmanager and |
208 @return tuple of reference to instantiated viewmanager and |
202 activation status (boolean) |
209 activation status (boolean) |
203 """ |
210 """ |
204 from VcsPlugins.vcsSubversion.subversion import Subversion |
211 from eric7.Plugins.VcsPlugins.vcsSubversion.subversion import Subversion |
205 |
212 |
206 self.__object = Subversion(self, self.__ui) |
213 self.__object = Subversion(self, self.__ui) |
207 |
214 |
208 tb = self.__ui.getToolbar("vcs")[1] |
215 tb = self.__ui.getToolbar("vcs")[1] |
209 tb.setVisible(False) |
216 tb.setVisible(False) |