7 Module implementing the shelve extension interface. |
7 Module implementing the shelve extension interface. |
8 """ |
8 """ |
9 |
9 |
10 from PyQt6.QtWidgets import QDialog |
10 from PyQt6.QtWidgets import QDialog |
11 |
11 |
12 from E5Gui import E5MessageBox |
12 from E5Gui import EricMessageBox |
13 |
13 |
14 from ..HgExtension import HgExtension |
14 from ..HgExtension import HgExtension |
15 from ..HgDialog import HgDialog |
15 from ..HgDialog import HgDialog |
16 |
16 |
17 |
17 |
212 |
212 |
213 def hgCleanupShelves(self): |
213 def hgCleanupShelves(self): |
214 """ |
214 """ |
215 Public method to delete all shelves. |
215 Public method to delete all shelves. |
216 """ |
216 """ |
217 res = E5MessageBox.yesNo( |
217 res = EricMessageBox.yesNo( |
218 None, |
218 None, |
219 self.tr("Delete all shelves"), |
219 self.tr("Delete all shelves"), |
220 self.tr("""Do you really want to delete all shelved changes?""")) |
220 self.tr("""Do you really want to delete all shelved changes?""")) |
221 if res: |
221 if res: |
222 args = self.vcs.initCommand("shelve") |
222 args = self.vcs.initCommand("shelve") |