eric6/Plugins/PluginVcsSubversion.py

changeset 8240
93b8a353c4bf
parent 8218
7c09585bd960
equal deleted inserted replaced
8239:59a9a658618c 8240:93b8a353c4bf
6 """ 6 """
7 Module implementing the Subversion version control plugin. 7 Module implementing the Subversion version control plugin.
8 """ 8 """
9 9
10 import os 10 import os
11 import contextlib
11 12
12 from PyQt5.QtCore import QObject, QCoreApplication 13 from PyQt5.QtCore import QObject, QCoreApplication
13 14
14 from E5Gui.E5Application import e5App 15 from E5Gui.E5Application import e5App
15 16
164 "CommitMessages": 20, 165 "CommitMessages": 20,
165 } 166 }
166 167
167 from VcsPlugins.vcsSubversion.ProjectHelper import SvnProjectHelper 168 from VcsPlugins.vcsSubversion.ProjectHelper import SvnProjectHelper
168 self.__projectHelperObject = SvnProjectHelper(None, None) 169 self.__projectHelperObject = SvnProjectHelper(None, None)
169 try: 170 with contextlib.suppress(KeyError):
170 e5App().registerPluginObject( 171 e5App().registerPluginObject(
171 pluginTypename, self.__projectHelperObject, pluginType) 172 pluginTypename, self.__projectHelperObject, pluginType)
172 except KeyError:
173 pass # ignore duplicate registration
174 readShortcuts(pluginName=pluginTypename) 173 readShortcuts(pluginName=pluginTypename)
175 174
176 def getProjectHelper(self): 175 def getProjectHelper(self):
177 """ 176 """
178 Public method to get a reference to the project helper object. 177 Public method to get a reference to the project helper object.

eric ide

mercurial