13 class HgExtension(QObject): |
13 class HgExtension(QObject): |
14 """ |
14 """ |
15 Class implementing the base class for Mercurial extension interfaces. |
15 Class implementing the base class for Mercurial extension interfaces. |
16 """ |
16 """ |
17 |
17 |
18 def __init__(self, vcs): |
18 def __init__(self, vcs, ui=None): |
19 """ |
19 """ |
20 Constructor |
20 Constructor |
21 |
21 |
22 @param vcs reference to the Mercurial vcs object |
22 @param vcs reference to the Mercurial vcs object |
23 @type Hg |
23 @type Hg |
|
24 @param ui reference to a UI widget (defaults to None) |
|
25 @type QWidget |
24 """ |
26 """ |
25 super().__init__(vcs) |
27 super().__init__(vcs) |
26 |
28 |
27 self.vcs = vcs |
29 self.vcs = vcs |
|
30 self.ui = ui |
28 |
31 |
29 def shutdown(self): |
32 def shutdown(self): |
30 """ |
33 """ |
31 Public method used to shutdown the extension interface. |
34 Public method used to shutdown the extension interface. |
32 |
35 |