Plugins/VcsPlugins/vcsMercurial/hg.py

changeset 1088
9c84b88cff09
parent 1085
ef6102d5fefe
child 1093
47bc4ef30315
equal deleted inserted replaced
1087:fb8cd56819a9 1088:9c84b88cff09
62 class Hg(VersionControl): 62 class Hg(VersionControl):
63 """ 63 """
64 Class implementing the version control systems interface to Mercurial. 64 Class implementing the version control systems interface to Mercurial.
65 65
66 @signal committed() emitted after the commit action has completed 66 @signal committed() emitted after the commit action has completed
67 @signal activeExtensionsChanged() emitted when the list of active extensions
68 has changed
67 """ 69 """
68 committed = pyqtSignal() 70 committed = pyqtSignal()
71 activeExtensionsChanged = pyqtSignal()
69 72
70 def __init__(self, plugin, parent=None, name=None): 73 def __init__(self, plugin, parent=None, name=None):
71 """ 74 """
72 Constructor 75 Constructor
73 76
2251 2254
2252 def __getExtensionsInfo(self): 2255 def __getExtensionsInfo(self):
2253 """ 2256 """
2254 Private method to get the active extensions from Mercurial. 2257 Private method to get the active extensions from Mercurial.
2255 """ 2258 """
2259 activeExtensions = sorted(self.__activeExtensions)
2256 self.__activeExtensions = [] 2260 self.__activeExtensions = []
2257 2261
2258 process = QProcess() 2262 process = QProcess()
2259 args = [] 2263 args = []
2260 args.append('showconfig') 2264 args.append('showconfig')
2271 self.__activeExtensions.append(extensionName) 2275 self.__activeExtensions.append(extensionName)
2272 2276
2273 if self.versionStr >= "1.8": 2277 if self.versionStr >= "1.8":
2274 if "bookmarks" not in self.__activeExtensions: 2278 if "bookmarks" not in self.__activeExtensions:
2275 self.__activeExtensions.append("bookmarks") 2279 self.__activeExtensions.append("bookmarks")
2280
2281 if activeExtensions != sorted(self.__activeExtensions):
2282 self.activeExtensionsChanged.emit()
2276 2283
2277 def isExtensionActive(self, extensionName): 2284 def isExtensionActive(self, extensionName):
2278 """ 2285 """
2279 Public method to check, if an extension is active. 2286 Public method to check, if an extension is active.
2280 2287

eric ide

mercurial