Plugins/PluginVcsMercurial.py

changeset 496
ed1e3f654d0b
parent 398
5b5636320dca
child 776
0359a079eb0d
equal deleted inserted replaced
495:b31b0bffa5b0 496:ed1e3f654d0b
7 Module implementing the Mercurial version control plugin. 7 Module implementing the Mercurial version control plugin.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import QObject
12 from PyQt4.QtGui import QApplication 13 from PyQt4.QtGui import QApplication
13 14
14 from E5Gui.E5Application import e5App 15 from E5Gui.E5Application import e5App
15 16
16 import Preferences 17 import Preferences
127 Module function to prepare for an uninstallation. 128 Module function to prepare for an uninstallation.
128 """ 129 """
129 if not e5App().getObject("PluginManager").isPluginLoaded("PluginVcsMercurial"): 130 if not e5App().getObject("PluginManager").isPluginLoaded("PluginVcsMercurial"):
130 Preferences.Prefs.settings.remove("Mercurial") 131 Preferences.Prefs.settings.remove("Mercurial")
131 132
132 class VcsMercurialPlugin(object): 133 class VcsMercurialPlugin(QObject):
133 """ 134 """
134 Class implementing the Mercurial version control plugin. 135 Class implementing the Mercurial version control plugin.
135 """ 136 """
136 def __init__(self, ui): 137 def __init__(self, ui):
137 """ 138 """

eric ide

mercurial