Plugins/VcsPlugins/vcsMercurial/PurgeExtension/purge.py

changeset 1087
fb8cd56819a9
parent 1071
ac0f74c0b870
child 1249
77f836a883c1
equal deleted inserted replaced
1086:b48ce064b224 1087:fb8cd56819a9
7 Module implementing the purge extension interface. 7 Module implementing the purge extension interface.
8 """ 8 """
9 9
10 import os 10 import os
11 11
12 from PyQt4.QtCore import QObject, QProcess 12 from PyQt4.QtCore import QProcess
13 from PyQt4.QtGui import QDialog 13 from PyQt4.QtGui import QDialog
14 14
15 from ..HgExtension import HgExtension
15 from ..HgDialog import HgDialog 16 from ..HgDialog import HgDialog
16 17
17 from .HgPurgeListDialog import HgPurgeListDialog 18 from .HgPurgeListDialog import HgPurgeListDialog
18 19
19 from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog 20 from UI.DeleteFilesConfirmationDialog import DeleteFilesConfirmationDialog
20 21
21 import Preferences 22 import Preferences
22 23
23 24
24 class Purge(QObject): 25 class Purge(HgExtension):
25 """ 26 """
26 Class implementing the purge extension interface. 27 Class implementing the purge extension interface.
27 """ 28 """
28 def __init__(self, vcs): 29 def __init__(self, vcs):
29 """ 30 """
30 Constructor 31 Constructor
31 32
32 @param vcs reference to the Mercurial vcs object 33 @param vcs reference to the Mercurial vcs object
33 """ 34 """
34 QObject.__init__(self, vcs) 35 super().__init__(vcs)
35
36 self.vcs = vcs
37 36
38 self.purgeListDialog = None 37 self.purgeListDialog = None
39 38
40 def shutdown(self): 39 def shutdown(self):
41 """ 40 """

eric ide

mercurial