eric6/Plugins/VcsPlugins/vcsMercurial/ShelveExtension/ProjectHelper.py

changeset 7257
c4d0cac9b5c9
parent 7229
53054eb5b15a
child 7360
9190402e4505
equal deleted inserted replaced
7256:4ef3b78ebb4e 7257:c4d0cac9b5c9
181 181
182 def __hgShelve(self): 182 def __hgShelve(self):
183 """ 183 """
184 Private slot used to shelve all current changes. 184 Private slot used to shelve all current changes.
185 """ 185 """
186 shouldReopen = self.vcs.getExtensionObject("shelve")\ 186 shouldReopen = self.vcs.getExtensionObject("shelve").hgShelve(
187 .hgShelve(self.project.getProjectPath()) 187 self.project.getProjectPath())
188 self.__reopenProject(shouldReopen, self.tr("Shelve")) 188 self.__reopenProject(shouldReopen, self.tr("Shelve"))
189 189
190 def __hgShelveBrowser(self): 190 def __hgShelveBrowser(self):
191 """ 191 """
192 Private slot to show the shelve browser dialog. 192 Private slot to show the shelve browser dialog.
193 """ 193 """
194 self.vcs.getExtensionObject("shelve")\ 194 self.vcs.getExtensionObject("shelve").hgShelveBrowser(
195 .hgShelveBrowser(self.project.getProjectPath()) 195 self.project.getProjectPath())
196 196
197 def __hgUnshelve(self): 197 def __hgUnshelve(self):
198 """ 198 """
199 Private slot used to restore a shelved change. 199 Private slot used to restore a shelved change.
200 """ 200 """
201 shouldReopen = self.vcs.getExtensionObject("shelve")\ 201 shouldReopen = self.vcs.getExtensionObject("shelve").hgUnshelve(
202 .hgUnshelve(self.project.getProjectPath()) 202 self.project.getProjectPath())
203 self.__reopenProject(shouldReopen, self.tr("Unshelve")) 203 self.__reopenProject(shouldReopen, self.tr("Unshelve"))
204 204
205 def __hgUnshelveAbort(self): 205 def __hgUnshelveAbort(self):
206 """ 206 """
207 Private slot used to abort an ongoing restore operation. 207 Private slot used to abort an ongoing restore operation.
208 """ 208 """
209 shouldReopen = self.vcs.getExtensionObject("shelve")\ 209 shouldReopen = self.vcs.getExtensionObject("shelve").hgUnshelveAbort(
210 .hgUnshelveAbort(self.project.getProjectPath()) 210 self.project.getProjectPath())
211 self.__reopenProject(shouldReopen, self.tr("Abort Unshelve")) 211 self.__reopenProject(shouldReopen, self.tr("Abort Unshelve"))
212 212
213 def __hgUnshelveContinue(self): 213 def __hgUnshelveContinue(self):
214 """ 214 """
215 Private slot used to continue an ongoing restore operation. 215 Private slot used to continue an ongoing restore operation.
216 """ 216 """
217 shouldReopen = self.vcs.getExtensionObject("shelve")\ 217 shouldReopen = (
218 .hgUnshelveContinue(self.project.getProjectPath()) 218 self.vcs.getExtensionObject("shelve").hgUnshelveContinue(
219 self.project.getProjectPath())
220 )
219 self.__reopenProject(shouldReopen, self.tr("Continue Unshelve")) 221 self.__reopenProject(shouldReopen, self.tr("Continue Unshelve"))
220 222
221 def __hgDeleteShelves(self): 223 def __hgDeleteShelves(self):
222 """ 224 """
223 Private slot to delete selected shelves. 225 Private slot to delete selected shelves.

eric ide

mercurial