Plugins/VcsPlugins/vcsMercurial/TransplantExtension/transplant.py

changeset 1087
fb8cd56819a9
parent 1078
aeee8401e2ce
child 1091
de098acb7ad2
equal deleted inserted replaced
1086:b48ce064b224 1087:fb8cd56819a9
7 Module implementing the transplant extension interface. 7 Module implementing the transplant 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 .TransplantDialog import TransplantDialog 17 from .TransplantDialog import TransplantDialog
18 18
19 19
20 class Transplant(QObject): 20 class Transplant(HgExtension):
21 """ 21 """
22 Class implementing the transplant extension interface. 22 Class implementing the transplant 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 transplant interface.
37 """
38 pass
39 31
40 def hgTransplant(self, path): 32 def hgTransplant(self, path):
41 """ 33 """
42 Public method to transplant changesets from another branch. 34 Public method to transplant changesets from another branch.
43 35

eric ide

mercurial