188 |
188 |
189 def __hgShelveBrowser(self): |
189 def __hgShelveBrowser(self): |
190 """ |
190 """ |
191 Private slot to show the shelve browser dialog. |
191 Private slot to show the shelve browser dialog. |
192 """ |
192 """ |
193 self.vcs.getExtensionObject("shelve").hgShelveBrowser( |
193 self.vcs.getExtensionObject("shelve").hgShelveBrowser() |
194 self.project.getProjectPath()) |
|
195 |
194 |
196 def __hgUnshelve(self): |
195 def __hgUnshelve(self): |
197 """ |
196 """ |
198 Private slot used to restore a shelved change. |
197 Private slot used to restore a shelved change. |
199 """ |
198 """ |
200 shouldReopen = self.vcs.getExtensionObject("shelve").hgUnshelve( |
199 shouldReopen = self.vcs.getExtensionObject("shelve").hgUnshelve() |
201 self.project.getProjectPath()) |
|
202 self.__reopenProject(shouldReopen, self.tr("Unshelve")) |
200 self.__reopenProject(shouldReopen, self.tr("Unshelve")) |
203 |
201 |
204 def __hgUnshelveAbort(self): |
202 def __hgUnshelveAbort(self): |
205 """ |
203 """ |
206 Private slot used to abort an ongoing restore operation. |
204 Private slot used to abort an ongoing restore operation. |
207 """ |
205 """ |
208 shouldReopen = self.vcs.getExtensionObject("shelve").hgUnshelveAbort( |
206 shouldReopen = self.vcs.getExtensionObject("shelve").hgUnshelveAbort() |
209 self.project.getProjectPath()) |
|
210 self.__reopenProject(shouldReopen, self.tr("Abort Unshelve")) |
207 self.__reopenProject(shouldReopen, self.tr("Abort Unshelve")) |
211 |
208 |
212 def __hgUnshelveContinue(self): |
209 def __hgUnshelveContinue(self): |
213 """ |
210 """ |
214 Private slot used to continue an ongoing restore operation. |
211 Private slot used to continue an ongoing restore operation. |
215 """ |
212 """ |
216 shouldReopen = ( |
213 shouldReopen = ( |
217 self.vcs.getExtensionObject("shelve").hgUnshelveContinue( |
214 self.vcs.getExtensionObject("shelve").hgUnshelveContinue() |
218 self.project.getProjectPath()) |
|
219 ) |
215 ) |
220 self.__reopenProject(shouldReopen, self.tr("Continue Unshelve")) |
216 self.__reopenProject(shouldReopen, self.tr("Continue Unshelve")) |
221 |
217 |
222 def __hgDeleteShelves(self): |
218 def __hgDeleteShelves(self): |
223 """ |
219 """ |
224 Private slot to delete selected shelves. |
220 Private slot to delete selected shelves. |
225 """ |
221 """ |
226 self.vcs.getExtensionObject("shelve").hgDeleteShelves( |
222 self.vcs.getExtensionObject("shelve").hgDeleteShelves() |
227 self.project.getProjectPath()) |
|
228 |
223 |
229 def __hgCleanupShelves(self): |
224 def __hgCleanupShelves(self): |
230 """ |
225 """ |
231 Private slot to delete all shelves. |
226 Private slot to delete all shelves. |
232 """ |
227 """ |
233 self.vcs.getExtensionObject("shelve").hgCleanupShelves( |
228 self.vcs.getExtensionObject("shelve").hgCleanupShelves() |
234 self.project.getProjectPath()) |
|