111 self.vcsNewAct.setWhatsThis(self.tr( |
111 self.vcsNewAct.setWhatsThis(self.tr( |
112 """<b>New from repository</b>""" |
112 """<b>New from repository</b>""" |
113 """<p>This creates (clones) a new local project from """ |
113 """<p>This creates (clones) a new local project from """ |
114 """a Mercurial repository.</p>""" |
114 """a Mercurial repository.</p>""" |
115 )) |
115 )) |
116 self.vcsNewAct.triggered[()].connect(self._vcsCheckout) |
116 self.vcsNewAct.triggered.connect(self._vcsCheckout) |
117 self.actions.append(self.vcsNewAct) |
117 self.actions.append(self.vcsNewAct) |
118 |
118 |
119 self.hgIncomingAct = E5Action( |
119 self.hgIncomingAct = E5Action( |
120 self.tr('Show incoming log'), |
120 self.tr('Show incoming log'), |
121 UI.PixmapCache.getIcon("vcsUpdate.png"), |
121 UI.PixmapCache.getIcon("vcsUpdate.png"), |
127 self.hgIncomingAct.setWhatsThis(self.tr( |
127 self.hgIncomingAct.setWhatsThis(self.tr( |
128 """<b>Show incoming log</b>""" |
128 """<b>Show incoming log</b>""" |
129 """<p>This shows the log of changes coming into the""" |
129 """<p>This shows the log of changes coming into the""" |
130 """ repository.</p>""" |
130 """ repository.</p>""" |
131 )) |
131 )) |
132 self.hgIncomingAct.triggered[()].connect(self.__hgIncoming) |
132 self.hgIncomingAct.triggered.connect(self.__hgIncoming) |
133 self.actions.append(self.hgIncomingAct) |
133 self.actions.append(self.hgIncomingAct) |
134 |
134 |
135 self.hgPullAct = E5Action( |
135 self.hgPullAct = E5Action( |
136 self.tr('Pull changes'), |
136 self.tr('Pull changes'), |
137 UI.PixmapCache.getIcon("vcsUpdate.png"), |
137 UI.PixmapCache.getIcon("vcsUpdate.png"), |
143 self.hgPullAct.setWhatsThis(self.tr( |
143 self.hgPullAct.setWhatsThis(self.tr( |
144 """<b>Pull changes</b>""" |
144 """<b>Pull changes</b>""" |
145 """<p>This pulls changes from a remote repository into the """ |
145 """<p>This pulls changes from a remote repository into the """ |
146 """local repository.</p>""" |
146 """local repository.</p>""" |
147 )) |
147 )) |
148 self.hgPullAct.triggered[()].connect(self.__hgPull) |
148 self.hgPullAct.triggered.connect(self.__hgPull) |
149 self.actions.append(self.hgPullAct) |
149 self.actions.append(self.hgPullAct) |
150 |
150 |
151 self.vcsUpdateAct = E5Action( |
151 self.vcsUpdateAct = E5Action( |
152 self.tr('Update from repository'), |
152 self.tr('Update from repository'), |
153 UI.PixmapCache.getIcon("vcsUpdate.png"), |
153 UI.PixmapCache.getIcon("vcsUpdate.png"), |
159 self.vcsUpdateAct.setWhatsThis(self.tr( |
159 self.vcsUpdateAct.setWhatsThis(self.tr( |
160 """<b>Update from repository</b>""" |
160 """<b>Update from repository</b>""" |
161 """<p>This updates the local project from the Mercurial""" |
161 """<p>This updates the local project from the Mercurial""" |
162 """ repository.</p>""" |
162 """ repository.</p>""" |
163 )) |
163 )) |
164 self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate) |
164 self.vcsUpdateAct.triggered.connect(self._vcsUpdate) |
165 self.actions.append(self.vcsUpdateAct) |
165 self.actions.append(self.vcsUpdateAct) |
166 |
166 |
167 self.vcsCommitAct = E5Action( |
167 self.vcsCommitAct = E5Action( |
168 self.tr('Commit changes to repository'), |
168 self.tr('Commit changes to repository'), |
169 UI.PixmapCache.getIcon("vcsCommit.png"), |
169 UI.PixmapCache.getIcon("vcsCommit.png"), |
175 self.vcsCommitAct.setWhatsThis(self.tr( |
175 self.vcsCommitAct.setWhatsThis(self.tr( |
176 """<b>Commit changes to repository</b>""" |
176 """<b>Commit changes to repository</b>""" |
177 """<p>This commits changes to the local project to the """ |
177 """<p>This commits changes to the local project to the """ |
178 """Mercurial repository.</p>""" |
178 """Mercurial repository.</p>""" |
179 )) |
179 )) |
180 self.vcsCommitAct.triggered[()].connect(self._vcsCommit) |
180 self.vcsCommitAct.triggered.connect(self._vcsCommit) |
181 self.actions.append(self.vcsCommitAct) |
181 self.actions.append(self.vcsCommitAct) |
182 |
182 |
183 self.hgOutgoingAct = E5Action( |
183 self.hgOutgoingAct = E5Action( |
184 self.tr('Show outgoing log'), |
184 self.tr('Show outgoing log'), |
185 UI.PixmapCache.getIcon("vcsCommit.png"), |
185 UI.PixmapCache.getIcon("vcsCommit.png"), |
191 self.hgOutgoingAct.setWhatsThis(self.tr( |
191 self.hgOutgoingAct.setWhatsThis(self.tr( |
192 """<b>Show outgoing log</b>""" |
192 """<b>Show outgoing log</b>""" |
193 """<p>This shows the log of changes outgoing out of the""" |
193 """<p>This shows the log of changes outgoing out of the""" |
194 """ repository.</p>""" |
194 """ repository.</p>""" |
195 )) |
195 )) |
196 self.hgOutgoingAct.triggered[()].connect(self.__hgOutgoing) |
196 self.hgOutgoingAct.triggered.connect(self.__hgOutgoing) |
197 self.actions.append(self.hgOutgoingAct) |
197 self.actions.append(self.hgOutgoingAct) |
198 |
198 |
199 self.hgPushAct = E5Action( |
199 self.hgPushAct = E5Action( |
200 self.tr('Push changes'), |
200 self.tr('Push changes'), |
201 UI.PixmapCache.getIcon("vcsCommit.png"), |
201 UI.PixmapCache.getIcon("vcsCommit.png"), |
207 self.hgPushAct.setWhatsThis(self.tr( |
207 self.hgPushAct.setWhatsThis(self.tr( |
208 """<b>Push changes</b>""" |
208 """<b>Push changes</b>""" |
209 """<p>This pushes changes from the local repository to a """ |
209 """<p>This pushes changes from the local repository to a """ |
210 """remote repository.</p>""" |
210 """remote repository.</p>""" |
211 )) |
211 )) |
212 self.hgPushAct.triggered[()].connect(self.__hgPush) |
212 self.hgPushAct.triggered.connect(self.__hgPush) |
213 self.actions.append(self.hgPushAct) |
213 self.actions.append(self.hgPushAct) |
214 |
214 |
215 self.hgPushForcedAct = E5Action( |
215 self.hgPushForcedAct = E5Action( |
216 self.tr('Push changes (force)'), |
216 self.tr('Push changes (force)'), |
217 UI.PixmapCache.getIcon("vcsCommit.png"), |
217 UI.PixmapCache.getIcon("vcsCommit.png"), |
223 self.hgPushForcedAct.setWhatsThis(self.tr( |
223 self.hgPushForcedAct.setWhatsThis(self.tr( |
224 """<b>Push changes (force)</b>""" |
224 """<b>Push changes (force)</b>""" |
225 """<p>This pushes changes from the local repository to a """ |
225 """<p>This pushes changes from the local repository to a """ |
226 """remote repository using the 'force' option.</p>""" |
226 """remote repository using the 'force' option.</p>""" |
227 )) |
227 )) |
228 self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced) |
228 self.hgPushForcedAct.triggered.connect(self.__hgPushForced) |
229 self.actions.append(self.hgPushForcedAct) |
229 self.actions.append(self.hgPushForcedAct) |
230 |
230 |
231 self.vcsExportAct = E5Action( |
231 self.vcsExportAct = E5Action( |
232 self.tr('Export from repository'), |
232 self.tr('Export from repository'), |
233 UI.PixmapCache.getIcon("vcsExport.png"), |
233 UI.PixmapCache.getIcon("vcsExport.png"), |
238 )) |
238 )) |
239 self.vcsExportAct.setWhatsThis(self.tr( |
239 self.vcsExportAct.setWhatsThis(self.tr( |
240 """<b>Export from repository</b>""" |
240 """<b>Export from repository</b>""" |
241 """<p>This exports a project from the repository.</p>""" |
241 """<p>This exports a project from the repository.</p>""" |
242 )) |
242 )) |
243 self.vcsExportAct.triggered[()].connect(self._vcsExport) |
243 self.vcsExportAct.triggered.connect(self._vcsExport) |
244 self.actions.append(self.vcsExportAct) |
244 self.actions.append(self.vcsExportAct) |
245 |
245 |
246 self.vcsLogAct = E5Action( |
246 self.vcsLogAct = E5Action( |
247 self.tr('Show log'), |
247 self.tr('Show log'), |
248 UI.PixmapCache.getIcon("vcsLog.png"), |
248 UI.PixmapCache.getIcon("vcsLog.png"), |
253 )) |
253 )) |
254 self.vcsLogAct.setWhatsThis(self.tr( |
254 self.vcsLogAct.setWhatsThis(self.tr( |
255 """<b>Show log</b>""" |
255 """<b>Show log</b>""" |
256 """<p>This shows the log of the local project.</p>""" |
256 """<p>This shows the log of the local project.</p>""" |
257 )) |
257 )) |
258 self.vcsLogAct.triggered[()].connect(self._vcsLog) |
258 self.vcsLogAct.triggered.connect(self._vcsLog) |
259 self.actions.append(self.vcsLogAct) |
259 self.actions.append(self.vcsLogAct) |
260 |
260 |
261 self.hgLogBrowserAct = E5Action( |
261 self.hgLogBrowserAct = E5Action( |
262 self.tr('Show log browser'), |
262 self.tr('Show log browser'), |
263 UI.PixmapCache.getIcon("vcsLog.png"), |
263 UI.PixmapCache.getIcon("vcsLog.png"), |
270 """<b>Show log browser</b>""" |
270 """<b>Show log browser</b>""" |
271 """<p>This shows a dialog to browse the log of the local""" |
271 """<p>This shows a dialog to browse the log of the local""" |
272 """ project. A limited number of entries is shown first.""" |
272 """ project. A limited number of entries is shown first.""" |
273 """ More can be retrieved later on.</p>""" |
273 """ More can be retrieved later on.</p>""" |
274 )) |
274 )) |
275 self.hgLogBrowserAct.triggered[()].connect(self.__hgLogBrowser) |
275 self.hgLogBrowserAct.triggered.connect(self.__hgLogBrowser) |
276 self.actions.append(self.hgLogBrowserAct) |
276 self.actions.append(self.hgLogBrowserAct) |
277 |
277 |
278 self.vcsDiffAct = E5Action( |
278 self.vcsDiffAct = E5Action( |
279 self.tr('Show difference'), |
279 self.tr('Show difference'), |
280 UI.PixmapCache.getIcon("vcsDiff.png"), |
280 UI.PixmapCache.getIcon("vcsDiff.png"), |
286 self.vcsDiffAct.setWhatsThis(self.tr( |
286 self.vcsDiffAct.setWhatsThis(self.tr( |
287 """<b>Show difference</b>""" |
287 """<b>Show difference</b>""" |
288 """<p>This shows the difference of the local project to the""" |
288 """<p>This shows the difference of the local project to the""" |
289 """ repository.</p>""" |
289 """ repository.</p>""" |
290 )) |
290 )) |
291 self.vcsDiffAct.triggered[()].connect(self._vcsDiff) |
291 self.vcsDiffAct.triggered.connect(self._vcsDiff) |
292 self.actions.append(self.vcsDiffAct) |
292 self.actions.append(self.vcsDiffAct) |
293 |
293 |
294 self.hgExtDiffAct = E5Action( |
294 self.hgExtDiffAct = E5Action( |
295 self.tr('Show difference (extended)'), |
295 self.tr('Show difference (extended)'), |
296 UI.PixmapCache.getIcon("vcsDiff.png"), |
296 UI.PixmapCache.getIcon("vcsDiff.png"), |
302 self.hgExtDiffAct.setWhatsThis(self.tr( |
302 self.hgExtDiffAct.setWhatsThis(self.tr( |
303 """<b>Show difference (extended)</b>""" |
303 """<b>Show difference (extended)</b>""" |
304 """<p>This shows the difference of selectable revisions of the""" |
304 """<p>This shows the difference of selectable revisions of the""" |
305 """ project.</p>""" |
305 """ project.</p>""" |
306 )) |
306 )) |
307 self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff) |
307 self.hgExtDiffAct.triggered.connect(self.__hgExtendedDiff) |
308 self.actions.append(self.hgExtDiffAct) |
308 self.actions.append(self.hgExtDiffAct) |
309 |
309 |
310 self.vcsStatusAct = E5Action( |
310 self.vcsStatusAct = E5Action( |
311 self.tr('Show status'), |
311 self.tr('Show status'), |
312 UI.PixmapCache.getIcon("vcsStatus.png"), |
312 UI.PixmapCache.getIcon("vcsStatus.png"), |
317 )) |
317 )) |
318 self.vcsStatusAct.setWhatsThis(self.tr( |
318 self.vcsStatusAct.setWhatsThis(self.tr( |
319 """<b>Show status</b>""" |
319 """<b>Show status</b>""" |
320 """<p>This shows the status of the local project.</p>""" |
320 """<p>This shows the status of the local project.</p>""" |
321 )) |
321 )) |
322 self.vcsStatusAct.triggered[()].connect(self._vcsStatus) |
322 self.vcsStatusAct.triggered.connect(self._vcsStatus) |
323 self.actions.append(self.vcsStatusAct) |
323 self.actions.append(self.vcsStatusAct) |
324 |
324 |
325 self.hgSummaryAct = E5Action( |
325 self.hgSummaryAct = E5Action( |
326 self.tr('Show Summary'), |
326 self.tr('Show Summary'), |
327 UI.PixmapCache.getIcon("vcsSummary.png"), |
327 UI.PixmapCache.getIcon("vcsSummary.png"), |
333 self.hgSummaryAct.setWhatsThis(self.tr( |
333 self.hgSummaryAct.setWhatsThis(self.tr( |
334 """<b>Show summary</b>""" |
334 """<b>Show summary</b>""" |
335 """<p>This shows some summary information of the working""" |
335 """<p>This shows some summary information of the working""" |
336 """ directory status.</p>""" |
336 """ directory status.</p>""" |
337 )) |
337 )) |
338 self.hgSummaryAct.triggered[()].connect(self.__hgSummary) |
338 self.hgSummaryAct.triggered.connect(self.__hgSummary) |
339 self.actions.append(self.hgSummaryAct) |
339 self.actions.append(self.hgSummaryAct) |
340 |
340 |
341 self.hgHeadsAct = E5Action( |
341 self.hgHeadsAct = E5Action( |
342 self.tr('Show heads'), |
342 self.tr('Show heads'), |
343 self.tr('Show heads'), |
343 self.tr('Show heads'), |
347 )) |
347 )) |
348 self.hgHeadsAct.setWhatsThis(self.tr( |
348 self.hgHeadsAct.setWhatsThis(self.tr( |
349 """<b>Show heads</b>""" |
349 """<b>Show heads</b>""" |
350 """<p>This shows the heads of the repository.</p>""" |
350 """<p>This shows the heads of the repository.</p>""" |
351 )) |
351 )) |
352 self.hgHeadsAct.triggered[()].connect(self.__hgHeads) |
352 self.hgHeadsAct.triggered.connect(self.__hgHeads) |
353 self.actions.append(self.hgHeadsAct) |
353 self.actions.append(self.hgHeadsAct) |
354 |
354 |
355 self.hgParentsAct = E5Action( |
355 self.hgParentsAct = E5Action( |
356 self.tr('Show parents'), |
356 self.tr('Show parents'), |
357 self.tr('Show parents'), |
357 self.tr('Show parents'), |
361 )) |
361 )) |
362 self.hgParentsAct.setWhatsThis(self.tr( |
362 self.hgParentsAct.setWhatsThis(self.tr( |
363 """<b>Show parents</b>""" |
363 """<b>Show parents</b>""" |
364 """<p>This shows the parents of the repository.</p>""" |
364 """<p>This shows the parents of the repository.</p>""" |
365 )) |
365 )) |
366 self.hgParentsAct.triggered[()].connect(self.__hgParents) |
366 self.hgParentsAct.triggered.connect(self.__hgParents) |
367 self.actions.append(self.hgParentsAct) |
367 self.actions.append(self.hgParentsAct) |
368 |
368 |
369 self.hgTipAct = E5Action( |
369 self.hgTipAct = E5Action( |
370 self.tr('Show tip'), |
370 self.tr('Show tip'), |
371 self.tr('Show tip'), |
371 self.tr('Show tip'), |
375 )) |
375 )) |
376 self.hgTipAct.setWhatsThis(self.tr( |
376 self.hgTipAct.setWhatsThis(self.tr( |
377 """<b>Show tip</b>""" |
377 """<b>Show tip</b>""" |
378 """<p>This shows the tip of the repository.</p>""" |
378 """<p>This shows the tip of the repository.</p>""" |
379 )) |
379 )) |
380 self.hgTipAct.triggered[()].connect(self.__hgTip) |
380 self.hgTipAct.triggered.connect(self.__hgTip) |
381 self.actions.append(self.hgTipAct) |
381 self.actions.append(self.hgTipAct) |
382 |
382 |
383 self.vcsRevertAct = E5Action( |
383 self.vcsRevertAct = E5Action( |
384 self.tr('Revert changes'), |
384 self.tr('Revert changes'), |
385 UI.PixmapCache.getIcon("vcsRevert.png"), |
385 UI.PixmapCache.getIcon("vcsRevert.png"), |
390 )) |
390 )) |
391 self.vcsRevertAct.setWhatsThis(self.tr( |
391 self.vcsRevertAct.setWhatsThis(self.tr( |
392 """<b>Revert changes</b>""" |
392 """<b>Revert changes</b>""" |
393 """<p>This reverts all changes made to the local project.</p>""" |
393 """<p>This reverts all changes made to the local project.</p>""" |
394 )) |
394 )) |
395 self.vcsRevertAct.triggered[()].connect(self.__hgRevert) |
395 self.vcsRevertAct.triggered.connect(self.__hgRevert) |
396 self.actions.append(self.vcsRevertAct) |
396 self.actions.append(self.vcsRevertAct) |
397 |
397 |
398 self.vcsMergeAct = E5Action( |
398 self.vcsMergeAct = E5Action( |
399 self.tr('Merge'), |
399 self.tr('Merge'), |
400 UI.PixmapCache.getIcon("vcsMerge.png"), |
400 UI.PixmapCache.getIcon("vcsMerge.png"), |
406 self.vcsMergeAct.setWhatsThis(self.tr( |
406 self.vcsMergeAct.setWhatsThis(self.tr( |
407 """<b>Merge</b>""" |
407 """<b>Merge</b>""" |
408 """<p>This merges changes of a revision into the local""" |
408 """<p>This merges changes of a revision into the local""" |
409 """ project.</p>""" |
409 """ project.</p>""" |
410 )) |
410 )) |
411 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) |
411 self.vcsMergeAct.triggered.connect(self._vcsMerge) |
412 self.actions.append(self.vcsMergeAct) |
412 self.actions.append(self.vcsMergeAct) |
413 |
413 |
414 self.vcsResolveAct = E5Action( |
414 self.vcsResolveAct = E5Action( |
415 self.tr('Conflicts resolved'), |
415 self.tr('Conflicts resolved'), |
416 self.tr('Con&flicts resolved'), |
416 self.tr('Con&flicts resolved'), |
421 self.vcsResolveAct.setWhatsThis(self.tr( |
421 self.vcsResolveAct.setWhatsThis(self.tr( |
422 """<b>Conflicts resolved</b>""" |
422 """<b>Conflicts resolved</b>""" |
423 """<p>This marks all conflicts of the local project as""" |
423 """<p>This marks all conflicts of the local project as""" |
424 """ resolved.</p>""" |
424 """ resolved.</p>""" |
425 )) |
425 )) |
426 self.vcsResolveAct.triggered[()].connect(self.__hgResolve) |
426 self.vcsResolveAct.triggered.connect(self.__hgResolve) |
427 self.actions.append(self.vcsResolveAct) |
427 self.actions.append(self.vcsResolveAct) |
428 |
428 |
429 self.vcsTagAct = E5Action( |
429 self.vcsTagAct = E5Action( |
430 self.tr('Tag in repository'), |
430 self.tr('Tag in repository'), |
431 UI.PixmapCache.getIcon("vcsTag.png"), |
431 UI.PixmapCache.getIcon("vcsTag.png"), |
436 )) |
436 )) |
437 self.vcsTagAct.setWhatsThis(self.tr( |
437 self.vcsTagAct.setWhatsThis(self.tr( |
438 """<b>Tag in repository</b>""" |
438 """<b>Tag in repository</b>""" |
439 """<p>This tags the local project in the repository.</p>""" |
439 """<p>This tags the local project in the repository.</p>""" |
440 )) |
440 )) |
441 self.vcsTagAct.triggered[()].connect(self._vcsTag) |
441 self.vcsTagAct.triggered.connect(self._vcsTag) |
442 self.actions.append(self.vcsTagAct) |
442 self.actions.append(self.vcsTagAct) |
443 |
443 |
444 self.hgTagListAct = E5Action( |
444 self.hgTagListAct = E5Action( |
445 self.tr('List tags'), |
445 self.tr('List tags'), |
446 self.tr('List tags...'), |
446 self.tr('List tags...'), |
450 )) |
450 )) |
451 self.hgTagListAct.setWhatsThis(self.tr( |
451 self.hgTagListAct.setWhatsThis(self.tr( |
452 """<b>List tags</b>""" |
452 """<b>List tags</b>""" |
453 """<p>This lists the tags of the project.</p>""" |
453 """<p>This lists the tags of the project.</p>""" |
454 )) |
454 )) |
455 self.hgTagListAct.triggered[()].connect(self.__hgTagList) |
455 self.hgTagListAct.triggered.connect(self.__hgTagList) |
456 self.actions.append(self.hgTagListAct) |
456 self.actions.append(self.hgTagListAct) |
457 |
457 |
458 self.hgBranchListAct = E5Action( |
458 self.hgBranchListAct = E5Action( |
459 self.tr('List branches'), |
459 self.tr('List branches'), |
460 self.tr('List branches...'), |
460 self.tr('List branches...'), |
464 )) |
464 )) |
465 self.hgBranchListAct.setWhatsThis(self.tr( |
465 self.hgBranchListAct.setWhatsThis(self.tr( |
466 """<b>List branches</b>""" |
466 """<b>List branches</b>""" |
467 """<p>This lists the branches of the project.</p>""" |
467 """<p>This lists the branches of the project.</p>""" |
468 )) |
468 )) |
469 self.hgBranchListAct.triggered[()].connect(self.__hgBranchList) |
469 self.hgBranchListAct.triggered.connect(self.__hgBranchList) |
470 self.actions.append(self.hgBranchListAct) |
470 self.actions.append(self.hgBranchListAct) |
471 |
471 |
472 self.hgBranchAct = E5Action( |
472 self.hgBranchAct = E5Action( |
473 self.tr('Create branch'), |
473 self.tr('Create branch'), |
474 UI.PixmapCache.getIcon("vcsBranch.png"), |
474 UI.PixmapCache.getIcon("vcsBranch.png"), |
480 self.hgBranchAct.setWhatsThis(self.tr( |
480 self.hgBranchAct.setWhatsThis(self.tr( |
481 """<b>Create branch</b>""" |
481 """<b>Create branch</b>""" |
482 """<p>This creates a new branch for the local project """ |
482 """<p>This creates a new branch for the local project """ |
483 """in the repository.</p>""" |
483 """in the repository.</p>""" |
484 )) |
484 )) |
485 self.hgBranchAct.triggered[()].connect(self.__hgBranch) |
485 self.hgBranchAct.triggered.connect(self.__hgBranch) |
486 self.actions.append(self.hgBranchAct) |
486 self.actions.append(self.hgBranchAct) |
487 |
487 |
488 self.hgPushBranchAct = E5Action( |
488 self.hgPushBranchAct = E5Action( |
489 self.tr('Push new branch'), |
489 self.tr('Push new branch'), |
490 self.tr('Push new branch'), |
490 self.tr('Push new branch'), |
496 self.hgPushBranchAct.setWhatsThis(self.tr( |
496 self.hgPushBranchAct.setWhatsThis(self.tr( |
497 """<b>Push new branch</b>""" |
497 """<b>Push new branch</b>""" |
498 """<p>This pushes the current branch of the local project""" |
498 """<p>This pushes the current branch of the local project""" |
499 """ as a new named branch.</p>""" |
499 """ as a new named branch.</p>""" |
500 )) |
500 )) |
501 self.hgPushBranchAct.triggered[()].connect(self.__hgPushNewBranch) |
501 self.hgPushBranchAct.triggered.connect(self.__hgPushNewBranch) |
502 self.actions.append(self.hgPushBranchAct) |
502 self.actions.append(self.hgPushBranchAct) |
503 |
503 |
504 self.hgCloseBranchAct = E5Action( |
504 self.hgCloseBranchAct = E5Action( |
505 self.tr('Close branch'), |
505 self.tr('Close branch'), |
506 self.tr('Close branch'), |
506 self.tr('Close branch'), |
510 )) |
510 )) |
511 self.hgCloseBranchAct.setWhatsThis(self.tr( |
511 self.hgCloseBranchAct.setWhatsThis(self.tr( |
512 """<b>Close branch</b>""" |
512 """<b>Close branch</b>""" |
513 """<p>This closes the current branch of the local project.</p>""" |
513 """<p>This closes the current branch of the local project.</p>""" |
514 )) |
514 )) |
515 self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch) |
515 self.hgCloseBranchAct.triggered.connect(self.__hgCloseBranch) |
516 self.actions.append(self.hgCloseBranchAct) |
516 self.actions.append(self.hgCloseBranchAct) |
517 |
517 |
518 self.hgShowBranchAct = E5Action( |
518 self.hgShowBranchAct = E5Action( |
519 self.tr('Show current branch'), |
519 self.tr('Show current branch'), |
520 self.tr('Show current branch'), |
520 self.tr('Show current branch'), |
524 )) |
524 )) |
525 self.hgShowBranchAct.setWhatsThis(self.tr( |
525 self.hgShowBranchAct.setWhatsThis(self.tr( |
526 """<b>Show current branch</b>""" |
526 """<b>Show current branch</b>""" |
527 """<p>This shows the current branch of the project.</p>""" |
527 """<p>This shows the current branch of the project.</p>""" |
528 )) |
528 )) |
529 self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch) |
529 self.hgShowBranchAct.triggered.connect(self.__hgShowBranch) |
530 self.actions.append(self.hgShowBranchAct) |
530 self.actions.append(self.hgShowBranchAct) |
531 |
531 |
532 self.vcsSwitchAct = E5Action( |
532 self.vcsSwitchAct = E5Action( |
533 self.tr('Switch'), |
533 self.tr('Switch'), |
534 UI.PixmapCache.getIcon("vcsSwitch.png"), |
534 UI.PixmapCache.getIcon("vcsSwitch.png"), |
540 self.vcsSwitchAct.setWhatsThis(self.tr( |
540 self.vcsSwitchAct.setWhatsThis(self.tr( |
541 """<b>Switch</b>""" |
541 """<b>Switch</b>""" |
542 """<p>This switches the working directory to another""" |
542 """<p>This switches the working directory to another""" |
543 """ revision.</p>""" |
543 """ revision.</p>""" |
544 )) |
544 )) |
545 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) |
545 self.vcsSwitchAct.triggered.connect(self._vcsSwitch) |
546 self.actions.append(self.vcsSwitchAct) |
546 self.actions.append(self.vcsSwitchAct) |
547 |
547 |
548 self.vcsCleanupAct = E5Action( |
548 self.vcsCleanupAct = E5Action( |
549 self.tr('Cleanup'), |
549 self.tr('Cleanup'), |
550 self.tr('Cleanu&p'), |
550 self.tr('Cleanu&p'), |
554 )) |
554 )) |
555 self.vcsCleanupAct.setWhatsThis(self.tr( |
555 self.vcsCleanupAct.setWhatsThis(self.tr( |
556 """<b>Cleanup</b>""" |
556 """<b>Cleanup</b>""" |
557 """<p>This performs a cleanup of the local project.</p>""" |
557 """<p>This performs a cleanup of the local project.</p>""" |
558 )) |
558 )) |
559 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) |
559 self.vcsCleanupAct.triggered.connect(self._vcsCleanup) |
560 self.actions.append(self.vcsCleanupAct) |
560 self.actions.append(self.vcsCleanupAct) |
561 |
561 |
562 self.vcsCommandAct = E5Action( |
562 self.vcsCommandAct = E5Action( |
563 self.tr('Execute command'), |
563 self.tr('Execute command'), |
564 self.tr('E&xecute command...'), |
564 self.tr('E&xecute command...'), |
569 self.vcsCommandAct.setWhatsThis(self.tr( |
569 self.vcsCommandAct.setWhatsThis(self.tr( |
570 """<b>Execute command</b>""" |
570 """<b>Execute command</b>""" |
571 """<p>This opens a dialog to enter an arbitrary Mercurial""" |
571 """<p>This opens a dialog to enter an arbitrary Mercurial""" |
572 """ command.</p>""" |
572 """ command.</p>""" |
573 )) |
573 )) |
574 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) |
574 self.vcsCommandAct.triggered.connect(self._vcsCommand) |
575 self.actions.append(self.vcsCommandAct) |
575 self.actions.append(self.vcsCommandAct) |
576 |
576 |
577 self.hgConfigAct = E5Action( |
577 self.hgConfigAct = E5Action( |
578 self.tr('Configure'), |
578 self.tr('Configure'), |
579 self.tr('Configure...'), |
579 self.tr('Configure...'), |
584 self.hgConfigAct.setWhatsThis(self.tr( |
584 self.hgConfigAct.setWhatsThis(self.tr( |
585 """<b>Configure</b>""" |
585 """<b>Configure</b>""" |
586 """<p>Show the configuration dialog with the Mercurial page""" |
586 """<p>Show the configuration dialog with the Mercurial page""" |
587 """ selected.</p>""" |
587 """ selected.</p>""" |
588 )) |
588 )) |
589 self.hgConfigAct.triggered[()].connect(self.__hgConfigure) |
589 self.hgConfigAct.triggered.connect(self.__hgConfigure) |
590 self.actions.append(self.hgConfigAct) |
590 self.actions.append(self.hgConfigAct) |
591 |
591 |
592 self.hgEditUserConfigAct = E5Action( |
592 self.hgEditUserConfigAct = E5Action( |
593 self.tr('Edit user configuration'), |
593 self.tr('Edit user configuration'), |
594 self.tr('Edit user configuration...'), |
594 self.tr('Edit user configuration...'), |
598 )) |
598 )) |
599 self.hgEditUserConfigAct.setWhatsThis(self.tr( |
599 self.hgEditUserConfigAct.setWhatsThis(self.tr( |
600 """<b>Edit user configuration</b>""" |
600 """<b>Edit user configuration</b>""" |
601 """<p>Show an editor to edit the user configuration file.</p>""" |
601 """<p>Show an editor to edit the user configuration file.</p>""" |
602 )) |
602 )) |
603 self.hgEditUserConfigAct.triggered[()].connect(self.__hgEditUserConfig) |
603 self.hgEditUserConfigAct.triggered.connect(self.__hgEditUserConfig) |
604 self.actions.append(self.hgEditUserConfigAct) |
604 self.actions.append(self.hgEditUserConfigAct) |
605 |
605 |
606 self.hgRepoConfigAct = E5Action( |
606 self.hgRepoConfigAct = E5Action( |
607 self.tr('Edit repository configuration'), |
607 self.tr('Edit repository configuration'), |
608 self.tr('Edit repository configuration...'), |
608 self.tr('Edit repository configuration...'), |
613 self.hgRepoConfigAct.setWhatsThis(self.tr( |
613 self.hgRepoConfigAct.setWhatsThis(self.tr( |
614 """<b>Edit repository configuration</b>""" |
614 """<b>Edit repository configuration</b>""" |
615 """<p>Show an editor to edit the repository configuration""" |
615 """<p>Show an editor to edit the repository configuration""" |
616 """ file.</p>""" |
616 """ file.</p>""" |
617 )) |
617 )) |
618 self.hgRepoConfigAct.triggered[()].connect(self.__hgEditRepoConfig) |
618 self.hgRepoConfigAct.triggered.connect(self.__hgEditRepoConfig) |
619 self.actions.append(self.hgRepoConfigAct) |
619 self.actions.append(self.hgRepoConfigAct) |
620 |
620 |
621 self.hgShowConfigAct = E5Action( |
621 self.hgShowConfigAct = E5Action( |
622 self.tr('Show combined configuration settings'), |
622 self.tr('Show combined configuration settings'), |
623 self.tr('Show combined configuration settings...'), |
623 self.tr('Show combined configuration settings...'), |
629 self.hgShowConfigAct.setWhatsThis(self.tr( |
629 self.hgShowConfigAct.setWhatsThis(self.tr( |
630 """<b>Show combined configuration settings</b>""" |
630 """<b>Show combined configuration settings</b>""" |
631 """<p>This shows the combined configuration settings""" |
631 """<p>This shows the combined configuration settings""" |
632 """ from all configuration files.</p>""" |
632 """ from all configuration files.</p>""" |
633 )) |
633 )) |
634 self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig) |
634 self.hgShowConfigAct.triggered.connect(self.__hgShowConfig) |
635 self.actions.append(self.hgShowConfigAct) |
635 self.actions.append(self.hgShowConfigAct) |
636 |
636 |
637 self.hgShowPathsAct = E5Action( |
637 self.hgShowPathsAct = E5Action( |
638 self.tr('Show paths'), |
638 self.tr('Show paths'), |
639 self.tr('Show paths...'), |
639 self.tr('Show paths...'), |
643 )) |
643 )) |
644 self.hgShowPathsAct.setWhatsThis(self.tr( |
644 self.hgShowPathsAct.setWhatsThis(self.tr( |
645 """<b>Show paths</b>""" |
645 """<b>Show paths</b>""" |
646 """<p>This shows the aliases for remote repositories.</p>""" |
646 """<p>This shows the aliases for remote repositories.</p>""" |
647 )) |
647 )) |
648 self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths) |
648 self.hgShowPathsAct.triggered.connect(self.__hgShowPaths) |
649 self.actions.append(self.hgShowPathsAct) |
649 self.actions.append(self.hgShowPathsAct) |
650 |
650 |
651 self.hgVerifyAct = E5Action( |
651 self.hgVerifyAct = E5Action( |
652 self.tr('Verify repository'), |
652 self.tr('Verify repository'), |
653 self.tr('Verify repository...'), |
653 self.tr('Verify repository...'), |
657 )) |
657 )) |
658 self.hgVerifyAct.setWhatsThis(self.tr( |
658 self.hgVerifyAct.setWhatsThis(self.tr( |
659 """<b>Verify repository</b>""" |
659 """<b>Verify repository</b>""" |
660 """<p>This verifies the integrity of the repository.</p>""" |
660 """<p>This verifies the integrity of the repository.</p>""" |
661 )) |
661 )) |
662 self.hgVerifyAct.triggered[()].connect(self.__hgVerify) |
662 self.hgVerifyAct.triggered.connect(self.__hgVerify) |
663 self.actions.append(self.hgVerifyAct) |
663 self.actions.append(self.hgVerifyAct) |
664 |
664 |
665 self.hgRecoverAct = E5Action( |
665 self.hgRecoverAct = E5Action( |
666 self.tr('Recover'), |
666 self.tr('Recover'), |
667 self.tr('Recover...'), |
667 self.tr('Recover...'), |
671 )) |
671 )) |
672 self.hgRecoverAct.setWhatsThis(self.tr( |
672 self.hgRecoverAct.setWhatsThis(self.tr( |
673 """<b>Recover</b>""" |
673 """<b>Recover</b>""" |
674 """<p>This recovers from an interrupted transaction.</p>""" |
674 """<p>This recovers from an interrupted transaction.</p>""" |
675 )) |
675 )) |
676 self.hgRecoverAct.triggered[()].connect(self.__hgRecover) |
676 self.hgRecoverAct.triggered.connect(self.__hgRecover) |
677 self.actions.append(self.hgRecoverAct) |
677 self.actions.append(self.hgRecoverAct) |
678 |
678 |
679 self.hgIdentifyAct = E5Action( |
679 self.hgIdentifyAct = E5Action( |
680 self.tr('Identify'), |
680 self.tr('Identify'), |
681 self.tr('Identify...'), |
681 self.tr('Identify...'), |
685 )) |
685 )) |
686 self.hgIdentifyAct.setWhatsThis(self.tr( |
686 self.hgIdentifyAct.setWhatsThis(self.tr( |
687 """<b>Identify</b>""" |
687 """<b>Identify</b>""" |
688 """<p>This identifies the project directory.</p>""" |
688 """<p>This identifies the project directory.</p>""" |
689 )) |
689 )) |
690 self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify) |
690 self.hgIdentifyAct.triggered.connect(self.__hgIdentify) |
691 self.actions.append(self.hgIdentifyAct) |
691 self.actions.append(self.hgIdentifyAct) |
692 |
692 |
693 self.hgCreateIgnoreAct = E5Action( |
693 self.hgCreateIgnoreAct = E5Action( |
694 self.tr('Create .hgignore'), |
694 self.tr('Create .hgignore'), |
695 self.tr('Create .hgignore'), |
695 self.tr('Create .hgignore'), |
699 )) |
699 )) |
700 self.hgCreateIgnoreAct.setWhatsThis(self.tr( |
700 self.hgCreateIgnoreAct.setWhatsThis(self.tr( |
701 """<b>Create .hgignore</b>""" |
701 """<b>Create .hgignore</b>""" |
702 """<p>This creates a .hgignore file with default values.</p>""" |
702 """<p>This creates a .hgignore file with default values.</p>""" |
703 )) |
703 )) |
704 self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore) |
704 self.hgCreateIgnoreAct.triggered.connect(self.__hgCreateIgnore) |
705 self.actions.append(self.hgCreateIgnoreAct) |
705 self.actions.append(self.hgCreateIgnoreAct) |
706 |
706 |
707 self.hgBundleAct = E5Action( |
707 self.hgBundleAct = E5Action( |
708 self.tr('Create changegroup'), |
708 self.tr('Create changegroup'), |
709 self.tr('Create changegroup...'), |
709 self.tr('Create changegroup...'), |
714 self.hgBundleAct.setWhatsThis(self.tr( |
714 self.hgBundleAct.setWhatsThis(self.tr( |
715 """<b>Create changegroup</b>""" |
715 """<b>Create changegroup</b>""" |
716 """<p>This creates a changegroup file collecting selected""" |
716 """<p>This creates a changegroup file collecting selected""" |
717 """ changesets (hg bundle).</p>""" |
717 """ changesets (hg bundle).</p>""" |
718 )) |
718 )) |
719 self.hgBundleAct.triggered[()].connect(self.__hgBundle) |
719 self.hgBundleAct.triggered.connect(self.__hgBundle) |
720 self.actions.append(self.hgBundleAct) |
720 self.actions.append(self.hgBundleAct) |
721 |
721 |
722 self.hgPreviewBundleAct = E5Action( |
722 self.hgPreviewBundleAct = E5Action( |
723 self.tr('Preview changegroup'), |
723 self.tr('Preview changegroup'), |
724 self.tr('Preview changegroup...'), |
724 self.tr('Preview changegroup...'), |
729 self.hgPreviewBundleAct.setWhatsThis(self.tr( |
729 self.hgPreviewBundleAct.setWhatsThis(self.tr( |
730 """<b>Preview changegroup</b>""" |
730 """<b>Preview changegroup</b>""" |
731 """<p>This previews a changegroup file containing a collection""" |
731 """<p>This previews a changegroup file containing a collection""" |
732 """ of changesets.</p>""" |
732 """ of changesets.</p>""" |
733 )) |
733 )) |
734 self.hgPreviewBundleAct.triggered[()].connect(self.__hgPreviewBundle) |
734 self.hgPreviewBundleAct.triggered.connect(self.__hgPreviewBundle) |
735 self.actions.append(self.hgPreviewBundleAct) |
735 self.actions.append(self.hgPreviewBundleAct) |
736 |
736 |
737 self.hgIdentifyBundleAct = E5Action( |
737 self.hgIdentifyBundleAct = E5Action( |
738 self.tr('Identify changegroup'), |
738 self.tr('Identify changegroup'), |
739 self.tr('Identify changegroup...'), |
739 self.tr('Identify changegroup...'), |
744 self.hgIdentifyBundleAct.setWhatsThis(self.tr( |
744 self.hgIdentifyBundleAct.setWhatsThis(self.tr( |
745 """<b>Identify changegroup</b>""" |
745 """<b>Identify changegroup</b>""" |
746 """<p>This identifies a changegroup file containing a""" |
746 """<p>This identifies a changegroup file containing a""" |
747 """ collection of changesets.</p>""" |
747 """ collection of changesets.</p>""" |
748 )) |
748 )) |
749 self.hgIdentifyBundleAct.triggered[()].connect(self.__hgIdentifyBundle) |
749 self.hgIdentifyBundleAct.triggered.connect(self.__hgIdentifyBundle) |
750 self.actions.append(self.hgIdentifyBundleAct) |
750 self.actions.append(self.hgIdentifyBundleAct) |
751 |
751 |
752 self.hgUnbundleAct = E5Action( |
752 self.hgUnbundleAct = E5Action( |
753 self.tr('Apply changegroups'), |
753 self.tr('Apply changegroups'), |
754 self.tr('Apply changegroups...'), |
754 self.tr('Apply changegroups...'), |
759 self.hgUnbundleAct.setWhatsThis(self.tr( |
759 self.hgUnbundleAct.setWhatsThis(self.tr( |
760 """<b>Apply changegroups</b>""" |
760 """<b>Apply changegroups</b>""" |
761 """<p>This applies one or several changegroup files generated by""" |
761 """<p>This applies one or several changegroup files generated by""" |
762 """ the 'Create changegroup' action (hg unbundle).</p>""" |
762 """ the 'Create changegroup' action (hg unbundle).</p>""" |
763 )) |
763 )) |
764 self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle) |
764 self.hgUnbundleAct.triggered.connect(self.__hgUnbundle) |
765 self.actions.append(self.hgUnbundleAct) |
765 self.actions.append(self.hgUnbundleAct) |
766 |
766 |
767 self.hgBisectGoodAct = E5Action( |
767 self.hgBisectGoodAct = E5Action( |
768 self.tr('Mark as "good"'), |
768 self.tr('Mark as "good"'), |
769 self.tr('Mark as "good"...'), |
769 self.tr('Mark as "good"...'), |
773 )) |
773 )) |
774 self.hgBisectGoodAct.setWhatsThis(self.tr( |
774 self.hgBisectGoodAct.setWhatsThis(self.tr( |
775 """<b>Mark as good</b>""" |
775 """<b>Mark as good</b>""" |
776 """<p>This marks a selectable changeset as good.</p>""" |
776 """<p>This marks a selectable changeset as good.</p>""" |
777 )) |
777 )) |
778 self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood) |
778 self.hgBisectGoodAct.triggered.connect(self.__hgBisectGood) |
779 self.actions.append(self.hgBisectGoodAct) |
779 self.actions.append(self.hgBisectGoodAct) |
780 |
780 |
781 self.hgBisectBadAct = E5Action( |
781 self.hgBisectBadAct = E5Action( |
782 self.tr('Mark as "bad"'), |
782 self.tr('Mark as "bad"'), |
783 self.tr('Mark as "bad"...'), |
783 self.tr('Mark as "bad"...'), |
787 )) |
787 )) |
788 self.hgBisectBadAct.setWhatsThis(self.tr( |
788 self.hgBisectBadAct.setWhatsThis(self.tr( |
789 """<b>Mark as bad</b>""" |
789 """<b>Mark as bad</b>""" |
790 """<p>This marks a selectable changeset as bad.</p>""" |
790 """<p>This marks a selectable changeset as bad.</p>""" |
791 )) |
791 )) |
792 self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad) |
792 self.hgBisectBadAct.triggered.connect(self.__hgBisectBad) |
793 self.actions.append(self.hgBisectBadAct) |
793 self.actions.append(self.hgBisectBadAct) |
794 |
794 |
795 self.hgBisectSkipAct = E5Action( |
795 self.hgBisectSkipAct = E5Action( |
796 self.tr('Skip'), |
796 self.tr('Skip'), |
797 self.tr('Skip...'), |
797 self.tr('Skip...'), |
801 )) |
801 )) |
802 self.hgBisectSkipAct.setWhatsThis(self.tr( |
802 self.hgBisectSkipAct.setWhatsThis(self.tr( |
803 """<b>Skip</b>""" |
803 """<b>Skip</b>""" |
804 """<p>This skips a selectable changeset.</p>""" |
804 """<p>This skips a selectable changeset.</p>""" |
805 )) |
805 )) |
806 self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip) |
806 self.hgBisectSkipAct.triggered.connect(self.__hgBisectSkip) |
807 self.actions.append(self.hgBisectSkipAct) |
807 self.actions.append(self.hgBisectSkipAct) |
808 |
808 |
809 self.hgBisectResetAct = E5Action( |
809 self.hgBisectResetAct = E5Action( |
810 self.tr('Reset'), |
810 self.tr('Reset'), |
811 self.tr('Reset'), |
811 self.tr('Reset'), |
815 )) |
815 )) |
816 self.hgBisectResetAct.setWhatsThis(self.tr( |
816 self.hgBisectResetAct.setWhatsThis(self.tr( |
817 """<b>Reset</b>""" |
817 """<b>Reset</b>""" |
818 """<p>This resets the bisect search data.</p>""" |
818 """<p>This resets the bisect search data.</p>""" |
819 )) |
819 )) |
820 self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset) |
820 self.hgBisectResetAct.triggered.connect(self.__hgBisectReset) |
821 self.actions.append(self.hgBisectResetAct) |
821 self.actions.append(self.hgBisectResetAct) |
822 |
822 |
823 self.hgBackoutAct = E5Action( |
823 self.hgBackoutAct = E5Action( |
824 self.tr('Back out changeset'), |
824 self.tr('Back out changeset'), |
825 self.tr('Back out changeset'), |
825 self.tr('Back out changeset'), |
829 )) |
829 )) |
830 self.hgBackoutAct.setWhatsThis(self.tr( |
830 self.hgBackoutAct.setWhatsThis(self.tr( |
831 """<b>Back out changeset</b>""" |
831 """<b>Back out changeset</b>""" |
832 """<p>This backs out changes of an earlier changeset.</p>""" |
832 """<p>This backs out changes of an earlier changeset.</p>""" |
833 )) |
833 )) |
834 self.hgBackoutAct.triggered[()].connect(self.__hgBackout) |
834 self.hgBackoutAct.triggered.connect(self.__hgBackout) |
835 self.actions.append(self.hgBackoutAct) |
835 self.actions.append(self.hgBackoutAct) |
836 |
836 |
837 self.hgRollbackAct = E5Action( |
837 self.hgRollbackAct = E5Action( |
838 self.tr('Rollback last transaction'), |
838 self.tr('Rollback last transaction'), |
839 self.tr('Rollback last transaction'), |
839 self.tr('Rollback last transaction'), |
856 """<li>unbundle</li>""" |
856 """<li>unbundle</li>""" |
857 """</ul>""" |
857 """</ul>""" |
858 """</p><p><strong>This command is dangerous. Please use with""" |
858 """</p><p><strong>This command is dangerous. Please use with""" |
859 """ care. </strong></p>""" |
859 """ care. </strong></p>""" |
860 )) |
860 )) |
861 self.hgRollbackAct.triggered[()].connect(self.__hgRollback) |
861 self.hgRollbackAct.triggered.connect(self.__hgRollback) |
862 self.actions.append(self.hgRollbackAct) |
862 self.actions.append(self.hgRollbackAct) |
863 |
863 |
864 self.hgServeAct = E5Action( |
864 self.hgServeAct = E5Action( |
865 self.tr('Serve project repository'), |
865 self.tr('Serve project repository'), |
866 self.tr('Serve project repository...'), |
866 self.tr('Serve project repository...'), |
870 )) |
870 )) |
871 self.hgServeAct.setWhatsThis(self.tr( |
871 self.hgServeAct.setWhatsThis(self.tr( |
872 """<b>Serve project repository</b>""" |
872 """<b>Serve project repository</b>""" |
873 """<p>This serves the project repository.</p>""" |
873 """<p>This serves the project repository.</p>""" |
874 )) |
874 )) |
875 self.hgServeAct.triggered[()].connect(self.__hgServe) |
875 self.hgServeAct.triggered.connect(self.__hgServe) |
876 self.actions.append(self.hgServeAct) |
876 self.actions.append(self.hgServeAct) |
877 |
877 |
878 self.hgImportAct = E5Action( |
878 self.hgImportAct = E5Action( |
879 self.tr('Import Patch'), |
879 self.tr('Import Patch'), |
880 self.tr('Import Patch...'), |
880 self.tr('Import Patch...'), |
885 self.hgImportAct.setWhatsThis(self.tr( |
885 self.hgImportAct.setWhatsThis(self.tr( |
886 """<b>Import Patch</b>""" |
886 """<b>Import Patch</b>""" |
887 """<p>This imports a patch from a patch file into the""" |
887 """<p>This imports a patch from a patch file into the""" |
888 """ project.</p>""" |
888 """ project.</p>""" |
889 )) |
889 )) |
890 self.hgImportAct.triggered[()].connect(self.__hgImport) |
890 self.hgImportAct.triggered.connect(self.__hgImport) |
891 self.actions.append(self.hgImportAct) |
891 self.actions.append(self.hgImportAct) |
892 |
892 |
893 self.hgExportAct = E5Action( |
893 self.hgExportAct = E5Action( |
894 self.tr('Export Patches'), |
894 self.tr('Export Patches'), |
895 self.tr('Export Patches...'), |
895 self.tr('Export Patches...'), |
899 )) |
899 )) |
900 self.hgExportAct.setWhatsThis(self.tr( |
900 self.hgExportAct.setWhatsThis(self.tr( |
901 """<b>Export Patches</b>""" |
901 """<b>Export Patches</b>""" |
902 """<p>This exports revisions of the project to patch files.</p>""" |
902 """<p>This exports revisions of the project to patch files.</p>""" |
903 )) |
903 )) |
904 self.hgExportAct.triggered[()].connect(self.__hgExport) |
904 self.hgExportAct.triggered.connect(self.__hgExport) |
905 self.actions.append(self.hgExportAct) |
905 self.actions.append(self.hgExportAct) |
906 |
906 |
907 self.hgPhaseAct = E5Action( |
907 self.hgPhaseAct = E5Action( |
908 self.tr('Change Phase'), |
908 self.tr('Change Phase'), |
909 self.tr('Change Phase...'), |
909 self.tr('Change Phase...'), |
913 )) |
913 )) |
914 self.hgPhaseAct.setWhatsThis(self.tr( |
914 self.hgPhaseAct.setWhatsThis(self.tr( |
915 """<b>Change Phase</b>""" |
915 """<b>Change Phase</b>""" |
916 """<p>This changes the phase of revisions.</p>""" |
916 """<p>This changes the phase of revisions.</p>""" |
917 )) |
917 )) |
918 self.hgPhaseAct.triggered[()].connect(self.__hgPhase) |
918 self.hgPhaseAct.triggered.connect(self.__hgPhase) |
919 self.actions.append(self.hgPhaseAct) |
919 self.actions.append(self.hgPhaseAct) |
920 |
920 |
921 self.hgGraftAct = E5Action( |
921 self.hgGraftAct = E5Action( |
922 self.tr('Copy Changesets'), |
922 self.tr('Copy Changesets'), |
923 UI.PixmapCache.getIcon("vcsGraft.png"), |
923 UI.PixmapCache.getIcon("vcsGraft.png"), |
930 """<b>Copy Changesets</b>""" |
930 """<b>Copy Changesets</b>""" |
931 """<p>This copies changesets from another branch on top of the""" |
931 """<p>This copies changesets from another branch on top of the""" |
932 """ current working directory with the user, date and""" |
932 """ current working directory with the user, date and""" |
933 """ description of the original changeset.</p>""" |
933 """ description of the original changeset.</p>""" |
934 )) |
934 )) |
935 self.hgGraftAct.triggered[()].connect(self.__hgGraft) |
935 self.hgGraftAct.triggered.connect(self.__hgGraft) |
936 self.actions.append(self.hgGraftAct) |
936 self.actions.append(self.hgGraftAct) |
937 |
937 |
938 self.hgGraftContinueAct = E5Action( |
938 self.hgGraftContinueAct = E5Action( |
939 self.tr('Continue Copying Session'), |
939 self.tr('Continue Copying Session'), |
940 self.tr('Continue Copying Session'), |
940 self.tr('Continue Copying Session'), |
945 self.hgGraftContinueAct.setWhatsThis(self.tr( |
945 self.hgGraftContinueAct.setWhatsThis(self.tr( |
946 """<b>Continue Copying Session</b>""" |
946 """<b>Continue Copying Session</b>""" |
947 """<p>This continues the last copying session after conflicts""" |
947 """<p>This continues the last copying session after conflicts""" |
948 """ were resolved.</p>""" |
948 """ were resolved.</p>""" |
949 )) |
949 )) |
950 self.hgGraftContinueAct.triggered[()].connect(self.__hgGraftContinue) |
950 self.hgGraftContinueAct.triggered.connect(self.__hgGraftContinue) |
951 self.actions.append(self.hgGraftContinueAct) |
951 self.actions.append(self.hgGraftContinueAct) |
952 |
952 |
953 self.hgAddSubrepoAct = E5Action( |
953 self.hgAddSubrepoAct = E5Action( |
954 self.tr('Add'), |
954 self.tr('Add'), |
955 UI.PixmapCache.getIcon("vcsAdd.png"), |
955 UI.PixmapCache.getIcon("vcsAdd.png"), |
960 )) |
960 )) |
961 self.hgAddSubrepoAct.setWhatsThis(self.tr( |
961 self.hgAddSubrepoAct.setWhatsThis(self.tr( |
962 """<b>Add...</b>""" |
962 """<b>Add...</b>""" |
963 """<p>Add a sub-repository to the project.</p>""" |
963 """<p>Add a sub-repository to the project.</p>""" |
964 )) |
964 )) |
965 self.hgAddSubrepoAct.triggered[()].connect(self.__hgAddSubrepository) |
965 self.hgAddSubrepoAct.triggered.connect(self.__hgAddSubrepository) |
966 self.actions.append(self.hgAddSubrepoAct) |
966 self.actions.append(self.hgAddSubrepoAct) |
967 |
967 |
968 self.hgRemoveSubreposAct = E5Action( |
968 self.hgRemoveSubreposAct = E5Action( |
969 self.tr('Remove'), |
969 self.tr('Remove'), |
970 UI.PixmapCache.getIcon("vcsRemove.png"), |
970 UI.PixmapCache.getIcon("vcsRemove.png"), |
975 )) |
975 )) |
976 self.hgRemoveSubreposAct.setWhatsThis(self.tr( |
976 self.hgRemoveSubreposAct.setWhatsThis(self.tr( |
977 """<b>Remove...</b>""" |
977 """<b>Remove...</b>""" |
978 """<p>Remove sub-repositories from the project.</p>""" |
978 """<p>Remove sub-repositories from the project.</p>""" |
979 )) |
979 )) |
980 self.hgRemoveSubreposAct.triggered[()].connect( |
980 self.hgRemoveSubreposAct.triggered.connect( |
981 self.__hgRemoveSubrepositories) |
981 self.__hgRemoveSubrepositories) |
982 self.actions.append(self.hgRemoveSubreposAct) |
982 self.actions.append(self.hgRemoveSubreposAct) |
983 |
983 |
984 self.hgArchiveAct = E5Action( |
984 self.hgArchiveAct = E5Action( |
985 self.tr('Create unversioned archive'), |
985 self.tr('Create unversioned archive'), |
992 self.hgArchiveAct.setWhatsThis(self.tr( |
992 self.hgArchiveAct.setWhatsThis(self.tr( |
993 """<b>Create unversioned archive...</b>""" |
993 """<b>Create unversioned archive...</b>""" |
994 """<p>This creates an unversioned archive from the""" |
994 """<p>This creates an unversioned archive from the""" |
995 """ repository.</p>""" |
995 """ repository.</p>""" |
996 )) |
996 )) |
997 self.hgArchiveAct.triggered[()].connect(self.__hgArchive) |
997 self.hgArchiveAct.triggered.connect(self.__hgArchive) |
998 self.actions.append(self.hgArchiveAct) |
998 self.actions.append(self.hgArchiveAct) |
999 |
999 |
1000 def initMenu(self, menu): |
1000 def initMenu(self, menu): |
1001 """ |
1001 """ |
1002 Public method to generate the VCS menu. |
1002 Public method to generate the VCS menu. |