11 from PyQt6.QtWidgets import ( |
11 from PyQt6.QtWidgets import ( |
12 QWidget, QDialogButtonBox, QTreeWidgetItem, QAbstractButton, QMenu, |
12 QWidget, QDialogButtonBox, QTreeWidgetItem, QAbstractButton, QMenu, |
13 QHeaderView, QApplication |
13 QHeaderView, QApplication |
14 ) |
14 ) |
15 |
15 |
16 from E5Gui.E5OverrideCursor import E5OverrideCursor |
16 from E5Gui.EricOverrideCursor import EricOverrideCursor |
17 |
17 |
18 from .Ui_HgShelveBrowserDialog import Ui_HgShelveBrowserDialog |
18 from .Ui_HgShelveBrowserDialog import Ui_HgShelveBrowserDialog |
19 |
19 |
20 |
20 |
21 class HgShelveBrowserDialog(QWidget, Ui_HgShelveBrowserDialog): |
21 class HgShelveBrowserDialog(QWidget, Ui_HgShelveBrowserDialog): |
141 |
141 |
142 args = self.vcs.initCommand("shelve") |
142 args = self.vcs.initCommand("shelve") |
143 args.append("--list") |
143 args.append("--list") |
144 args.append("--stat") |
144 args.append("--stat") |
145 |
145 |
146 with E5OverrideCursor(): |
146 with EricOverrideCursor(): |
147 out, err = self.__hgClient.runcommand(args) |
147 out, err = self.__hgClient.runcommand(args) |
148 self.buf = out.splitlines(True) |
148 self.buf = out.splitlines(True) |
149 if err: |
149 if err: |
150 self.__showError(err) |
150 self.__showError(err) |
151 self.__processBuffer() |
151 self.__processBuffer() |