7 Module implementing the fetch extension interface. |
7 Module implementing the fetch extension interface. |
8 """ |
8 """ |
9 |
9 |
10 import os |
10 import os |
11 |
11 |
12 from PyQt4.QtCore import QObject |
|
13 from PyQt4.QtGui import QDialog |
12 from PyQt4.QtGui import QDialog |
14 |
13 |
|
14 from ..HgExtension import HgExtension |
15 from ..HgDialog import HgDialog |
15 from ..HgDialog import HgDialog |
16 |
16 |
17 from .HgFetchDialog import HgFetchDialog |
17 from .HgFetchDialog import HgFetchDialog |
18 |
18 |
19 |
19 |
20 class Fetch(QObject): |
20 class Fetch(HgExtension): |
21 """ |
21 """ |
22 Class implementing the fetch extension interface. |
22 Class implementing the fetch extension interface. |
23 """ |
23 """ |
24 def __init__(self, vcs): |
24 def __init__(self, vcs): |
25 """ |
25 """ |
26 Constructor |
26 Constructor |
27 |
27 |
28 @param vcs reference to the Mercurial vcs object |
28 @param vcs reference to the Mercurial vcs object |
29 """ |
29 """ |
30 QObject.__init__(self, vcs) |
30 super().__init__(vcs) |
31 |
|
32 self.vcs = vcs |
|
33 |
|
34 def shutdown(self): |
|
35 """ |
|
36 Public method used to shutdown the fetch interface. |
|
37 """ |
|
38 pass |
|
39 |
31 |
40 def hgFetch(self, name): |
32 def hgFetch(self, name): |
41 """ |
33 """ |
42 Public method to fetch changes from a remote repository. |
34 Public method to fetch changes from a remote repository. |
43 |
35 |