Plugins/VcsPlugins/vcsMercurial/FetchExtension/fetch.py

changeset 1087
fb8cd56819a9
parent 1067
1a6dd77e6413
child 1249
77f836a883c1
equal deleted inserted replaced
1086:b48ce064b224 1087:fb8cd56819a9
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

eric ide

mercurial