eric7/Plugins/VcsPlugins/vcsGit/ProjectHelper.py

branch
eric7
changeset 8356
68ec9c3d4de5
parent 8318
962bce857696
child 8358
144a6b854f70
equal deleted inserted replaced
8355:8a7677a63c8d 8356:68ec9c3d4de5
10 import os 10 import os
11 11
12 from PyQt6.QtCore import QFileInfo 12 from PyQt6.QtCore import QFileInfo
13 from PyQt6.QtWidgets import QMenu, QInputDialog, QToolBar 13 from PyQt6.QtWidgets import QMenu, QInputDialog, QToolBar
14 14
15 from E5Gui import E5MessageBox 15 from E5Gui import EricMessageBox
16 from E5Gui.E5Application import e5App 16 from E5Gui.EricApplication import ericApp
17 17
18 from VCS.ProjectHelper import VcsProjectHelper 18 from VCS.ProjectHelper import VcsProjectHelper
19 19
20 from E5Gui.E5Action import E5Action 20 from E5Gui.EricAction import EricAction
21 21
22 import UI.PixmapCache 22 import UI.PixmapCache
23 23
24 24
25 class GitProjectHelper(VcsProjectHelper): 25 class GitProjectHelper(VcsProjectHelper):
57 57
58 def getActions(self): 58 def getActions(self):
59 """ 59 """
60 Public method to get a list of all actions. 60 Public method to get a list of all actions.
61 61
62 @return list of all actions (list of E5Action) 62 @return list of all actions (list of EricAction)
63 """ 63 """
64 actions = self.actions[:] 64 actions = self.actions[:]
65 return actions 65 return actions
66 66
67 def initActions(self): 67 def initActions(self):
68 """ 68 """
69 Public method to generate the action objects. 69 Public method to generate the action objects.
70 """ 70 """
71 self.vcsNewAct = E5Action( 71 self.vcsNewAct = EricAction(
72 self.tr('New from repository'), 72 self.tr('New from repository'),
73 UI.PixmapCache.getIcon("vcsCheckout"), 73 UI.PixmapCache.getIcon("vcsCheckout"),
74 self.tr('&New from repository...'), 0, 0, 74 self.tr('&New from repository...'), 0, 0,
75 self, 'git_new') 75 self, 'git_new')
76 self.vcsNewAct.setStatusTip(self.tr( 76 self.vcsNewAct.setStatusTip(self.tr(
82 """a Git repository.</p>""" 82 """a Git repository.</p>"""
83 )) 83 ))
84 self.vcsNewAct.triggered.connect(self._vcsCheckout) 84 self.vcsNewAct.triggered.connect(self._vcsCheckout)
85 self.actions.append(self.vcsNewAct) 85 self.actions.append(self.vcsNewAct)
86 86
87 self.gitFetchAct = E5Action( 87 self.gitFetchAct = EricAction(
88 self.tr('Fetch changes'), 88 self.tr('Fetch changes'),
89 UI.PixmapCache.getIcon("vcsUpdate"), 89 UI.PixmapCache.getIcon("vcsUpdate"),
90 self.tr('Fetch changes'), 90 self.tr('Fetch changes'),
91 0, 0, self, 'git_fetch') 91 0, 0, self, 'git_fetch')
92 self.gitFetchAct.setStatusTip(self.tr( 92 self.gitFetchAct.setStatusTip(self.tr(
98 """local repository.</p>""" 98 """local repository.</p>"""
99 )) 99 ))
100 self.gitFetchAct.triggered.connect(self.__gitFetch) 100 self.gitFetchAct.triggered.connect(self.__gitFetch)
101 self.actions.append(self.gitFetchAct) 101 self.actions.append(self.gitFetchAct)
102 102
103 self.gitPullAct = E5Action( 103 self.gitPullAct = EricAction(
104 self.tr('Pull changes'), 104 self.tr('Pull changes'),
105 UI.PixmapCache.getIcon("vcsUpdate"), 105 UI.PixmapCache.getIcon("vcsUpdate"),
106 self.tr('Pull changes'), 106 self.tr('Pull changes'),
107 0, 0, self, 'git_pull') 107 0, 0, self, 'git_pull')
108 self.gitPullAct.setStatusTip(self.tr( 108 self.gitPullAct.setStatusTip(self.tr(
114 """local repository and updates the work area.</p>""" 114 """local repository and updates the work area.</p>"""
115 )) 115 ))
116 self.gitPullAct.triggered.connect(self.__gitPull) 116 self.gitPullAct.triggered.connect(self.__gitPull)
117 self.actions.append(self.gitPullAct) 117 self.actions.append(self.gitPullAct)
118 118
119 self.vcsCommitAct = E5Action( 119 self.vcsCommitAct = EricAction(
120 self.tr('Commit changes to repository'), 120 self.tr('Commit changes to repository'),
121 UI.PixmapCache.getIcon("vcsCommit"), 121 UI.PixmapCache.getIcon("vcsCommit"),
122 self.tr('Commit changes to repository...'), 0, 0, self, 122 self.tr('Commit changes to repository...'), 0, 0, self,
123 'git_commit') 123 'git_commit')
124 self.vcsCommitAct.setStatusTip(self.tr( 124 self.vcsCommitAct.setStatusTip(self.tr(
130 """Git repository.</p>""" 130 """Git repository.</p>"""
131 )) 131 ))
132 self.vcsCommitAct.triggered.connect(self._vcsCommit) 132 self.vcsCommitAct.triggered.connect(self._vcsCommit)
133 self.actions.append(self.vcsCommitAct) 133 self.actions.append(self.vcsCommitAct)
134 134
135 self.gitPushAct = E5Action( 135 self.gitPushAct = EricAction(
136 self.tr('Push changes'), 136 self.tr('Push changes'),
137 UI.PixmapCache.getIcon("vcsCommit"), 137 UI.PixmapCache.getIcon("vcsCommit"),
138 self.tr('Push changes'), 138 self.tr('Push changes'),
139 0, 0, self, 'git_push') 139 0, 0, self, 'git_push')
140 self.gitPushAct.setStatusTip(self.tr( 140 self.gitPushAct.setStatusTip(self.tr(
146 """remote repository.</p>""" 146 """remote repository.</p>"""
147 )) 147 ))
148 self.gitPushAct.triggered.connect(self.__gitPush) 148 self.gitPushAct.triggered.connect(self.__gitPush)
149 self.actions.append(self.gitPushAct) 149 self.actions.append(self.gitPushAct)
150 150
151 self.vcsExportAct = E5Action( 151 self.vcsExportAct = EricAction(
152 self.tr('Export from repository'), 152 self.tr('Export from repository'),
153 UI.PixmapCache.getIcon("vcsExport"), 153 UI.PixmapCache.getIcon("vcsExport"),
154 self.tr('&Export from repository...'), 154 self.tr('&Export from repository...'),
155 0, 0, self, 'git_export_repo') 155 0, 0, self, 'git_export_repo')
156 self.vcsExportAct.setStatusTip(self.tr( 156 self.vcsExportAct.setStatusTip(self.tr(
161 """<p>This exports a project from the repository.</p>""" 161 """<p>This exports a project from the repository.</p>"""
162 )) 162 ))
163 self.vcsExportAct.triggered.connect(self._vcsExport) 163 self.vcsExportAct.triggered.connect(self._vcsExport)
164 self.actions.append(self.vcsExportAct) 164 self.actions.append(self.vcsExportAct)
165 165
166 self.gitLogBrowserAct = E5Action( 166 self.gitLogBrowserAct = EricAction(
167 self.tr('Show log browser'), 167 self.tr('Show log browser'),
168 UI.PixmapCache.getIcon("vcsLog"), 168 UI.PixmapCache.getIcon("vcsLog"),
169 self.tr('Show log browser'), 169 self.tr('Show log browser'),
170 0, 0, self, 'git_log_browser') 170 0, 0, self, 'git_log_browser')
171 self.gitLogBrowserAct.setStatusTip(self.tr( 171 self.gitLogBrowserAct.setStatusTip(self.tr(
178 """ More can be retrieved later on.</p>""" 178 """ More can be retrieved later on.</p>"""
179 )) 179 ))
180 self.gitLogBrowserAct.triggered.connect(self._vcsLogBrowser) 180 self.gitLogBrowserAct.triggered.connect(self._vcsLogBrowser)
181 self.actions.append(self.gitLogBrowserAct) 181 self.actions.append(self.gitLogBrowserAct)
182 182
183 self.gitReflogBrowserAct = E5Action( 183 self.gitReflogBrowserAct = EricAction(
184 self.tr('Show reflog browser'), 184 self.tr('Show reflog browser'),
185 UI.PixmapCache.getIcon("vcsLog"), 185 UI.PixmapCache.getIcon("vcsLog"),
186 self.tr('Show reflog browser'), 186 self.tr('Show reflog browser'),
187 0, 0, self, 'git_reflog_browser') 187 0, 0, self, 'git_reflog_browser')
188 self.gitReflogBrowserAct.setStatusTip(self.tr( 188 self.gitReflogBrowserAct.setStatusTip(self.tr(
195 """ More can be retrieved later on.</p>""" 195 """ More can be retrieved later on.</p>"""
196 )) 196 ))
197 self.gitReflogBrowserAct.triggered.connect(self.__gitReflogBrowser) 197 self.gitReflogBrowserAct.triggered.connect(self.__gitReflogBrowser)
198 self.actions.append(self.gitReflogBrowserAct) 198 self.actions.append(self.gitReflogBrowserAct)
199 199
200 self.vcsDiffAct = E5Action( 200 self.vcsDiffAct = EricAction(
201 self.tr('Show differences'), 201 self.tr('Show differences'),
202 UI.PixmapCache.getIcon("vcsDiff"), 202 UI.PixmapCache.getIcon("vcsDiff"),
203 self.tr('Show &differences...'), 203 self.tr('Show &differences...'),
204 0, 0, self, 'git_diff') 204 0, 0, self, 'git_diff')
205 self.vcsDiffAct.setStatusTip(self.tr( 205 self.vcsDiffAct.setStatusTip(self.tr(
211 """ repository.</p>""" 211 """ repository.</p>"""
212 )) 212 ))
213 self.vcsDiffAct.triggered.connect(self._vcsDiff) 213 self.vcsDiffAct.triggered.connect(self._vcsDiff)
214 self.actions.append(self.vcsDiffAct) 214 self.actions.append(self.vcsDiffAct)
215 215
216 self.gitExtDiffAct = E5Action( 216 self.gitExtDiffAct = EricAction(
217 self.tr('Show differences (extended)'), 217 self.tr('Show differences (extended)'),
218 UI.PixmapCache.getIcon("vcsDiff"), 218 UI.PixmapCache.getIcon("vcsDiff"),
219 self.tr('Show differences (extended) ...'), 219 self.tr('Show differences (extended) ...'),
220 0, 0, self, 'git_extendeddiff') 220 0, 0, self, 'git_extendeddiff')
221 self.gitExtDiffAct.setStatusTip(self.tr( 221 self.gitExtDiffAct.setStatusTip(self.tr(
227 """ project.</p>""" 227 """ project.</p>"""
228 )) 228 ))
229 self.gitExtDiffAct.triggered.connect(self.__gitExtendedDiff) 229 self.gitExtDiffAct.triggered.connect(self.__gitExtendedDiff)
230 self.actions.append(self.gitExtDiffAct) 230 self.actions.append(self.gitExtDiffAct)
231 231
232 self.vcsStatusAct = E5Action( 232 self.vcsStatusAct = EricAction(
233 self.tr('Show status'), 233 self.tr('Show status'),
234 UI.PixmapCache.getIcon("vcsStatus"), 234 UI.PixmapCache.getIcon("vcsStatus"),
235 self.tr('Show &status...'), 235 self.tr('Show &status...'),
236 0, 0, self, 'git_status') 236 0, 0, self, 'git_status')
237 self.vcsStatusAct.setStatusTip(self.tr( 237 self.vcsStatusAct.setStatusTip(self.tr(
242 """<p>This shows the status of the local project.</p>""" 242 """<p>This shows the status of the local project.</p>"""
243 )) 243 ))
244 self.vcsStatusAct.triggered.connect(self._vcsStatus) 244 self.vcsStatusAct.triggered.connect(self._vcsStatus)
245 self.actions.append(self.vcsStatusAct) 245 self.actions.append(self.vcsStatusAct)
246 246
247 self.vcsSwitchAct = E5Action( 247 self.vcsSwitchAct = EricAction(
248 self.tr('Switch'), 248 self.tr('Switch'),
249 UI.PixmapCache.getIcon("vcsSwitch"), 249 UI.PixmapCache.getIcon("vcsSwitch"),
250 self.tr('S&witch...'), 250 self.tr('S&witch...'),
251 0, 0, self, 'git_switch') 251 0, 0, self, 'git_switch')
252 self.vcsSwitchAct.setStatusTip(self.tr( 252 self.vcsSwitchAct.setStatusTip(self.tr(
258 """ revision.</p>""" 258 """ revision.</p>"""
259 )) 259 ))
260 self.vcsSwitchAct.triggered.connect(self._vcsSwitch) 260 self.vcsSwitchAct.triggered.connect(self._vcsSwitch)
261 self.actions.append(self.vcsSwitchAct) 261 self.actions.append(self.vcsSwitchAct)
262 262
263 self.vcsTagAct = E5Action( 263 self.vcsTagAct = EricAction(
264 self.tr('Tag in repository'), 264 self.tr('Tag in repository'),
265 UI.PixmapCache.getIcon("vcsTag"), 265 UI.PixmapCache.getIcon("vcsTag"),
266 self.tr('&Tag in repository...'), 266 self.tr('&Tag in repository...'),
267 0, 0, self, 'git_tag') 267 0, 0, self, 'git_tag')
268 self.vcsTagAct.setStatusTip(self.tr( 268 self.vcsTagAct.setStatusTip(self.tr(
274 """ project.</p>""" 274 """ project.</p>"""
275 )) 275 ))
276 self.vcsTagAct.triggered.connect(self._vcsTag) 276 self.vcsTagAct.triggered.connect(self._vcsTag)
277 self.actions.append(self.vcsTagAct) 277 self.actions.append(self.vcsTagAct)
278 278
279 self.gitTagListAct = E5Action( 279 self.gitTagListAct = EricAction(
280 self.tr('List tags'), 280 self.tr('List tags'),
281 self.tr('&List tags...'), 281 self.tr('&List tags...'),
282 0, 0, self, 'git_list_tags') 282 0, 0, self, 'git_list_tags')
283 self.gitTagListAct.setStatusTip(self.tr( 283 self.gitTagListAct.setStatusTip(self.tr(
284 'List tags of the project' 284 'List tags of the project'
288 """<p>This lists the tags of the project.</p>""" 288 """<p>This lists the tags of the project.</p>"""
289 )) 289 ))
290 self.gitTagListAct.triggered.connect(self.__gitTagList) 290 self.gitTagListAct.triggered.connect(self.__gitTagList)
291 self.actions.append(self.gitTagListAct) 291 self.actions.append(self.gitTagListAct)
292 292
293 self.gitDescribeTagAct = E5Action( 293 self.gitDescribeTagAct = EricAction(
294 self.tr('Show most recent tag'), 294 self.tr('Show most recent tag'),
295 self.tr('Show most recent tag'), 295 self.tr('Show most recent tag'),
296 0, 0, self, 'git_describe_tag') 296 0, 0, self, 'git_describe_tag')
297 self.gitDescribeTagAct.setStatusTip(self.tr( 297 self.gitDescribeTagAct.setStatusTip(self.tr(
298 'Show the most recent tag reachable from the work tree' 298 'Show the most recent tag reachable from the work tree'
303 """ tree.</p>""" 303 """ tree.</p>"""
304 )) 304 ))
305 self.gitDescribeTagAct.triggered.connect(self.__gitDescribeTag) 305 self.gitDescribeTagAct.triggered.connect(self.__gitDescribeTag)
306 self.actions.append(self.gitDescribeTagAct) 306 self.actions.append(self.gitDescribeTagAct)
307 307
308 self.gitBranchListAct = E5Action( 308 self.gitBranchListAct = EricAction(
309 self.tr('List branches'), 309 self.tr('List branches'),
310 self.tr('&List branches...'), 310 self.tr('&List branches...'),
311 0, 0, self, 'git_list_branches') 311 0, 0, self, 'git_list_branches')
312 self.gitBranchListAct.setStatusTip(self.tr( 312 self.gitBranchListAct.setStatusTip(self.tr(
313 'List branches of the project' 313 'List branches of the project'
317 """<p>This lists the branches of the project.</p>""" 317 """<p>This lists the branches of the project.</p>"""
318 )) 318 ))
319 self.gitBranchListAct.triggered.connect(self.__gitBranchList) 319 self.gitBranchListAct.triggered.connect(self.__gitBranchList)
320 self.actions.append(self.gitBranchListAct) 320 self.actions.append(self.gitBranchListAct)
321 321
322 self.gitMergedBranchListAct = E5Action( 322 self.gitMergedBranchListAct = EricAction(
323 self.tr('List merged branches'), 323 self.tr('List merged branches'),
324 self.tr('List &merged branches...'), 324 self.tr('List &merged branches...'),
325 0, 0, self, 'git_list_merged_branches') 325 0, 0, self, 'git_list_merged_branches')
326 self.gitMergedBranchListAct.setStatusTip(self.tr( 326 self.gitMergedBranchListAct.setStatusTip(self.tr(
327 'List merged branches of the project' 327 'List merged branches of the project'
332 )) 332 ))
333 self.gitMergedBranchListAct.triggered.connect( 333 self.gitMergedBranchListAct.triggered.connect(
334 self.__gitMergedBranchList) 334 self.__gitMergedBranchList)
335 self.actions.append(self.gitMergedBranchListAct) 335 self.actions.append(self.gitMergedBranchListAct)
336 336
337 self.gitNotMergedBranchListAct = E5Action( 337 self.gitNotMergedBranchListAct = EricAction(
338 self.tr('List non-merged branches'), 338 self.tr('List non-merged branches'),
339 self.tr('List &non-merged branches...'), 339 self.tr('List &non-merged branches...'),
340 0, 0, self, 'git_list_non_merged_branches') 340 0, 0, self, 'git_list_non_merged_branches')
341 self.gitNotMergedBranchListAct.setStatusTip(self.tr( 341 self.gitNotMergedBranchListAct.setStatusTip(self.tr(
342 'List non-merged branches of the project' 342 'List non-merged branches of the project'
347 )) 347 ))
348 self.gitNotMergedBranchListAct.triggered.connect( 348 self.gitNotMergedBranchListAct.triggered.connect(
349 self.__gitNotMergedBranchList) 349 self.__gitNotMergedBranchList)
350 self.actions.append(self.gitNotMergedBranchListAct) 350 self.actions.append(self.gitNotMergedBranchListAct)
351 351
352 self.gitBranchAct = E5Action( 352 self.gitBranchAct = EricAction(
353 self.tr('Branch in repository'), 353 self.tr('Branch in repository'),
354 UI.PixmapCache.getIcon("vcsBranch"), 354 UI.PixmapCache.getIcon("vcsBranch"),
355 self.tr('&Branch in repository...'), 355 self.tr('&Branch in repository...'),
356 0, 0, self, 'git_branch') 356 0, 0, self, 'git_branch')
357 self.gitBranchAct.setStatusTip(self.tr( 357 self.gitBranchAct.setStatusTip(self.tr(
363 """ project.</p>""" 363 """ project.</p>"""
364 )) 364 ))
365 self.gitBranchAct.triggered.connect(self.__gitBranch) 365 self.gitBranchAct.triggered.connect(self.__gitBranch)
366 self.actions.append(self.gitBranchAct) 366 self.actions.append(self.gitBranchAct)
367 367
368 self.gitDeleteRemoteBranchAct = E5Action( 368 self.gitDeleteRemoteBranchAct = EricAction(
369 self.tr('Delete Remote Branch'), 369 self.tr('Delete Remote Branch'),
370 self.tr('&Delete Remote Branch...'), 370 self.tr('&Delete Remote Branch...'),
371 0, 0, self, 'git_delete_remote_branch') 371 0, 0, self, 'git_delete_remote_branch')
372 self.gitDeleteRemoteBranchAct.setStatusTip(self.tr( 372 self.gitDeleteRemoteBranchAct.setStatusTip(self.tr(
373 'Delete a branch from a remote repository' 373 'Delete a branch from a remote repository'
377 """<p>This deletes a branch from a remote repository.</p>""" 377 """<p>This deletes a branch from a remote repository.</p>"""
378 )) 378 ))
379 self.gitDeleteRemoteBranchAct.triggered.connect(self.__gitDeleteBranch) 379 self.gitDeleteRemoteBranchAct.triggered.connect(self.__gitDeleteBranch)
380 self.actions.append(self.gitDeleteRemoteBranchAct) 380 self.actions.append(self.gitDeleteRemoteBranchAct)
381 381
382 self.gitShowBranchAct = E5Action( 382 self.gitShowBranchAct = EricAction(
383 self.tr('Show current branch'), 383 self.tr('Show current branch'),
384 self.tr('Show current branch'), 384 self.tr('Show current branch'),
385 0, 0, self, 'git_show_branch') 385 0, 0, self, 'git_show_branch')
386 self.gitShowBranchAct.setStatusTip(self.tr( 386 self.gitShowBranchAct.setStatusTip(self.tr(
387 'Show the current branch of the project' 387 'Show the current branch of the project'
391 """<p>This shows the current branch of the project.</p>""" 391 """<p>This shows the current branch of the project.</p>"""
392 )) 392 ))
393 self.gitShowBranchAct.triggered.connect(self.__gitShowBranch) 393 self.gitShowBranchAct.triggered.connect(self.__gitShowBranch)
394 self.actions.append(self.gitShowBranchAct) 394 self.actions.append(self.gitShowBranchAct)
395 395
396 self.vcsRevertAct = E5Action( 396 self.vcsRevertAct = EricAction(
397 self.tr('Revert changes'), 397 self.tr('Revert changes'),
398 UI.PixmapCache.getIcon("vcsRevert"), 398 UI.PixmapCache.getIcon("vcsRevert"),
399 self.tr('Re&vert changes'), 399 self.tr('Re&vert changes'),
400 0, 0, self, 'git_revert') 400 0, 0, self, 'git_revert')
401 self.vcsRevertAct.setStatusTip(self.tr( 401 self.vcsRevertAct.setStatusTip(self.tr(
406 """<p>This reverts all changes made to the local project.</p>""" 406 """<p>This reverts all changes made to the local project.</p>"""
407 )) 407 ))
408 self.vcsRevertAct.triggered.connect(self.__gitRevert) 408 self.vcsRevertAct.triggered.connect(self.__gitRevert)
409 self.actions.append(self.vcsRevertAct) 409 self.actions.append(self.vcsRevertAct)
410 410
411 self.gitUnstageAct = E5Action( 411 self.gitUnstageAct = EricAction(
412 self.tr('Unstage changes'), 412 self.tr('Unstage changes'),
413 UI.PixmapCache.getIcon("vcsRevert"), 413 UI.PixmapCache.getIcon("vcsRevert"),
414 self.tr('&Unstage changes'), 414 self.tr('&Unstage changes'),
415 0, 0, self, 'git_revert') 415 0, 0, self, 'git_revert')
416 self.gitUnstageAct.setStatusTip(self.tr( 416 self.gitUnstageAct.setStatusTip(self.tr(
421 """<p>This unstages all changes made to the local project.</p>""" 421 """<p>This unstages all changes made to the local project.</p>"""
422 )) 422 ))
423 self.gitUnstageAct.triggered.connect(self.__gitUnstage) 423 self.gitUnstageAct.triggered.connect(self.__gitUnstage)
424 self.actions.append(self.gitUnstageAct) 424 self.actions.append(self.gitUnstageAct)
425 425
426 self.vcsMergeAct = E5Action( 426 self.vcsMergeAct = EricAction(
427 self.tr('Merge'), 427 self.tr('Merge'),
428 UI.PixmapCache.getIcon("vcsMerge"), 428 UI.PixmapCache.getIcon("vcsMerge"),
429 self.tr('Mer&ge changes...'), 429 self.tr('Mer&ge changes...'),
430 0, 0, self, 'git_merge') 430 0, 0, self, 'git_merge')
431 self.vcsMergeAct.setStatusTip(self.tr( 431 self.vcsMergeAct.setStatusTip(self.tr(
436 """<p>This merges changes into the local project.</p>""" 436 """<p>This merges changes into the local project.</p>"""
437 )) 437 ))
438 self.vcsMergeAct.triggered.connect(self._vcsMerge) 438 self.vcsMergeAct.triggered.connect(self._vcsMerge)
439 self.actions.append(self.vcsMergeAct) 439 self.actions.append(self.vcsMergeAct)
440 440
441 self.gitCancelMergeAct = E5Action( 441 self.gitCancelMergeAct = EricAction(
442 self.tr('Cancel uncommitted/failed merge'), 442 self.tr('Cancel uncommitted/failed merge'),
443 self.tr('Cancel uncommitted/failed merge'), 443 self.tr('Cancel uncommitted/failed merge'),
444 0, 0, self, 'git_cancel_merge') 444 0, 0, self, 'git_cancel_merge')
445 self.gitCancelMergeAct.setStatusTip(self.tr( 445 self.gitCancelMergeAct.setStatusTip(self.tr(
446 'Cancel an uncommitted or failed merge and lose all changes' 446 'Cancel an uncommitted or failed merge and lose all changes'
451 """ changes to be lost.</p>""" 451 """ changes to be lost.</p>"""
452 )) 452 ))
453 self.gitCancelMergeAct.triggered.connect(self.__gitCancelMerge) 453 self.gitCancelMergeAct.triggered.connect(self.__gitCancelMerge)
454 self.actions.append(self.gitCancelMergeAct) 454 self.actions.append(self.gitCancelMergeAct)
455 455
456 self.gitCommitMergeAct = E5Action( 456 self.gitCommitMergeAct = EricAction(
457 self.tr('Commit failed merge'), 457 self.tr('Commit failed merge'),
458 self.tr('Commit failed merge'), 458 self.tr('Commit failed merge'),
459 0, 0, self, 'git_commit_merge') 459 0, 0, self, 'git_commit_merge')
460 self.gitCommitMergeAct.setStatusTip(self.tr( 460 self.gitCommitMergeAct.setStatusTip(self.tr(
461 'Commit a failed merge after conflicts have been resolved' 461 'Commit a failed merge after conflicts have been resolved'
466 """ resolved.</p>""" 466 """ resolved.</p>"""
467 )) 467 ))
468 self.gitCommitMergeAct.triggered.connect(self.__gitCommitMerge) 468 self.gitCommitMergeAct.triggered.connect(self.__gitCommitMerge)
469 self.actions.append(self.gitCommitMergeAct) 469 self.actions.append(self.gitCommitMergeAct)
470 470
471 self.vcsCleanupAct = E5Action( 471 self.vcsCleanupAct = EricAction(
472 self.tr('Cleanup'), 472 self.tr('Cleanup'),
473 self.tr('Cleanu&p'), 473 self.tr('Cleanu&p'),
474 0, 0, self, 'git_cleanup') 474 0, 0, self, 'git_cleanup')
475 self.vcsCleanupAct.setStatusTip(self.tr( 475 self.vcsCleanupAct.setStatusTip(self.tr(
476 'Cleanup the local project' 476 'Cleanup the local project'
480 """<p>This performs a cleanup of the local project.</p>""" 480 """<p>This performs a cleanup of the local project.</p>"""
481 )) 481 ))
482 self.vcsCleanupAct.triggered.connect(self._vcsCleanup) 482 self.vcsCleanupAct.triggered.connect(self._vcsCleanup)
483 self.actions.append(self.vcsCleanupAct) 483 self.actions.append(self.vcsCleanupAct)
484 484
485 self.vcsCommandAct = E5Action( 485 self.vcsCommandAct = EricAction(
486 self.tr('Execute command'), 486 self.tr('Execute command'),
487 self.tr('E&xecute command...'), 487 self.tr('E&xecute command...'),
488 0, 0, self, 'git_command') 488 0, 0, self, 'git_command')
489 self.vcsCommandAct.setStatusTip(self.tr( 489 self.vcsCommandAct.setStatusTip(self.tr(
490 'Execute an arbitrary Git command' 490 'Execute an arbitrary Git command'
495 """ command.</p>""" 495 """ command.</p>"""
496 )) 496 ))
497 self.vcsCommandAct.triggered.connect(self._vcsCommand) 497 self.vcsCommandAct.triggered.connect(self._vcsCommand)
498 self.actions.append(self.vcsCommandAct) 498 self.actions.append(self.vcsCommandAct)
499 499
500 self.gitConfigAct = E5Action( 500 self.gitConfigAct = EricAction(
501 self.tr('Configure'), 501 self.tr('Configure'),
502 self.tr('Configure...'), 502 self.tr('Configure...'),
503 0, 0, self, 'git_configure') 503 0, 0, self, 'git_configure')
504 self.gitConfigAct.setStatusTip(self.tr( 504 self.gitConfigAct.setStatusTip(self.tr(
505 'Show the configuration dialog with the Git page selected' 505 'Show the configuration dialog with the Git page selected'
510 """ selected.</p>""" 510 """ selected.</p>"""
511 )) 511 ))
512 self.gitConfigAct.triggered.connect(self.__gitConfigure) 512 self.gitConfigAct.triggered.connect(self.__gitConfigure)
513 self.actions.append(self.gitConfigAct) 513 self.actions.append(self.gitConfigAct)
514 514
515 self.gitRemotesShowAct = E5Action( 515 self.gitRemotesShowAct = EricAction(
516 self.tr('Show Remotes'), 516 self.tr('Show Remotes'),
517 self.tr('Show Remotes...'), 517 self.tr('Show Remotes...'),
518 0, 0, self, 'git_show_remotes') 518 0, 0, self, 'git_show_remotes')
519 self.gitRemotesShowAct.setStatusTip(self.tr( 519 self.gitRemotesShowAct.setStatusTip(self.tr(
520 'Show the available remote repositories' 520 'Show the available remote repositories'
525 """ pulling, fetching and pushing.</p>""" 525 """ pulling, fetching and pushing.</p>"""
526 )) 526 ))
527 self.gitRemotesShowAct.triggered.connect(self.__gitShowRemotes) 527 self.gitRemotesShowAct.triggered.connect(self.__gitShowRemotes)
528 self.actions.append(self.gitRemotesShowAct) 528 self.actions.append(self.gitRemotesShowAct)
529 529
530 self.gitRemoteShowAct = E5Action( 530 self.gitRemoteShowAct = EricAction(
531 self.tr('Show Remote Info'), 531 self.tr('Show Remote Info'),
532 self.tr('Show Remote Info...'), 532 self.tr('Show Remote Info...'),
533 0, 0, self, 'git_show_remote_info') 533 0, 0, self, 'git_show_remote_info')
534 self.gitRemoteShowAct.setStatusTip(self.tr( 534 self.gitRemoteShowAct.setStatusTip(self.tr(
535 'Show information about a remote repository' 535 'Show information about a remote repository'
540 """ pulling, fetching and pushing.</p>""" 540 """ pulling, fetching and pushing.</p>"""
541 )) 541 ))
542 self.gitRemoteShowAct.triggered.connect(self.__gitShowRemote) 542 self.gitRemoteShowAct.triggered.connect(self.__gitShowRemote)
543 self.actions.append(self.gitRemoteShowAct) 543 self.actions.append(self.gitRemoteShowAct)
544 544
545 self.gitRemoteAddAct = E5Action( 545 self.gitRemoteAddAct = EricAction(
546 self.tr('Add'), 546 self.tr('Add'),
547 self.tr('Add...'), 547 self.tr('Add...'),
548 0, 0, self, 'git_add_remote') 548 0, 0, self, 'git_add_remote')
549 self.gitRemoteAddAct.setStatusTip(self.tr( 549 self.gitRemoteAddAct.setStatusTip(self.tr(
550 'Add a remote repository' 550 'Add a remote repository'
554 """<p>This adds a remote repository.</p>""" 554 """<p>This adds a remote repository.</p>"""
555 )) 555 ))
556 self.gitRemoteAddAct.triggered.connect(self.__gitAddRemote) 556 self.gitRemoteAddAct.triggered.connect(self.__gitAddRemote)
557 self.actions.append(self.gitRemoteAddAct) 557 self.actions.append(self.gitRemoteAddAct)
558 558
559 self.gitRemoteRemoveAct = E5Action( 559 self.gitRemoteRemoveAct = EricAction(
560 self.tr('Remove'), 560 self.tr('Remove'),
561 self.tr('Remove...'), 561 self.tr('Remove...'),
562 0, 0, self, 'git_remove_remote') 562 0, 0, self, 'git_remove_remote')
563 self.gitRemoteRemoveAct.setStatusTip(self.tr( 563 self.gitRemoteRemoveAct.setStatusTip(self.tr(
564 'Remove a remote repository' 564 'Remove a remote repository'
568 """<p>This removes a remote repository.</p>""" 568 """<p>This removes a remote repository.</p>"""
569 )) 569 ))
570 self.gitRemoteRemoveAct.triggered.connect(self.__gitRemoveRemote) 570 self.gitRemoteRemoveAct.triggered.connect(self.__gitRemoveRemote)
571 self.actions.append(self.gitRemoteRemoveAct) 571 self.actions.append(self.gitRemoteRemoveAct)
572 572
573 self.gitRemotePruneAct = E5Action( 573 self.gitRemotePruneAct = EricAction(
574 self.tr('Prune'), 574 self.tr('Prune'),
575 self.tr('Prune...'), 575 self.tr('Prune...'),
576 0, 0, self, 'git_prune_remote') 576 0, 0, self, 'git_prune_remote')
577 self.gitRemotePruneAct.setStatusTip(self.tr( 577 self.gitRemotePruneAct.setStatusTip(self.tr(
578 'Prune stale remote-tracking branches of a remote repository' 578 'Prune stale remote-tracking branches of a remote repository'
583 """ repository.</p>""" 583 """ repository.</p>"""
584 )) 584 ))
585 self.gitRemotePruneAct.triggered.connect(self.__gitPruneRemote) 585 self.gitRemotePruneAct.triggered.connect(self.__gitPruneRemote)
586 self.actions.append(self.gitRemotePruneAct) 586 self.actions.append(self.gitRemotePruneAct)
587 587
588 self.gitRemoteRenameAct = E5Action( 588 self.gitRemoteRenameAct = EricAction(
589 self.tr('Rename'), 589 self.tr('Rename'),
590 self.tr('Rename...'), 590 self.tr('Rename...'),
591 0, 0, self, 'git_rename_remote') 591 0, 0, self, 'git_rename_remote')
592 self.gitRemoteRenameAct.setStatusTip(self.tr( 592 self.gitRemoteRenameAct.setStatusTip(self.tr(
593 'Rename a remote repository' 593 'Rename a remote repository'
597 """<p>This renames a remote repository.</p>""" 597 """<p>This renames a remote repository.</p>"""
598 )) 598 ))
599 self.gitRemoteRenameAct.triggered.connect(self.__gitRenameRemote) 599 self.gitRemoteRenameAct.triggered.connect(self.__gitRenameRemote)
600 self.actions.append(self.gitRemoteRenameAct) 600 self.actions.append(self.gitRemoteRenameAct)
601 601
602 self.gitRemoteChangeUrlAct = E5Action( 602 self.gitRemoteChangeUrlAct = EricAction(
603 self.tr('Change URL'), 603 self.tr('Change URL'),
604 self.tr('Change URL...'), 604 self.tr('Change URL...'),
605 0, 0, self, 'git_change_remote_url') 605 0, 0, self, 'git_change_remote_url')
606 self.gitRemoteChangeUrlAct.setStatusTip(self.tr( 606 self.gitRemoteChangeUrlAct.setStatusTip(self.tr(
607 'Change the URL of a remote repository' 607 'Change the URL of a remote repository'
611 """<p>This changes the URL of a remote repository.</p>""" 611 """<p>This changes the URL of a remote repository.</p>"""
612 )) 612 ))
613 self.gitRemoteChangeUrlAct.triggered.connect(self.__gitChangeRemoteUrl) 613 self.gitRemoteChangeUrlAct.triggered.connect(self.__gitChangeRemoteUrl)
614 self.actions.append(self.gitRemoteChangeUrlAct) 614 self.actions.append(self.gitRemoteChangeUrlAct)
615 615
616 self.gitRemoteCredentialsAct = E5Action( 616 self.gitRemoteCredentialsAct = EricAction(
617 self.tr('Credentials'), 617 self.tr('Credentials'),
618 self.tr('Credentials...'), 618 self.tr('Credentials...'),
619 0, 0, self, 'git_remote_credentials') 619 0, 0, self, 'git_remote_credentials')
620 self.gitRemoteCredentialsAct.setStatusTip(self.tr( 620 self.gitRemoteCredentialsAct.setStatusTip(self.tr(
621 'Change or set the user credentials of a remote repository' 621 'Change or set the user credentials of a remote repository'
627 )) 627 ))
628 self.gitRemoteCredentialsAct.triggered.connect( 628 self.gitRemoteCredentialsAct.triggered.connect(
629 self.__gitRemoteCredentials) 629 self.__gitRemoteCredentials)
630 self.actions.append(self.gitRemoteCredentialsAct) 630 self.actions.append(self.gitRemoteCredentialsAct)
631 631
632 self.gitCherryPickAct = E5Action( 632 self.gitCherryPickAct = EricAction(
633 self.tr('Copy Commits'), 633 self.tr('Copy Commits'),
634 UI.PixmapCache.getIcon("vcsGraft"), 634 UI.PixmapCache.getIcon("vcsGraft"),
635 self.tr('Copy Commits'), 635 self.tr('Copy Commits'),
636 0, 0, self, 'git_cherrypick') 636 0, 0, self, 'git_cherrypick')
637 self.gitCherryPickAct.setStatusTip(self.tr( 637 self.gitCherryPickAct.setStatusTip(self.tr(
642 """<p>This copies commits on top of the current branch.</p>""" 642 """<p>This copies commits on top of the current branch.</p>"""
643 )) 643 ))
644 self.gitCherryPickAct.triggered.connect(self.__gitCherryPick) 644 self.gitCherryPickAct.triggered.connect(self.__gitCherryPick)
645 self.actions.append(self.gitCherryPickAct) 645 self.actions.append(self.gitCherryPickAct)
646 646
647 self.gitCherryPickContinueAct = E5Action( 647 self.gitCherryPickContinueAct = EricAction(
648 self.tr('Continue Copying Session'), 648 self.tr('Continue Copying Session'),
649 self.tr('Continue Copying Session'), 649 self.tr('Continue Copying Session'),
650 0, 0, self, 'git_cherrypick_continue') 650 0, 0, self, 'git_cherrypick_continue')
651 self.gitCherryPickContinueAct.setStatusTip(self.tr( 651 self.gitCherryPickContinueAct.setStatusTip(self.tr(
652 'Continue the last copying session after conflicts were resolved' 652 'Continue the last copying session after conflicts were resolved'
658 )) 658 ))
659 self.gitCherryPickContinueAct.triggered.connect( 659 self.gitCherryPickContinueAct.triggered.connect(
660 self.__gitCherryPickContinue) 660 self.__gitCherryPickContinue)
661 self.actions.append(self.gitCherryPickContinueAct) 661 self.actions.append(self.gitCherryPickContinueAct)
662 662
663 self.gitCherryPickQuitAct = E5Action( 663 self.gitCherryPickQuitAct = EricAction(
664 self.tr('Quit Copying Session'), 664 self.tr('Quit Copying Session'),
665 self.tr('Quit Copying Session'), 665 self.tr('Quit Copying Session'),
666 0, 0, self, 'git_cherrypick_quit') 666 0, 0, self, 'git_cherrypick_quit')
667 self.gitCherryPickQuitAct.setStatusTip(self.tr( 667 self.gitCherryPickQuitAct.setStatusTip(self.tr(
668 'Quit the current copying session' 668 'Quit the current copying session'
672 """<p>This quits the current copying session.</p>""" 672 """<p>This quits the current copying session.</p>"""
673 )) 673 ))
674 self.gitCherryPickQuitAct.triggered.connect(self.__gitCherryPickQuit) 674 self.gitCherryPickQuitAct.triggered.connect(self.__gitCherryPickQuit)
675 self.actions.append(self.gitCherryPickQuitAct) 675 self.actions.append(self.gitCherryPickQuitAct)
676 676
677 self.gitCherryPickAbortAct = E5Action( 677 self.gitCherryPickAbortAct = EricAction(
678 self.tr('Cancel Copying Session'), 678 self.tr('Cancel Copying Session'),
679 self.tr('Cancel Copying Session'), 679 self.tr('Cancel Copying Session'),
680 0, 0, self, 'git_cherrypick_abort') 680 0, 0, self, 'git_cherrypick_abort')
681 self.gitCherryPickAbortAct.setStatusTip(self.tr( 681 self.gitCherryPickAbortAct.setStatusTip(self.tr(
682 'Cancel the current copying session and return to the' 682 'Cancel the current copying session and return to the'
688 """ the previous state.</p>""" 688 """ the previous state.</p>"""
689 )) 689 ))
690 self.gitCherryPickAbortAct.triggered.connect(self.__gitCherryPickAbort) 690 self.gitCherryPickAbortAct.triggered.connect(self.__gitCherryPickAbort)
691 self.actions.append(self.gitCherryPickAbortAct) 691 self.actions.append(self.gitCherryPickAbortAct)
692 692
693 self.gitStashAct = E5Action( 693 self.gitStashAct = EricAction(
694 self.tr('Stash changes'), 694 self.tr('Stash changes'),
695 self.tr('Stash changes...'), 695 self.tr('Stash changes...'),
696 0, 0, self, 'git_stash') 696 0, 0, self, 'git_stash')
697 self.gitStashAct.setStatusTip(self.tr( 697 self.gitStashAct.setStatusTip(self.tr(
698 'Stash all current changes of the project' 698 'Stash all current changes of the project'
702 """<p>This stashes all current changes of the project.</p>""" 702 """<p>This stashes all current changes of the project.</p>"""
703 )) 703 ))
704 self.gitStashAct.triggered.connect(self.__gitStashSave) 704 self.gitStashAct.triggered.connect(self.__gitStashSave)
705 self.actions.append(self.gitStashAct) 705 self.actions.append(self.gitStashAct)
706 706
707 self.gitStashBrowserAct = E5Action( 707 self.gitStashBrowserAct = EricAction(
708 self.tr('Show stash browser'), 708 self.tr('Show stash browser'),
709 self.tr('Show stash browser...'), 709 self.tr('Show stash browser...'),
710 0, 0, self, 'git_stash_browser') 710 0, 0, self, 'git_stash_browser')
711 self.gitStashBrowserAct.setStatusTip(self.tr( 711 self.gitStashBrowserAct.setStatusTip(self.tr(
712 'Show a dialog with all stashes' 712 'Show a dialog with all stashes'
718 """ context menu.</p>""" 718 """ context menu.</p>"""
719 )) 719 ))
720 self.gitStashBrowserAct.triggered.connect(self.__gitStashBrowser) 720 self.gitStashBrowserAct.triggered.connect(self.__gitStashBrowser)
721 self.actions.append(self.gitStashBrowserAct) 721 self.actions.append(self.gitStashBrowserAct)
722 722
723 self.gitStashShowAct = E5Action( 723 self.gitStashShowAct = EricAction(
724 self.tr('Show stash'), 724 self.tr('Show stash'),
725 self.tr('Show stash...'), 725 self.tr('Show stash...'),
726 0, 0, self, 'git_stash_show') 726 0, 0, self, 'git_stash_show')
727 self.gitStashShowAct.setStatusTip(self.tr( 727 self.gitStashShowAct.setStatusTip(self.tr(
728 'Show a dialog with a patch of a stash' 728 'Show a dialog with a patch of a stash'
733 """ stash.</p>""" 733 """ stash.</p>"""
734 )) 734 ))
735 self.gitStashShowAct.triggered.connect(self.__gitStashShow) 735 self.gitStashShowAct.triggered.connect(self.__gitStashShow)
736 self.actions.append(self.gitStashShowAct) 736 self.actions.append(self.gitStashShowAct)
737 737
738 self.gitStashApplyAct = E5Action( 738 self.gitStashApplyAct = EricAction(
739 self.tr('Restore && Keep'), 739 self.tr('Restore && Keep'),
740 self.tr('Restore && Keep'), 740 self.tr('Restore && Keep'),
741 0, 0, self, 'git_stash_apply') 741 0, 0, self, 'git_stash_apply')
742 self.gitStashApplyAct.setStatusTip(self.tr( 742 self.gitStashApplyAct.setStatusTip(self.tr(
743 'Restore a stash but keep it' 743 'Restore a stash but keep it'
747 """<p>This restores a selectable stash and keeps it.</p>""" 747 """<p>This restores a selectable stash and keeps it.</p>"""
748 )) 748 ))
749 self.gitStashApplyAct.triggered.connect(self.__gitStashApply) 749 self.gitStashApplyAct.triggered.connect(self.__gitStashApply)
750 self.actions.append(self.gitStashApplyAct) 750 self.actions.append(self.gitStashApplyAct)
751 751
752 self.gitStashPopAct = E5Action( 752 self.gitStashPopAct = EricAction(
753 self.tr('Restore && Delete'), 753 self.tr('Restore && Delete'),
754 self.tr('Restore && Delete'), 754 self.tr('Restore && Delete'),
755 0, 0, self, 'git_stash_pop') 755 0, 0, self, 'git_stash_pop')
756 self.gitStashPopAct.setStatusTip(self.tr( 756 self.gitStashPopAct.setStatusTip(self.tr(
757 'Restore a stash and delete it' 757 'Restore a stash and delete it'
761 """<p>This restores a selectable stash and deletes it.</p>""" 761 """<p>This restores a selectable stash and deletes it.</p>"""
762 )) 762 ))
763 self.gitStashPopAct.triggered.connect(self.__gitStashPop) 763 self.gitStashPopAct.triggered.connect(self.__gitStashPop)
764 self.actions.append(self.gitStashPopAct) 764 self.actions.append(self.gitStashPopAct)
765 765
766 self.gitStashBranchAct = E5Action( 766 self.gitStashBranchAct = EricAction(
767 self.tr('Create Branch'), 767 self.tr('Create Branch'),
768 self.tr('Create Branch'), 768 self.tr('Create Branch'),
769 0, 0, self, 'git_stash_branch') 769 0, 0, self, 'git_stash_branch')
770 self.gitStashBranchAct.setStatusTip(self.tr( 770 self.gitStashBranchAct.setStatusTip(self.tr(
771 'Create a new branch and restore a stash into it' 771 'Create a new branch and restore a stash into it'
776 """ it.</p>""" 776 """ it.</p>"""
777 )) 777 ))
778 self.gitStashBranchAct.triggered.connect(self.__gitStashBranch) 778 self.gitStashBranchAct.triggered.connect(self.__gitStashBranch)
779 self.actions.append(self.gitStashBranchAct) 779 self.actions.append(self.gitStashBranchAct)
780 780
781 self.gitStashDropAct = E5Action( 781 self.gitStashDropAct = EricAction(
782 self.tr('Delete'), 782 self.tr('Delete'),
783 self.tr('Delete'), 783 self.tr('Delete'),
784 0, 0, self, 'git_stash_delete') 784 0, 0, self, 'git_stash_delete')
785 self.gitStashDropAct.setStatusTip(self.tr( 785 self.gitStashDropAct.setStatusTip(self.tr(
786 'Delete a stash' 786 'Delete a stash'
790 """<p>This deletes a stash.</p>""" 790 """<p>This deletes a stash.</p>"""
791 )) 791 ))
792 self.gitStashDropAct.triggered.connect(self.__gitStashDrop) 792 self.gitStashDropAct.triggered.connect(self.__gitStashDrop)
793 self.actions.append(self.gitStashDropAct) 793 self.actions.append(self.gitStashDropAct)
794 794
795 self.gitStashClearAct = E5Action( 795 self.gitStashClearAct = EricAction(
796 self.tr('Delete All'), 796 self.tr('Delete All'),
797 self.tr('Delete All'), 797 self.tr('Delete All'),
798 0, 0, self, 'git_stash_delete_all') 798 0, 0, self, 'git_stash_delete_all')
799 self.gitStashClearAct.setStatusTip(self.tr( 799 self.gitStashClearAct.setStatusTip(self.tr(
800 'Delete all stashes' 800 'Delete all stashes'
804 """<p>This deletes all stashes.</p>""" 804 """<p>This deletes all stashes.</p>"""
805 )) 805 ))
806 self.gitStashClearAct.triggered.connect(self.__gitStashClear) 806 self.gitStashClearAct.triggered.connect(self.__gitStashClear)
807 self.actions.append(self.gitStashClearAct) 807 self.actions.append(self.gitStashClearAct)
808 808
809 self.gitEditUserConfigAct = E5Action( 809 self.gitEditUserConfigAct = EricAction(
810 self.tr('Edit user configuration'), 810 self.tr('Edit user configuration'),
811 self.tr('Edit user configuration...'), 811 self.tr('Edit user configuration...'),
812 0, 0, self, 'git_user_configure') 812 0, 0, self, 'git_user_configure')
813 self.gitEditUserConfigAct.setStatusTip(self.tr( 813 self.gitEditUserConfigAct.setStatusTip(self.tr(
814 'Show an editor to edit the user configuration file' 814 'Show an editor to edit the user configuration file'
818 """<p>Show an editor to edit the user configuration file.</p>""" 818 """<p>Show an editor to edit the user configuration file.</p>"""
819 )) 819 ))
820 self.gitEditUserConfigAct.triggered.connect(self.__gitEditUserConfig) 820 self.gitEditUserConfigAct.triggered.connect(self.__gitEditUserConfig)
821 self.actions.append(self.gitEditUserConfigAct) 821 self.actions.append(self.gitEditUserConfigAct)
822 822
823 self.gitRepoConfigAct = E5Action( 823 self.gitRepoConfigAct = EricAction(
824 self.tr('Edit repository configuration'), 824 self.tr('Edit repository configuration'),
825 self.tr('Edit repository configuration...'), 825 self.tr('Edit repository configuration...'),
826 0, 0, self, 'git_repo_configure') 826 0, 0, self, 'git_repo_configure')
827 self.gitRepoConfigAct.setStatusTip(self.tr( 827 self.gitRepoConfigAct.setStatusTip(self.tr(
828 'Show an editor to edit the repository configuration file' 828 'Show an editor to edit the repository configuration file'
833 """ file.</p>""" 833 """ file.</p>"""
834 )) 834 ))
835 self.gitRepoConfigAct.triggered.connect(self.__gitEditRepoConfig) 835 self.gitRepoConfigAct.triggered.connect(self.__gitEditRepoConfig)
836 self.actions.append(self.gitRepoConfigAct) 836 self.actions.append(self.gitRepoConfigAct)
837 837
838 self.gitCreateIgnoreAct = E5Action( 838 self.gitCreateIgnoreAct = EricAction(
839 self.tr('Create .gitignore'), 839 self.tr('Create .gitignore'),
840 self.tr('Create .gitignore'), 840 self.tr('Create .gitignore'),
841 0, 0, self, 'git_create_ignore') 841 0, 0, self, 'git_create_ignore')
842 self.gitCreateIgnoreAct.setStatusTip(self.tr( 842 self.gitCreateIgnoreAct.setStatusTip(self.tr(
843 'Create a .gitignore file with default values' 843 'Create a .gitignore file with default values'
847 """<p>This creates a .gitignore file with default values.</p>""" 847 """<p>This creates a .gitignore file with default values.</p>"""
848 )) 848 ))
849 self.gitCreateIgnoreAct.triggered.connect(self.__gitCreateIgnore) 849 self.gitCreateIgnoreAct.triggered.connect(self.__gitCreateIgnore)
850 self.actions.append(self.gitCreateIgnoreAct) 850 self.actions.append(self.gitCreateIgnoreAct)
851 851
852 self.gitShowConfigAct = E5Action( 852 self.gitShowConfigAct = EricAction(
853 self.tr('Show combined configuration settings'), 853 self.tr('Show combined configuration settings'),
854 self.tr('Show combined configuration settings...'), 854 self.tr('Show combined configuration settings...'),
855 0, 0, self, 'git_show_config') 855 0, 0, self, 'git_show_config')
856 self.gitShowConfigAct.setStatusTip(self.tr( 856 self.gitShowConfigAct.setStatusTip(self.tr(
857 'Show the combined configuration settings from all configuration' 857 'Show the combined configuration settings from all configuration'
863 """ from all configuration files.</p>""" 863 """ from all configuration files.</p>"""
864 )) 864 ))
865 self.gitShowConfigAct.triggered.connect(self.__gitShowConfig) 865 self.gitShowConfigAct.triggered.connect(self.__gitShowConfig)
866 self.actions.append(self.gitShowConfigAct) 866 self.actions.append(self.gitShowConfigAct)
867 867
868 self.gitVerifyAct = E5Action( 868 self.gitVerifyAct = EricAction(
869 self.tr('Verify repository'), 869 self.tr('Verify repository'),
870 self.tr('Verify repository...'), 870 self.tr('Verify repository...'),
871 0, 0, self, 'git_verify') 871 0, 0, self, 'git_verify')
872 self.gitVerifyAct.setStatusTip(self.tr( 872 self.gitVerifyAct.setStatusTip(self.tr(
873 'Verify the connectivity and validity of objects of the database' 873 'Verify the connectivity and validity of objects of the database'
878 """ of the database.</p>""" 878 """ of the database.</p>"""
879 )) 879 ))
880 self.gitVerifyAct.triggered.connect(self.__gitVerify) 880 self.gitVerifyAct.triggered.connect(self.__gitVerify)
881 self.actions.append(self.gitVerifyAct) 881 self.actions.append(self.gitVerifyAct)
882 882
883 self.gitHouseKeepingAct = E5Action( 883 self.gitHouseKeepingAct = EricAction(
884 self.tr('Optimize repository'), 884 self.tr('Optimize repository'),
885 self.tr('Optimize repository...'), 885 self.tr('Optimize repository...'),
886 0, 0, self, 'git_housekeeping') 886 0, 0, self, 'git_housekeeping')
887 self.gitHouseKeepingAct.setStatusTip(self.tr( 887 self.gitHouseKeepingAct.setStatusTip(self.tr(
888 'Cleanup and optimize the local repository' 888 'Cleanup and optimize the local repository'
892 """<p>This cleans up and optimizes the local repository.</p>""" 892 """<p>This cleans up and optimizes the local repository.</p>"""
893 )) 893 ))
894 self.gitHouseKeepingAct.triggered.connect(self.__gitHouseKeeping) 894 self.gitHouseKeepingAct.triggered.connect(self.__gitHouseKeeping)
895 self.actions.append(self.gitHouseKeepingAct) 895 self.actions.append(self.gitHouseKeepingAct)
896 896
897 self.gitStatisticsAct = E5Action( 897 self.gitStatisticsAct = EricAction(
898 self.tr('Repository Statistics'), 898 self.tr('Repository Statistics'),
899 self.tr('Repository Statistics...'), 899 self.tr('Repository Statistics...'),
900 0, 0, self, 'git_statistics') 900 0, 0, self, 'git_statistics')
901 self.gitStatisticsAct.setStatusTip(self.tr( 901 self.gitStatisticsAct.setStatusTip(self.tr(
902 'Show some statistics of the local repository' 902 'Show some statistics of the local repository'
906 """<p>This show some statistics of the local repository.</p>""" 906 """<p>This show some statistics of the local repository.</p>"""
907 )) 907 ))
908 self.gitStatisticsAct.triggered.connect(self.__gitStatistics) 908 self.gitStatisticsAct.triggered.connect(self.__gitStatistics)
909 self.actions.append(self.gitStatisticsAct) 909 self.actions.append(self.gitStatisticsAct)
910 910
911 self.gitCreateArchiveAct = E5Action( 911 self.gitCreateArchiveAct = EricAction(
912 self.tr('Create Archive'), 912 self.tr('Create Archive'),
913 self.tr('Create Archive'), 913 self.tr('Create Archive'),
914 0, 0, self, 'git_create_archive') 914 0, 0, self, 'git_create_archive')
915 self.gitCreateArchiveAct.setStatusTip(self.tr( 915 self.gitCreateArchiveAct.setStatusTip(self.tr(
916 'Create an archive from the local repository' 916 'Create an archive from the local repository'
920 """<p>This creates an archive from the local repository.</p>""" 920 """<p>This creates an archive from the local repository.</p>"""
921 )) 921 ))
922 self.gitCreateArchiveAct.triggered.connect(self.__gitCreateArchive) 922 self.gitCreateArchiveAct.triggered.connect(self.__gitCreateArchive)
923 self.actions.append(self.gitCreateArchiveAct) 923 self.actions.append(self.gitCreateArchiveAct)
924 924
925 self.gitBundleAct = E5Action( 925 self.gitBundleAct = EricAction(
926 self.tr('Create bundle'), 926 self.tr('Create bundle'),
927 self.tr('Create bundle...'), 927 self.tr('Create bundle...'),
928 0, 0, self, 'mercurial_bundle_create') 928 0, 0, self, 'mercurial_bundle_create')
929 self.gitBundleAct.setStatusTip(self.tr( 929 self.gitBundleAct.setStatusTip(self.tr(
930 'Create bundle file collecting changesets' 930 'Create bundle file collecting changesets'
935 """ changesets (git bundle create).</p>""" 935 """ changesets (git bundle create).</p>"""
936 )) 936 ))
937 self.gitBundleAct.triggered.connect(self.__gitBundle) 937 self.gitBundleAct.triggered.connect(self.__gitBundle)
938 self.actions.append(self.gitBundleAct) 938 self.actions.append(self.gitBundleAct)
939 939
940 self.gitBundleVerifyAct = E5Action( 940 self.gitBundleVerifyAct = EricAction(
941 self.tr('Verify bundle'), 941 self.tr('Verify bundle'),
942 self.tr('Verify bundle...'), 942 self.tr('Verify bundle...'),
943 0, 0, self, 'mercurial_bundle_verify') 943 0, 0, self, 'mercurial_bundle_verify')
944 self.gitBundleVerifyAct.setStatusTip(self.tr( 944 self.gitBundleVerifyAct.setStatusTip(self.tr(
945 'Verify the validity and applicability of a bundle file' 945 'Verify the validity and applicability of a bundle file'
950 """ apply cleanly.</p>""" 950 """ apply cleanly.</p>"""
951 )) 951 ))
952 self.gitBundleVerifyAct.triggered.connect(self.__gitVerifyBundle) 952 self.gitBundleVerifyAct.triggered.connect(self.__gitVerifyBundle)
953 self.actions.append(self.gitBundleVerifyAct) 953 self.actions.append(self.gitBundleVerifyAct)
954 954
955 self.gitBundleListHeadsAct = E5Action( 955 self.gitBundleListHeadsAct = EricAction(
956 self.tr('List bundle heads'), 956 self.tr('List bundle heads'),
957 self.tr('List bundle heads...'), 957 self.tr('List bundle heads...'),
958 0, 0, self, 'mercurial_bundle_list_heads') 958 0, 0, self, 'mercurial_bundle_list_heads')
959 self.gitBundleListHeadsAct.setStatusTip(self.tr( 959 self.gitBundleListHeadsAct.setStatusTip(self.tr(
960 'List all heads contained in a bundle file' 960 'List all heads contained in a bundle file'
964 """<p>This lists all heads contained in a bundle file.</p>""" 964 """<p>This lists all heads contained in a bundle file.</p>"""
965 )) 965 ))
966 self.gitBundleListHeadsAct.triggered.connect(self.__gitBundleListHeads) 966 self.gitBundleListHeadsAct.triggered.connect(self.__gitBundleListHeads)
967 self.actions.append(self.gitBundleListHeadsAct) 967 self.actions.append(self.gitBundleListHeadsAct)
968 968
969 self.gitBundleApplyFetchAct = E5Action( 969 self.gitBundleApplyFetchAct = EricAction(
970 self.tr('Apply Bundle (fetch)'), 970 self.tr('Apply Bundle (fetch)'),
971 self.tr('Apply Bundle (fetch)...'), 971 self.tr('Apply Bundle (fetch)...'),
972 0, 0, self, 'mercurial_bundle_apply_fetch') 972 0, 0, self, 'mercurial_bundle_apply_fetch')
973 self.gitBundleApplyFetchAct.setStatusTip(self.tr( 973 self.gitBundleApplyFetchAct.setStatusTip(self.tr(
974 'Apply a head of a bundle file using fetch' 974 'Apply a head of a bundle file using fetch'
978 """<p>This applies a head of a bundle file using fetch.</p>""" 978 """<p>This applies a head of a bundle file using fetch.</p>"""
979 )) 979 ))
980 self.gitBundleApplyFetchAct.triggered.connect(self.__gitBundleFetch) 980 self.gitBundleApplyFetchAct.triggered.connect(self.__gitBundleFetch)
981 self.actions.append(self.gitBundleApplyFetchAct) 981 self.actions.append(self.gitBundleApplyFetchAct)
982 982
983 self.gitBundleApplyPullAct = E5Action( 983 self.gitBundleApplyPullAct = EricAction(
984 self.tr('Apply Bundle (pull)'), 984 self.tr('Apply Bundle (pull)'),
985 self.tr('Apply Bundle (pull)...'), 985 self.tr('Apply Bundle (pull)...'),
986 0, 0, self, 'mercurial_bundle_apply_pull') 986 0, 0, self, 'mercurial_bundle_apply_pull')
987 self.gitBundleApplyPullAct.setStatusTip(self.tr( 987 self.gitBundleApplyPullAct.setStatusTip(self.tr(
988 'Apply a head of a bundle file using pull' 988 'Apply a head of a bundle file using pull'
992 """<p>This applies a head of a bundle file using pull.</p>""" 992 """<p>This applies a head of a bundle file using pull.</p>"""
993 )) 993 ))
994 self.gitBundleApplyPullAct.triggered.connect(self.__gitBundlePull) 994 self.gitBundleApplyPullAct.triggered.connect(self.__gitBundlePull)
995 self.actions.append(self.gitBundleApplyPullAct) 995 self.actions.append(self.gitBundleApplyPullAct)
996 996
997 self.gitBisectStartAct = E5Action( 997 self.gitBisectStartAct = EricAction(
998 self.tr('Start'), 998 self.tr('Start'),
999 self.tr('Start'), 999 self.tr('Start'),
1000 0, 0, self, 'git_bisect_start') 1000 0, 0, self, 'git_bisect_start')
1001 self.gitBisectStartAct.setStatusTip(self.tr( 1001 self.gitBisectStartAct.setStatusTip(self.tr(
1002 'Start a bisect session' 1002 'Start a bisect session'
1006 """<p>This starts a bisect session.</p>""" 1006 """<p>This starts a bisect session.</p>"""
1007 )) 1007 ))
1008 self.gitBisectStartAct.triggered.connect(self.__gitBisectStart) 1008 self.gitBisectStartAct.triggered.connect(self.__gitBisectStart)
1009 self.actions.append(self.gitBisectStartAct) 1009 self.actions.append(self.gitBisectStartAct)
1010 1010
1011 self.gitBisectStartExtendedAct = E5Action( 1011 self.gitBisectStartExtendedAct = EricAction(
1012 self.tr('Start (Extended)'), 1012 self.tr('Start (Extended)'),
1013 self.tr('Start (Extended)'), 1013 self.tr('Start (Extended)'),
1014 0, 0, self, 'git_bisect_start_extended') 1014 0, 0, self, 'git_bisect_start_extended')
1015 self.gitBisectStartExtendedAct.setStatusTip(self.tr( 1015 self.gitBisectStartExtendedAct.setStatusTip(self.tr(
1016 'Start a bisect session giving a bad and optionally good commits' 1016 'Start a bisect session giving a bad and optionally good commits'
1022 )) 1022 ))
1023 self.gitBisectStartExtendedAct.triggered.connect( 1023 self.gitBisectStartExtendedAct.triggered.connect(
1024 self.__gitBisectStartExtended) 1024 self.__gitBisectStartExtended)
1025 self.actions.append(self.gitBisectStartExtendedAct) 1025 self.actions.append(self.gitBisectStartExtendedAct)
1026 1026
1027 self.gitBisectGoodAct = E5Action( 1027 self.gitBisectGoodAct = EricAction(
1028 self.tr('Mark as "good"'), 1028 self.tr('Mark as "good"'),
1029 self.tr('Mark as "good"...'), 1029 self.tr('Mark as "good"...'),
1030 0, 0, self, 'git_bisect_good') 1030 0, 0, self, 'git_bisect_good')
1031 self.gitBisectGoodAct.setStatusTip(self.tr( 1031 self.gitBisectGoodAct.setStatusTip(self.tr(
1032 'Mark a selectable revision as good' 1032 'Mark a selectable revision as good'
1036 """<p>This marks a selectable revision as good.</p>""" 1036 """<p>This marks a selectable revision as good.</p>"""
1037 )) 1037 ))
1038 self.gitBisectGoodAct.triggered.connect(self.__gitBisectGood) 1038 self.gitBisectGoodAct.triggered.connect(self.__gitBisectGood)
1039 self.actions.append(self.gitBisectGoodAct) 1039 self.actions.append(self.gitBisectGoodAct)
1040 1040
1041 self.gitBisectBadAct = E5Action( 1041 self.gitBisectBadAct = EricAction(
1042 self.tr('Mark as "bad"'), 1042 self.tr('Mark as "bad"'),
1043 self.tr('Mark as "bad"...'), 1043 self.tr('Mark as "bad"...'),
1044 0, 0, self, 'git_bisect_bad') 1044 0, 0, self, 'git_bisect_bad')
1045 self.gitBisectBadAct.setStatusTip(self.tr( 1045 self.gitBisectBadAct.setStatusTip(self.tr(
1046 'Mark a selectable revision as bad' 1046 'Mark a selectable revision as bad'
1050 """<p>This marks a selectable revision as bad.</p>""" 1050 """<p>This marks a selectable revision as bad.</p>"""
1051 )) 1051 ))
1052 self.gitBisectBadAct.triggered.connect(self.__gitBisectBad) 1052 self.gitBisectBadAct.triggered.connect(self.__gitBisectBad)
1053 self.actions.append(self.gitBisectBadAct) 1053 self.actions.append(self.gitBisectBadAct)
1054 1054
1055 self.gitBisectSkipAct = E5Action( 1055 self.gitBisectSkipAct = EricAction(
1056 self.tr('Skip'), 1056 self.tr('Skip'),
1057 self.tr('Skip...'), 1057 self.tr('Skip...'),
1058 0, 0, self, 'git_bisect_skip') 1058 0, 0, self, 'git_bisect_skip')
1059 self.gitBisectSkipAct.setStatusTip(self.tr( 1059 self.gitBisectSkipAct.setStatusTip(self.tr(
1060 'Skip a selectable revision' 1060 'Skip a selectable revision'
1064 """<p>This skips a selectable revision.</p>""" 1064 """<p>This skips a selectable revision.</p>"""
1065 )) 1065 ))
1066 self.gitBisectSkipAct.triggered.connect(self.__gitBisectSkip) 1066 self.gitBisectSkipAct.triggered.connect(self.__gitBisectSkip)
1067 self.actions.append(self.gitBisectSkipAct) 1067 self.actions.append(self.gitBisectSkipAct)
1068 1068
1069 self.gitBisectResetAct = E5Action( 1069 self.gitBisectResetAct = EricAction(
1070 self.tr('Reset'), 1070 self.tr('Reset'),
1071 self.tr('Reset...'), 1071 self.tr('Reset...'),
1072 0, 0, self, 'git_bisect_reset') 1072 0, 0, self, 'git_bisect_reset')
1073 self.gitBisectResetAct.setStatusTip(self.tr( 1073 self.gitBisectResetAct.setStatusTip(self.tr(
1074 'Reset the bisect session' 1074 'Reset the bisect session'
1078 """<p>This resets the bisect session.</p>""" 1078 """<p>This resets the bisect session.</p>"""
1079 )) 1079 ))
1080 self.gitBisectResetAct.triggered.connect(self.__gitBisectReset) 1080 self.gitBisectResetAct.triggered.connect(self.__gitBisectReset)
1081 self.actions.append(self.gitBisectResetAct) 1081 self.actions.append(self.gitBisectResetAct)
1082 1082
1083 self.gitBisectLogBrowserAct = E5Action( 1083 self.gitBisectLogBrowserAct = EricAction(
1084 self.tr('Show bisect log browser'), 1084 self.tr('Show bisect log browser'),
1085 UI.PixmapCache.getIcon("vcsLog"), 1085 UI.PixmapCache.getIcon("vcsLog"),
1086 self.tr('Show bisect log browser'), 1086 self.tr('Show bisect log browser'),
1087 0, 0, self, 'git_bisect_log_browser') 1087 0, 0, self, 'git_bisect_log_browser')
1088 self.gitBisectLogBrowserAct.setStatusTip(self.tr( 1088 self.gitBisectLogBrowserAct.setStatusTip(self.tr(
1095 )) 1095 ))
1096 self.gitBisectLogBrowserAct.triggered.connect( 1096 self.gitBisectLogBrowserAct.triggered.connect(
1097 self.__gitBisectLogBrowser) 1097 self.__gitBisectLogBrowser)
1098 self.actions.append(self.gitBisectLogBrowserAct) 1098 self.actions.append(self.gitBisectLogBrowserAct)
1099 1099
1100 self.gitBisectCreateReplayAct = E5Action( 1100 self.gitBisectCreateReplayAct = EricAction(
1101 self.tr('Create replay file'), 1101 self.tr('Create replay file'),
1102 self.tr('Create replay file'), 1102 self.tr('Create replay file'),
1103 0, 0, self, 'git_bisect_create_replay') 1103 0, 0, self, 'git_bisect_create_replay')
1104 self.gitBisectCreateReplayAct.setStatusTip(self.tr( 1104 self.gitBisectCreateReplayAct.setStatusTip(self.tr(
1105 'Create a replay file to repeat the current bisect session' 1105 'Create a replay file to repeat the current bisect session'
1111 )) 1111 ))
1112 self.gitBisectCreateReplayAct.triggered.connect( 1112 self.gitBisectCreateReplayAct.triggered.connect(
1113 self.__gitBisectCreateReplay) 1113 self.__gitBisectCreateReplay)
1114 self.actions.append(self.gitBisectCreateReplayAct) 1114 self.actions.append(self.gitBisectCreateReplayAct)
1115 1115
1116 self.gitBisectEditReplayAct = E5Action( 1116 self.gitBisectEditReplayAct = EricAction(
1117 self.tr('Edit replay file'), 1117 self.tr('Edit replay file'),
1118 self.tr('Edit replay file'), 1118 self.tr('Edit replay file'),
1119 0, 0, self, 'git_bisect_edit_replay') 1119 0, 0, self, 'git_bisect_edit_replay')
1120 self.gitBisectEditReplayAct.setStatusTip(self.tr( 1120 self.gitBisectEditReplayAct.setStatusTip(self.tr(
1121 'Edit a bisect replay file' 1121 'Edit a bisect replay file'
1126 )) 1126 ))
1127 self.gitBisectEditReplayAct.triggered.connect( 1127 self.gitBisectEditReplayAct.triggered.connect(
1128 self.__gitBisectEditReplay) 1128 self.__gitBisectEditReplay)
1129 self.actions.append(self.gitBisectEditReplayAct) 1129 self.actions.append(self.gitBisectEditReplayAct)
1130 1130
1131 self.gitBisectReplayAct = E5Action( 1131 self.gitBisectReplayAct = EricAction(
1132 self.tr('Replay session'), 1132 self.tr('Replay session'),
1133 self.tr('Replay session'), 1133 self.tr('Replay session'),
1134 0, 0, self, 'git_bisect_replay') 1134 0, 0, self, 'git_bisect_replay')
1135 self.gitBisectReplayAct.setStatusTip(self.tr( 1135 self.gitBisectReplayAct.setStatusTip(self.tr(
1136 'Replay a bisect session from file' 1136 'Replay a bisect session from file'
1140 """<p>This replays a bisect session from file.</p>""" 1140 """<p>This replays a bisect session from file.</p>"""
1141 )) 1141 ))
1142 self.gitBisectReplayAct.triggered.connect(self.__gitBisectReplay) 1142 self.gitBisectReplayAct.triggered.connect(self.__gitBisectReplay)
1143 self.actions.append(self.gitBisectReplayAct) 1143 self.actions.append(self.gitBisectReplayAct)
1144 1144
1145 self.gitCheckPatchesAct = E5Action( 1145 self.gitCheckPatchesAct = EricAction(
1146 self.tr('Check patch files'), 1146 self.tr('Check patch files'),
1147 self.tr('Check patch files'), 1147 self.tr('Check patch files'),
1148 0, 0, self, 'git_check_patches') 1148 0, 0, self, 'git_check_patches')
1149 self.gitCheckPatchesAct.setStatusTip(self.tr( 1149 self.gitCheckPatchesAct.setStatusTip(self.tr(
1150 'Check a list of patch files, if they would apply cleanly' 1150 'Check a list of patch files, if they would apply cleanly'
1155 """ cleanly.</p>""" 1155 """ cleanly.</p>"""
1156 )) 1156 ))
1157 self.gitCheckPatchesAct.triggered.connect(self.__gitCheckPatches) 1157 self.gitCheckPatchesAct.triggered.connect(self.__gitCheckPatches)
1158 self.actions.append(self.gitCheckPatchesAct) 1158 self.actions.append(self.gitCheckPatchesAct)
1159 1159
1160 self.gitApplyPatchesAct = E5Action( 1160 self.gitApplyPatchesAct = EricAction(
1161 self.tr('Apply patch files'), 1161 self.tr('Apply patch files'),
1162 self.tr('Apply patch files'), 1162 self.tr('Apply patch files'),
1163 0, 0, self, 'git_apply_patches') 1163 0, 0, self, 'git_apply_patches')
1164 self.gitApplyPatchesAct.setStatusTip(self.tr( 1164 self.gitApplyPatchesAct.setStatusTip(self.tr(
1165 'Apply a list of patch files' 1165 'Apply a list of patch files'
1169 """<p>This applies a list of patch files.</p>""" 1169 """<p>This applies a list of patch files.</p>"""
1170 )) 1170 ))
1171 self.gitApplyPatchesAct.triggered.connect(self.__gitApplyPatches) 1171 self.gitApplyPatchesAct.triggered.connect(self.__gitApplyPatches)
1172 self.actions.append(self.gitApplyPatchesAct) 1172 self.actions.append(self.gitApplyPatchesAct)
1173 1173
1174 self.gitShowPatcheStatisticsAct = E5Action( 1174 self.gitShowPatcheStatisticsAct = EricAction(
1175 self.tr('Show patch statistics'), 1175 self.tr('Show patch statistics'),
1176 self.tr('Show patch statistics'), 1176 self.tr('Show patch statistics'),
1177 0, 0, self, 'git_show_patches_statistics') 1177 0, 0, self, 'git_show_patches_statistics')
1178 self.gitShowPatcheStatisticsAct.setStatusTip(self.tr( 1178 self.gitShowPatcheStatisticsAct.setStatusTip(self.tr(
1179 'Show some statistics for a list of patch files' 1179 'Show some statistics for a list of patch files'
1184 )) 1184 ))
1185 self.gitShowPatcheStatisticsAct.triggered.connect( 1185 self.gitShowPatcheStatisticsAct.triggered.connect(
1186 self.__gitShowPatchStatistics) 1186 self.__gitShowPatchStatistics)
1187 self.actions.append(self.gitShowPatcheStatisticsAct) 1187 self.actions.append(self.gitShowPatcheStatisticsAct)
1188 1188
1189 self.gitSubmoduleAddAct = E5Action( 1189 self.gitSubmoduleAddAct = EricAction(
1190 self.tr('Add'), 1190 self.tr('Add'),
1191 self.tr('Add'), 1191 self.tr('Add'),
1192 0, 0, self, 'git_submodule_add') 1192 0, 0, self, 'git_submodule_add')
1193 self.gitSubmoduleAddAct.setStatusTip(self.tr( 1193 self.gitSubmoduleAddAct.setStatusTip(self.tr(
1194 'Add a submodule to the current project' 1194 'Add a submodule to the current project'
1199 )) 1199 ))
1200 self.gitSubmoduleAddAct.triggered.connect( 1200 self.gitSubmoduleAddAct.triggered.connect(
1201 self.__gitSubmoduleAdd) 1201 self.__gitSubmoduleAdd)
1202 self.actions.append(self.gitSubmoduleAddAct) 1202 self.actions.append(self.gitSubmoduleAddAct)
1203 1203
1204 self.gitSubmodulesListAct = E5Action( 1204 self.gitSubmodulesListAct = EricAction(
1205 self.tr('List'), 1205 self.tr('List'),
1206 self.tr('List'), 1206 self.tr('List'),
1207 0, 0, self, 'git_submodules_list') 1207 0, 0, self, 'git_submodules_list')
1208 self.gitSubmodulesListAct.setStatusTip(self.tr( 1208 self.gitSubmodulesListAct.setStatusTip(self.tr(
1209 'List the submodule of the current project' 1209 'List the submodule of the current project'
1214 )) 1214 ))
1215 self.gitSubmodulesListAct.triggered.connect( 1215 self.gitSubmodulesListAct.triggered.connect(
1216 self.__gitSubmodulesList) 1216 self.__gitSubmodulesList)
1217 self.actions.append(self.gitSubmodulesListAct) 1217 self.actions.append(self.gitSubmodulesListAct)
1218 1218
1219 self.gitSubmodulesInitAct = E5Action( 1219 self.gitSubmodulesInitAct = EricAction(
1220 self.tr('Initialize'), 1220 self.tr('Initialize'),
1221 self.tr('Initialize'), 1221 self.tr('Initialize'),
1222 0, 0, self, 'git_submodules_init') 1222 0, 0, self, 'git_submodules_init')
1223 self.gitSubmodulesInitAct.setStatusTip(self.tr( 1223 self.gitSubmodulesInitAct.setStatusTip(self.tr(
1224 'Initialize the submodules of the current project' 1224 'Initialize the submodules of the current project'
1230 )) 1230 ))
1231 self.gitSubmodulesInitAct.triggered.connect( 1231 self.gitSubmodulesInitAct.triggered.connect(
1232 self.__gitSubmodulesInit) 1232 self.__gitSubmodulesInit)
1233 self.actions.append(self.gitSubmodulesInitAct) 1233 self.actions.append(self.gitSubmodulesInitAct)
1234 1234
1235 self.gitSubmodulesDeinitAct = E5Action( 1235 self.gitSubmodulesDeinitAct = EricAction(
1236 self.tr('Unregister'), 1236 self.tr('Unregister'),
1237 self.tr('Unregister'), 1237 self.tr('Unregister'),
1238 0, 0, self, 'git_submodules_deinit') 1238 0, 0, self, 'git_submodules_deinit')
1239 self.gitSubmodulesDeinitAct.setStatusTip(self.tr( 1239 self.gitSubmodulesDeinitAct.setStatusTip(self.tr(
1240 'Unregister submodules of the current project' 1240 'Unregister submodules of the current project'
1245 )) 1245 ))
1246 self.gitSubmodulesDeinitAct.triggered.connect( 1246 self.gitSubmodulesDeinitAct.triggered.connect(
1247 self.__gitSubmodulesDeinit) 1247 self.__gitSubmodulesDeinit)
1248 self.actions.append(self.gitSubmodulesDeinitAct) 1248 self.actions.append(self.gitSubmodulesDeinitAct)
1249 1249
1250 self.gitSubmodulesUpdateAct = E5Action( 1250 self.gitSubmodulesUpdateAct = EricAction(
1251 self.tr('Update'), 1251 self.tr('Update'),
1252 self.tr('Update'), 1252 self.tr('Update'),
1253 0, 0, self, 'git_submodules_update') 1253 0, 0, self, 'git_submodules_update')
1254 self.gitSubmodulesUpdateAct.setStatusTip(self.tr( 1254 self.gitSubmodulesUpdateAct.setStatusTip(self.tr(
1255 'Update submodules of the current project' 1255 'Update submodules of the current project'
1260 )) 1260 ))
1261 self.gitSubmodulesUpdateAct.triggered.connect( 1261 self.gitSubmodulesUpdateAct.triggered.connect(
1262 self.__gitSubmodulesUpdate) 1262 self.__gitSubmodulesUpdate)
1263 self.actions.append(self.gitSubmodulesUpdateAct) 1263 self.actions.append(self.gitSubmodulesUpdateAct)
1264 1264
1265 self.gitSubmodulesUpdateInitAct = E5Action( 1265 self.gitSubmodulesUpdateInitAct = EricAction(
1266 self.tr('Initialize and Update'), 1266 self.tr('Initialize and Update'),
1267 self.tr('Initialize and Update'), 1267 self.tr('Initialize and Update'),
1268 0, 0, self, 'git_submodules_update_init') 1268 0, 0, self, 'git_submodules_update_init')
1269 self.gitSubmodulesUpdateInitAct.setStatusTip(self.tr( 1269 self.gitSubmodulesUpdateInitAct.setStatusTip(self.tr(
1270 'Initialize and update submodules of the current project' 1270 'Initialize and update submodules of the current project'
1276 )) 1276 ))
1277 self.gitSubmodulesUpdateInitAct.triggered.connect( 1277 self.gitSubmodulesUpdateInitAct.triggered.connect(
1278 self.__gitSubmodulesUpdateInit) 1278 self.__gitSubmodulesUpdateInit)
1279 self.actions.append(self.gitSubmodulesUpdateInitAct) 1279 self.actions.append(self.gitSubmodulesUpdateInitAct)
1280 1280
1281 self.gitSubmodulesUpdateRemoteAct = E5Action( 1281 self.gitSubmodulesUpdateRemoteAct = EricAction(
1282 self.tr('Fetch and Update'), 1282 self.tr('Fetch and Update'),
1283 self.tr('Fetch and Update'), 1283 self.tr('Fetch and Update'),
1284 0, 0, self, 'git_submodules_update_remote') 1284 0, 0, self, 'git_submodules_update_remote')
1285 self.gitSubmodulesUpdateRemoteAct.setStatusTip(self.tr( 1285 self.gitSubmodulesUpdateRemoteAct.setStatusTip(self.tr(
1286 'Fetch and update submodules of the current project' 1286 'Fetch and update submodules of the current project'
1292 )) 1292 ))
1293 self.gitSubmodulesUpdateRemoteAct.triggered.connect( 1293 self.gitSubmodulesUpdateRemoteAct.triggered.connect(
1294 self.__gitSubmodulesUpdateRemote) 1294 self.__gitSubmodulesUpdateRemote)
1295 self.actions.append(self.gitSubmodulesUpdateRemoteAct) 1295 self.actions.append(self.gitSubmodulesUpdateRemoteAct)
1296 1296
1297 self.gitSubmodulesUpdateOptionsAct = E5Action( 1297 self.gitSubmodulesUpdateOptionsAct = EricAction(
1298 self.tr('Update with Options'), 1298 self.tr('Update with Options'),
1299 self.tr('Update with Options'), 1299 self.tr('Update with Options'),
1300 0, 0, self, 'git_submodules_update_options') 1300 0, 0, self, 'git_submodules_update_options')
1301 self.gitSubmodulesUpdateOptionsAct.setStatusTip(self.tr( 1301 self.gitSubmodulesUpdateOptionsAct.setStatusTip(self.tr(
1302 'Update submodules of the current project offering a dialog' 1302 'Update submodules of the current project offering a dialog'
1309 )) 1309 ))
1310 self.gitSubmodulesUpdateOptionsAct.triggered.connect( 1310 self.gitSubmodulesUpdateOptionsAct.triggered.connect(
1311 self.__gitSubmodulesUpdateOptions) 1311 self.__gitSubmodulesUpdateOptions)
1312 self.actions.append(self.gitSubmodulesUpdateOptionsAct) 1312 self.actions.append(self.gitSubmodulesUpdateOptionsAct)
1313 1313
1314 self.gitSubmodulesSyncAct = E5Action( 1314 self.gitSubmodulesSyncAct = EricAction(
1315 self.tr('Synchronize URLs'), 1315 self.tr('Synchronize URLs'),
1316 self.tr('Synchronize URLs'), 1316 self.tr('Synchronize URLs'),
1317 0, 0, self, 'git_submodules_sync') 1317 0, 0, self, 'git_submodules_sync')
1318 self.gitSubmodulesSyncAct.setStatusTip(self.tr( 1318 self.gitSubmodulesSyncAct.setStatusTip(self.tr(
1319 'Synchronize URLs of submodules of the current project' 1319 'Synchronize URLs of submodules of the current project'
1325 )) 1325 ))
1326 self.gitSubmodulesSyncAct.triggered.connect( 1326 self.gitSubmodulesSyncAct.triggered.connect(
1327 self.__gitSubmodulesSync) 1327 self.__gitSubmodulesSync)
1328 self.actions.append(self.gitSubmodulesSyncAct) 1328 self.actions.append(self.gitSubmodulesSyncAct)
1329 1329
1330 self.gitSubmodulesStatusAct = E5Action( 1330 self.gitSubmodulesStatusAct = EricAction(
1331 self.tr('Show Status'), 1331 self.tr('Show Status'),
1332 self.tr('Show Status'), 1332 self.tr('Show Status'),
1333 0, 0, self, 'git_submodules_status') 1333 0, 0, self, 'git_submodules_status')
1334 self.gitSubmodulesStatusAct.setStatusTip(self.tr( 1334 self.gitSubmodulesStatusAct.setStatusTip(self.tr(
1335 'Show the status of submodules of the current project' 1335 'Show the status of submodules of the current project'
1341 )) 1341 ))
1342 self.gitSubmodulesStatusAct.triggered.connect( 1342 self.gitSubmodulesStatusAct.triggered.connect(
1343 self.__gitSubmodulesStatus) 1343 self.__gitSubmodulesStatus)
1344 self.actions.append(self.gitSubmodulesStatusAct) 1344 self.actions.append(self.gitSubmodulesStatusAct)
1345 1345
1346 self.gitSubmodulesSummaryAct = E5Action( 1346 self.gitSubmodulesSummaryAct = EricAction(
1347 self.tr('Show Summary'), 1347 self.tr('Show Summary'),
1348 self.tr('Show Summary'), 1348 self.tr('Show Summary'),
1349 0, 0, self, 'git_submodules_summary') 1349 0, 0, self, 'git_submodules_summary')
1350 self.gitSubmodulesSummaryAct.setStatusTip(self.tr( 1350 self.gitSubmodulesSummaryAct.setStatusTip(self.tr(
1351 'Show summary information for submodules of the current project' 1351 'Show summary information for submodules of the current project'
1561 """ 1561 """
1562 Public slot to initialize the VCS toolbar. 1562 Public slot to initialize the VCS toolbar.
1563 1563
1564 @param ui reference to the main window (UserInterface) 1564 @param ui reference to the main window (UserInterface)
1565 @param toolbarManager reference to a toolbar manager object 1565 @param toolbarManager reference to a toolbar manager object
1566 (E5ToolBarManager) 1566 (EricToolBarManager)
1567 """ 1567 """
1568 self.__toolbar = QToolBar(self.tr("Git"), ui) 1568 self.__toolbar = QToolBar(self.tr("Git"), ui)
1569 self.__toolbar.setIconSize(UI.Config.ToolBarIconSize) 1569 self.__toolbar.setIconSize(UI.Config.ToolBarIconSize)
1570 self.__toolbar.setObjectName("GitToolbar") 1570 self.__toolbar.setObjectName("GitToolbar")
1571 self.__toolbar.setToolTip(self.tr('Git')) 1571 self.__toolbar.setToolTip(self.tr('Git'))
1607 """ 1607 """
1608 Public method to remove a toolbar created by initToolbar(). 1608 Public method to remove a toolbar created by initToolbar().
1609 1609
1610 @param ui reference to the main window (UserInterface) 1610 @param ui reference to the main window (UserInterface)
1611 @param toolbarManager reference to a toolbar manager object 1611 @param toolbarManager reference to a toolbar manager object
1612 (E5ToolBarManager) 1612 (EricToolBarManager)
1613 """ 1613 """
1614 ui.removeToolBar(self.__toolbar) 1614 ui.removeToolBar(self.__toolbar)
1615 ui.unregisterToolbar("git") 1615 ui.unregisterToolbar("git")
1616 1616
1617 title = self.__toolbar.windowTitle() 1617 title = self.__toolbar.windowTitle()
1671 shouldReopen = ( 1671 shouldReopen = (
1672 self.vcs.gitBranch(self.project.getProjectPath())[1] or 1672 self.vcs.gitBranch(self.project.getProjectPath())[1] or
1673 QFileInfo(pfile).lastModified().toString() != lastModified 1673 QFileInfo(pfile).lastModified().toString() != lastModified
1674 ) 1674 )
1675 if shouldReopen: 1675 if shouldReopen:
1676 res = E5MessageBox.yesNo( 1676 res = EricMessageBox.yesNo(
1677 self.parent(), 1677 self.parent(),
1678 self.tr("Branch"), 1678 self.tr("Branch"),
1679 self.tr("""The project should be reread. Do this now?"""), 1679 self.tr("""The project should be reread. Do this now?"""),
1680 yesDefault=True) 1680 yesDefault=True)
1681 if res: 1681 if res:
1715 shouldReopen = ( 1715 shouldReopen = (
1716 self.vcs.gitPull(self.project.getProjectPath()) or 1716 self.vcs.gitPull(self.project.getProjectPath()) or
1717 QFileInfo(pfile).lastModified().toString() != lastModified 1717 QFileInfo(pfile).lastModified().toString() != lastModified
1718 ) 1718 )
1719 if shouldReopen: 1719 if shouldReopen:
1720 res = E5MessageBox.yesNo( 1720 res = EricMessageBox.yesNo(
1721 self.parent(), 1721 self.parent(),
1722 self.tr("Pull"), 1722 self.tr("Pull"),
1723 self.tr("""The project should be reread. Do this now?"""), 1723 self.tr("""The project should be reread. Do this now?"""),
1724 yesDefault=True) 1724 yesDefault=True)
1725 if res: 1725 if res:
1740 shouldReopen = ( 1740 shouldReopen = (
1741 self.vcs.gitRevert(self.project.getProjectPath()) or 1741 self.vcs.gitRevert(self.project.getProjectPath()) or
1742 QFileInfo(pfile).lastModified().toString() != lastModified 1742 QFileInfo(pfile).lastModified().toString() != lastModified
1743 ) 1743 )
1744 if shouldReopen: 1744 if shouldReopen:
1745 res = E5MessageBox.yesNo( 1745 res = EricMessageBox.yesNo(
1746 self.parent(), 1746 self.parent(),
1747 self.tr("Revert Changes"), 1747 self.tr("Revert Changes"),
1748 self.tr("""The project should be reread. Do this now?"""), 1748 self.tr("""The project should be reread. Do this now?"""),
1749 yesDefault=True) 1749 yesDefault=True)
1750 if res: 1750 if res:
1759 shouldReopen = ( 1759 shouldReopen = (
1760 self.vcs.gitUnstage(self.project.getProjectPath()) or 1760 self.vcs.gitUnstage(self.project.getProjectPath()) or
1761 QFileInfo(pfile).lastModified().toString() != lastModified 1761 QFileInfo(pfile).lastModified().toString() != lastModified
1762 ) 1762 )
1763 if shouldReopen: 1763 if shouldReopen:
1764 res = E5MessageBox.yesNo( 1764 res = EricMessageBox.yesNo(
1765 self.parent(), 1765 self.parent(),
1766 self.tr("Unstage Changes"), 1766 self.tr("Unstage Changes"),
1767 self.tr("""The project should be reread. Do this now?"""), 1767 self.tr("""The project should be reread. Do this now?"""),
1768 yesDefault=True) 1768 yesDefault=True)
1769 if res: 1769 if res:
1888 shouldReopen = ( 1888 shouldReopen = (
1889 self.vcs.gitCherryPick(self.project.getProjectPath()) or 1889 self.vcs.gitCherryPick(self.project.getProjectPath()) or
1890 QFileInfo(pfile).lastModified().toString() != lastModified 1890 QFileInfo(pfile).lastModified().toString() != lastModified
1891 ) 1891 )
1892 if shouldReopen: 1892 if shouldReopen:
1893 res = E5MessageBox.yesNo( 1893 res = EricMessageBox.yesNo(
1894 None, 1894 None,
1895 self.tr("Copy Commits"), 1895 self.tr("Copy Commits"),
1896 self.tr("""The project should be reread. Do this now?"""), 1896 self.tr("""The project should be reread. Do this now?"""),
1897 yesDefault=True) 1897 yesDefault=True)
1898 if res: 1898 if res:
1908 shouldReopen = ( 1908 shouldReopen = (
1909 self.vcs.gitCherryPickContinue(self.project.getProjectPath()) or 1909 self.vcs.gitCherryPickContinue(self.project.getProjectPath()) or
1910 QFileInfo(pfile).lastModified().toString() != lastModified 1910 QFileInfo(pfile).lastModified().toString() != lastModified
1911 ) 1911 )
1912 if shouldReopen: 1912 if shouldReopen:
1913 res = E5MessageBox.yesNo( 1913 res = EricMessageBox.yesNo(
1914 None, 1914 None,
1915 self.tr("Copy Commits (Continue)"), 1915 self.tr("Copy Commits (Continue)"),
1916 self.tr("""The project should be reread. Do this now?"""), 1916 self.tr("""The project should be reread. Do this now?"""),
1917 yesDefault=True) 1917 yesDefault=True)
1918 if res: 1918 if res:
1927 shouldReopen = ( 1927 shouldReopen = (
1928 self.vcs.gitCherryPickQuit(self.project.getProjectPath()) or 1928 self.vcs.gitCherryPickQuit(self.project.getProjectPath()) or
1929 QFileInfo(pfile).lastModified().toString() != lastModified 1929 QFileInfo(pfile).lastModified().toString() != lastModified
1930 ) 1930 )
1931 if shouldReopen: 1931 if shouldReopen:
1932 res = E5MessageBox.yesNo( 1932 res = EricMessageBox.yesNo(
1933 None, 1933 None,
1934 self.tr("Copy Commits (Quit)"), 1934 self.tr("Copy Commits (Quit)"),
1935 self.tr("""The project should be reread. Do this now?"""), 1935 self.tr("""The project should be reread. Do this now?"""),
1936 yesDefault=True) 1936 yesDefault=True)
1937 if res: 1937 if res:
1947 shouldReopen = ( 1947 shouldReopen = (
1948 self.vcs.gitCherryPickAbort(self.project.getProjectPath()) or 1948 self.vcs.gitCherryPickAbort(self.project.getProjectPath()) or
1949 QFileInfo(pfile).lastModified().toString() != lastModified 1949 QFileInfo(pfile).lastModified().toString() != lastModified
1950 ) 1950 )
1951 if shouldReopen: 1951 if shouldReopen:
1952 res = E5MessageBox.yesNo( 1952 res = EricMessageBox.yesNo(
1953 None, 1953 None,
1954 self.tr("Copy Commits (Cancel)"), 1954 self.tr("Copy Commits (Cancel)"),
1955 self.tr("""The project should be reread. Do this now?"""), 1955 self.tr("""The project should be reread. Do this now?"""),
1956 yesDefault=True) 1956 yesDefault=True)
1957 if res: 1957 if res:
1966 shouldReopen = ( 1966 shouldReopen = (
1967 self.vcs.gitStashSave(self.project.getProjectPath()) or 1967 self.vcs.gitStashSave(self.project.getProjectPath()) or
1968 QFileInfo(pfile).lastModified().toString() != lastModified 1968 QFileInfo(pfile).lastModified().toString() != lastModified
1969 ) 1969 )
1970 if shouldReopen: 1970 if shouldReopen:
1971 res = E5MessageBox.yesNo( 1971 res = EricMessageBox.yesNo(
1972 self.parent(), 1972 self.parent(),
1973 self.tr("Save Stash"), 1973 self.tr("Save Stash"),
1974 self.tr("""The project should be reread. Do this now?"""), 1974 self.tr("""The project should be reread. Do this now?"""),
1975 yesDefault=True) 1975 yesDefault=True)
1976 if res: 1976 if res:
1997 shouldReopen = ( 1997 shouldReopen = (
1998 self.vcs.gitStashApply(self.project.getProjectPath()) or 1998 self.vcs.gitStashApply(self.project.getProjectPath()) or
1999 QFileInfo(pfile).lastModified().toString() != lastModified 1999 QFileInfo(pfile).lastModified().toString() != lastModified
2000 ) 2000 )
2001 if shouldReopen: 2001 if shouldReopen:
2002 res = E5MessageBox.yesNo( 2002 res = EricMessageBox.yesNo(
2003 self.parent(), 2003 self.parent(),
2004 self.tr("Restore Stash"), 2004 self.tr("Restore Stash"),
2005 self.tr("""The project should be reread. Do this now?"""), 2005 self.tr("""The project should be reread. Do this now?"""),
2006 yesDefault=True) 2006 yesDefault=True)
2007 if res: 2007 if res:
2016 shouldReopen = ( 2016 shouldReopen = (
2017 self.vcs.gitStashPop(self.project.getProjectPath()) or 2017 self.vcs.gitStashPop(self.project.getProjectPath()) or
2018 QFileInfo(pfile).lastModified().toString() != lastModified 2018 QFileInfo(pfile).lastModified().toString() != lastModified
2019 ) 2019 )
2020 if shouldReopen: 2020 if shouldReopen:
2021 res = E5MessageBox.yesNo( 2021 res = EricMessageBox.yesNo(
2022 self.parent(), 2022 self.parent(),
2023 self.tr("Restore Stash"), 2023 self.tr("Restore Stash"),
2024 self.tr("""The project should be reread. Do this now?"""), 2024 self.tr("""The project should be reread. Do this now?"""),
2025 yesDefault=True) 2025 yesDefault=True)
2026 if res: 2026 if res:
2035 shouldReopen = ( 2035 shouldReopen = (
2036 self.vcs.gitStashBranch(self.project.getProjectPath()) or 2036 self.vcs.gitStashBranch(self.project.getProjectPath()) or
2037 QFileInfo(pfile).lastModified().toString() != lastModified 2037 QFileInfo(pfile).lastModified().toString() != lastModified
2038 ) 2038 )
2039 if shouldReopen: 2039 if shouldReopen:
2040 res = E5MessageBox.yesNo( 2040 res = EricMessageBox.yesNo(
2041 self.parent(), 2041 self.parent(),
2042 self.tr("Create Branch"), 2042 self.tr("Create Branch"),
2043 self.tr("""The project should be reread. Do this now?"""), 2043 self.tr("""The project should be reread. Do this now?"""),
2044 yesDefault=True) 2044 yesDefault=True)
2045 if res: 2045 if res:
2059 2059
2060 def __gitConfigure(self): 2060 def __gitConfigure(self):
2061 """ 2061 """
2062 Private method to open the configuration dialog. 2062 Private method to open the configuration dialog.
2063 """ 2063 """
2064 e5App().getObject("UserInterface").showPreferences("zzz_gitPage") 2064 ericApp().getObject("UserInterface").showPreferences("zzz_gitPage")
2065 2065
2066 def __gitEditUserConfig(self): 2066 def __gitEditUserConfig(self):
2067 """ 2067 """
2068 Private slot used to edit the user configuration file. 2068 Private slot used to edit the user configuration file.
2069 """ 2069 """
2152 shouldReopen = ( 2152 shouldReopen = (
2153 self.vcs.gitBundlePull(self.project.getProjectPath()) or 2153 self.vcs.gitBundlePull(self.project.getProjectPath()) or
2154 QFileInfo(pfile).lastModified().toString() != lastModified 2154 QFileInfo(pfile).lastModified().toString() != lastModified
2155 ) 2155 )
2156 if shouldReopen: 2156 if shouldReopen:
2157 res = E5MessageBox.yesNo( 2157 res = EricMessageBox.yesNo(
2158 self.parent(), 2158 self.parent(),
2159 self.tr("Apply Bundle (pull)"), 2159 self.tr("Apply Bundle (pull)"),
2160 self.tr("""The project should be reread. Do this now?"""), 2160 self.tr("""The project should be reread. Do this now?"""),
2161 yesDefault=True) 2161 yesDefault=True)
2162 if res: 2162 if res:
2178 self.vcs.gitBisect(self.project.getProjectPath(), 2178 self.vcs.gitBisect(self.project.getProjectPath(),
2179 "start_extended") or 2179 "start_extended") or
2180 QFileInfo(pfile).lastModified().toString() != lastModified 2180 QFileInfo(pfile).lastModified().toString() != lastModified
2181 ) 2181 )
2182 if shouldReopen: 2182 if shouldReopen:
2183 res = E5MessageBox.yesNo( 2183 res = EricMessageBox.yesNo(
2184 self.parent(), 2184 self.parent(),
2185 self.tr("Bisect"), 2185 self.tr("Bisect"),
2186 self.tr("""The project should be reread. Do this now?"""), 2186 self.tr("""The project should be reread. Do this now?"""),
2187 yesDefault=True) 2187 yesDefault=True)
2188 if res: 2188 if res:
2197 shouldReopen = ( 2197 shouldReopen = (
2198 self.vcs.gitBisect(self.project.getProjectPath(), "good") or 2198 self.vcs.gitBisect(self.project.getProjectPath(), "good") or
2199 QFileInfo(pfile).lastModified().toString() != lastModified 2199 QFileInfo(pfile).lastModified().toString() != lastModified
2200 ) 2200 )
2201 if shouldReopen: 2201 if shouldReopen:
2202 res = E5MessageBox.yesNo( 2202 res = EricMessageBox.yesNo(
2203 self.parent(), 2203 self.parent(),
2204 self.tr("Bisect"), 2204 self.tr("Bisect"),
2205 self.tr("""The project should be reread. Do this now?"""), 2205 self.tr("""The project should be reread. Do this now?"""),
2206 yesDefault=True) 2206 yesDefault=True)
2207 if res: 2207 if res:
2216 shouldReopen = ( 2216 shouldReopen = (
2217 self.vcs.gitBisect(self.project.getProjectPath(), "bad") or 2217 self.vcs.gitBisect(self.project.getProjectPath(), "bad") or
2218 QFileInfo(pfile).lastModified().toString() != lastModified 2218 QFileInfo(pfile).lastModified().toString() != lastModified
2219 ) 2219 )
2220 if shouldReopen: 2220 if shouldReopen:
2221 res = E5MessageBox.yesNo( 2221 res = EricMessageBox.yesNo(
2222 self.parent(), 2222 self.parent(),
2223 self.tr("Bisect"), 2223 self.tr("Bisect"),
2224 self.tr("""The project should be reread. Do this now?"""), 2224 self.tr("""The project should be reread. Do this now?"""),
2225 yesDefault=True) 2225 yesDefault=True)
2226 if res: 2226 if res:
2235 shouldReopen = ( 2235 shouldReopen = (
2236 self.vcs.gitBisect(self.project.getProjectPath(), "skip") or 2236 self.vcs.gitBisect(self.project.getProjectPath(), "skip") or
2237 QFileInfo(pfile).lastModified().toString() != lastModified 2237 QFileInfo(pfile).lastModified().toString() != lastModified
2238 ) 2238 )
2239 if shouldReopen: 2239 if shouldReopen:
2240 res = E5MessageBox.yesNo( 2240 res = EricMessageBox.yesNo(
2241 self.parent(), 2241 self.parent(),
2242 self.tr("Bisect"), 2242 self.tr("Bisect"),
2243 self.tr("""The project should be reread. Do this now?"""), 2243 self.tr("""The project should be reread. Do this now?"""),
2244 yesDefault=True) 2244 yesDefault=True)
2245 if res: 2245 if res:
2254 shouldReopen = ( 2254 shouldReopen = (
2255 self.vcs.gitBisect(self.project.getProjectPath(), "reset") or 2255 self.vcs.gitBisect(self.project.getProjectPath(), "reset") or
2256 QFileInfo(pfile).lastModified().toString() != lastModified 2256 QFileInfo(pfile).lastModified().toString() != lastModified
2257 ) 2257 )
2258 if shouldReopen: 2258 if shouldReopen:
2259 res = E5MessageBox.yesNo( 2259 res = EricMessageBox.yesNo(
2260 self.parent(), 2260 self.parent(),
2261 self.tr("Bisect"), 2261 self.tr("Bisect"),
2262 self.tr("""The project should be reread. Do this now?"""), 2262 self.tr("""The project should be reread. Do this now?"""),
2263 yesDefault=True) 2263 yesDefault=True)
2264 if res: 2264 if res:
2292 shouldReopen = ( 2292 shouldReopen = (
2293 self.vcs.gitBisectReplay(self.project.getProjectPath()) or 2293 self.vcs.gitBisectReplay(self.project.getProjectPath()) or
2294 QFileInfo(pfile).lastModified().toString() != lastModified 2294 QFileInfo(pfile).lastModified().toString() != lastModified
2295 ) 2295 )
2296 if shouldReopen: 2296 if shouldReopen:
2297 res = E5MessageBox.yesNo( 2297 res = EricMessageBox.yesNo(
2298 self.parent(), 2298 self.parent(),
2299 self.tr("Bisect"), 2299 self.tr("Bisect"),
2300 self.tr("""The project should be reread. Do this now?"""), 2300 self.tr("""The project should be reread. Do this now?"""),
2301 yesDefault=True) 2301 yesDefault=True)
2302 if res: 2302 if res:
2316 """ 2316 """
2317 pfile = self.project.getProjectFile() 2317 pfile = self.project.getProjectFile()
2318 lastModified = QFileInfo(pfile).lastModified().toString() 2318 lastModified = QFileInfo(pfile).lastModified().toString()
2319 self.vcs.gitApplyCheckPatches(self.project.getProjectPath()) 2319 self.vcs.gitApplyCheckPatches(self.project.getProjectPath())
2320 if QFileInfo(pfile).lastModified().toString() != lastModified: 2320 if QFileInfo(pfile).lastModified().toString() != lastModified:
2321 res = E5MessageBox.yesNo( 2321 res = EricMessageBox.yesNo(
2322 self.parent(), 2322 self.parent(),
2323 self.tr("Apply patch files"), 2323 self.tr("Apply patch files"),
2324 self.tr("""The project should be reread. Do this now?"""), 2324 self.tr("""The project should be reread. Do this now?"""),
2325 yesDefault=True) 2325 yesDefault=True)
2326 if res: 2326 if res:

eric ide

mercurial