45 """<li>unknown files (marked with "not tracked" in the status""" |
45 """<li>unknown files (marked with "not tracked" in the status""" |
46 """ dialog)</li>""" |
46 """ dialog)</li>""" |
47 """<li>empty directories</li>""" |
47 """<li>empty directories</li>""" |
48 """</ul>Note that ignored files will be left untouched.</p>""" |
48 """</ul>Note that ignored files will be left untouched.</p>""" |
49 )) |
49 )) |
50 self.hgPurgeAct.triggered[()].connect(self.__hgPurge) |
50 self.hgPurgeAct.triggered.connect(self.__hgPurge) |
51 self.actions.append(self.hgPurgeAct) |
51 self.actions.append(self.hgPurgeAct) |
52 |
52 |
53 self.hgPurgeAllAct = E5Action( |
53 self.hgPurgeAllAct = E5Action( |
54 self.tr('Purge All Files'), |
54 self.tr('Purge All Files'), |
55 self.tr('Purge All Files'), |
55 self.tr('Purge All Files'), |
66 """ dialog)</li>""" |
66 """ dialog)</li>""" |
67 """<li>empty directories</li>""" |
67 """<li>empty directories</li>""" |
68 """<li>ignored files and directories</li>""" |
68 """<li>ignored files and directories</li>""" |
69 """</ul></p>""" |
69 """</ul></p>""" |
70 )) |
70 )) |
71 self.hgPurgeAllAct.triggered[()].connect(self.__hgPurgeAll) |
71 self.hgPurgeAllAct.triggered.connect(self.__hgPurgeAll) |
72 self.actions.append(self.hgPurgeAllAct) |
72 self.actions.append(self.hgPurgeAllAct) |
73 |
73 |
74 self.hgPurgeListAct = E5Action( |
74 self.hgPurgeListAct = E5Action( |
75 self.tr('List Files to be Purged'), |
75 self.tr('List Files to be Purged'), |
76 UI.PixmapCache.getIcon("fileDeleteList.png"), |
76 UI.PixmapCache.getIcon("fileDeleteList.png"), |
82 self.hgPurgeListAct.setWhatsThis(self.tr( |
82 self.hgPurgeListAct.setWhatsThis(self.tr( |
83 """<b>List Files to be Purged</b>""" |
83 """<b>List Files to be Purged</b>""" |
84 """<p>This lists files and directories not known to Mercurial.""" |
84 """<p>This lists files and directories not known to Mercurial.""" |
85 """ These would be deleted by the "Purge Files" menu entry.</p>""" |
85 """ These would be deleted by the "Purge Files" menu entry.</p>""" |
86 )) |
86 )) |
87 self.hgPurgeListAct.triggered[()].connect(self.__hgPurgeList) |
87 self.hgPurgeListAct.triggered.connect(self.__hgPurgeList) |
88 self.actions.append(self.hgPurgeListAct) |
88 self.actions.append(self.hgPurgeListAct) |
89 |
89 |
90 self.hgPurgeAllListAct = E5Action( |
90 self.hgPurgeAllListAct = E5Action( |
91 self.tr('List All Files to be Purged'), |
91 self.tr('List All Files to be Purged'), |
92 self.tr('List All Files to be Purged...'), |
92 self.tr('List All Files to be Purged...'), |
99 """<b>List All Files to be Purged</b>""" |
99 """<b>List All Files to be Purged</b>""" |
100 """<p>This lists files and directories not known to Mercurial""" |
100 """<p>This lists files and directories not known to Mercurial""" |
101 """ including ignored ones. These would be deleted by the""" |
101 """ including ignored ones. These would be deleted by the""" |
102 """ "Purge All Files" menu entry.</p>""" |
102 """ "Purge All Files" menu entry.</p>""" |
103 )) |
103 )) |
104 self.hgPurgeAllListAct.triggered[()].connect(self.__hgPurgeAllList) |
104 self.hgPurgeAllListAct.triggered.connect(self.__hgPurgeAllList) |
105 self.actions.append(self.hgPurgeAllListAct) |
105 self.actions.append(self.hgPurgeAllListAct) |
106 |
106 |
107 def initMenu(self, mainMenu): |
107 def initMenu(self, mainMenu): |
108 """ |
108 """ |
109 Public method to generate the extension menu. |
109 Public method to generate the extension menu. |