src/eric7/Plugins/PluginVcsPySvn.py

branch
eric7
changeset 9482
a2bc06a54d9d
parent 9473
3f23dbf37dbe
child 9653
e67609152c5e
equal deleted inserted replaced
9481:0b936ff1bbb9 9482:a2bc06a54d9d
41 Public method to support the display of some executable info. 41 Public method to support the display of some executable info.
42 42
43 @return dictionary containing the data to be shown 43 @return dictionary containing the data to be shown
44 """ 44 """
45 try: 45 try:
46 import pysvn 46 import pysvn # __IGNORE_WARNING_I10__
47 47
48 try: 48 try:
49 text = os.path.dirname(pysvn.__file__) 49 text = os.path.dirname(pysvn.__file__)
50 except AttributeError: 50 except AttributeError:
51 text = "PySvn" 51 text = "PySvn"
102 Module function to create the configuration page. 102 Module function to create the configuration page.
103 103
104 @param configDlg reference to the configuration dialog (QDialog) 104 @param configDlg reference to the configuration dialog (QDialog)
105 @return reference to the configuration page 105 @return reference to the configuration page
106 """ 106 """
107 global subversionCfgPluginObject
108 from eric7.Plugins.VcsPlugins.vcsPySvn.ConfigurationPage.SubversionPage import ( 107 from eric7.Plugins.VcsPlugins.vcsPySvn.ConfigurationPage.SubversionPage import (
109 SubversionPage, 108 SubversionPage,
110 ) 109 )
110
111 global subversionCfgPluginObject
111 112
112 if subversionCfgPluginObject is None: 113 if subversionCfgPluginObject is None:
113 subversionCfgPluginObject = VcsPySvnPlugin(None) 114 subversionCfgPluginObject = VcsPySvnPlugin(None)
114 page = SubversionPage(subversionCfgPluginObject) 115 page = SubversionPage(subversionCfgPluginObject)
115 return page 116 return page
152 """ 153 """
153 Constructor 154 Constructor
154 155
155 @param ui reference to the user interface object (UI.UserInterface) 156 @param ui reference to the user interface object (UI.UserInterface)
156 """ 157 """
158 from eric7.Plugins.VcsPlugins.vcsPySvn.ProjectHelper import PySvnProjectHelper
159
157 super().__init__(ui) 160 super().__init__(ui)
158 self.__ui = ui 161 self.__ui = ui
159 162
160 self.__subversionDefaults = { 163 self.__subversionDefaults = {
161 "StopLogOnCopy": 1, 164 "StopLogOnCopy": 1,
162 "LogLimit": 20, 165 "LogLimit": 20,
163 } 166 }
164
165 from eric7.Plugins.VcsPlugins.vcsPySvn.ProjectHelper import PySvnProjectHelper
166 167
167 self.__projectHelperObject = PySvnProjectHelper(None, None) 168 self.__projectHelperObject = PySvnProjectHelper(None, None)
168 with contextlib.suppress(KeyError): 169 with contextlib.suppress(KeyError):
169 ericApp().registerPluginObject( 170 ericApp().registerPluginObject(
170 pluginTypename, self.__projectHelperObject, pluginType 171 pluginTypename, self.__projectHelperObject, pluginType

eric ide

mercurial