41 self.hgQueueInitAct.setWhatsThis(self.tr( |
41 self.hgQueueInitAct.setWhatsThis(self.tr( |
42 """<b>Init Queue Repository</b>""" |
42 """<b>Init Queue Repository</b>""" |
43 """<p>This initializes a new versioned queue repository inside""" |
43 """<p>This initializes a new versioned queue repository inside""" |
44 """ the current repository.</p>""" |
44 """ the current repository.</p>""" |
45 )) |
45 )) |
46 self.hgQueueInitAct.triggered[()].connect(self.__hgQueueInit) |
46 self.hgQueueInitAct.triggered.connect(self.__hgQueueInit) |
47 self.actions.append(self.hgQueueInitAct) |
47 self.actions.append(self.hgQueueInitAct) |
48 |
48 |
49 self.hgQueueCommitAct = E5Action( |
49 self.hgQueueCommitAct = E5Action( |
50 self.tr('Commit changes'), |
50 self.tr('Commit changes'), |
51 self.tr('Commit changes...'), |
51 self.tr('Commit changes...'), |
55 )) |
55 )) |
56 self.hgQueueCommitAct.setWhatsThis(self.tr( |
56 self.hgQueueCommitAct.setWhatsThis(self.tr( |
57 """<b>Commit changes...</b>""" |
57 """<b>Commit changes...</b>""" |
58 """<p>This commits changes in the queue repository.</p>""" |
58 """<p>This commits changes in the queue repository.</p>""" |
59 )) |
59 )) |
60 self.hgQueueCommitAct.triggered[()].connect(self.__hgQueueCommit) |
60 self.hgQueueCommitAct.triggered.connect(self.__hgQueueCommit) |
61 self.actions.append(self.hgQueueCommitAct) |
61 self.actions.append(self.hgQueueCommitAct) |
62 |
62 |
63 self.hgQueueNewAct = E5Action( |
63 self.hgQueueNewAct = E5Action( |
64 self.tr('New Patch'), |
64 self.tr('New Patch'), |
65 self.tr('New Patch...'), |
65 self.tr('New Patch...'), |
69 )) |
69 )) |
70 self.hgQueueNewAct.setWhatsThis(self.tr( |
70 self.hgQueueNewAct.setWhatsThis(self.tr( |
71 """<b>New Patch</b>""" |
71 """<b>New Patch</b>""" |
72 """<p>This creates a new named patch.</p>""" |
72 """<p>This creates a new named patch.</p>""" |
73 )) |
73 )) |
74 self.hgQueueNewAct.triggered[()].connect(self.__hgQueueNewPatch) |
74 self.hgQueueNewAct.triggered.connect(self.__hgQueueNewPatch) |
75 self.actions.append(self.hgQueueNewAct) |
75 self.actions.append(self.hgQueueNewAct) |
76 |
76 |
77 self.hgQueueRefreshAct = E5Action( |
77 self.hgQueueRefreshAct = E5Action( |
78 self.tr('Update Current Patch'), |
78 self.tr('Update Current Patch'), |
79 self.tr('Update Current Patch'), |
79 self.tr('Update Current Patch'), |
83 )) |
83 )) |
84 self.hgQueueRefreshAct.setWhatsThis(self.tr( |
84 self.hgQueueRefreshAct.setWhatsThis(self.tr( |
85 """<b>Update Current Patch</b>""" |
85 """<b>Update Current Patch</b>""" |
86 """<p>This updates the current patch.</p>""" |
86 """<p>This updates the current patch.</p>""" |
87 )) |
87 )) |
88 self.hgQueueRefreshAct.triggered[()].connect( |
88 self.hgQueueRefreshAct.triggered.connect( |
89 self.__hgQueueRefreshPatch) |
89 self.__hgQueueRefreshPatch) |
90 self.actions.append(self.hgQueueRefreshAct) |
90 self.actions.append(self.hgQueueRefreshAct) |
91 |
91 |
92 self.hgQueueRefreshMessageAct = E5Action( |
92 self.hgQueueRefreshMessageAct = E5Action( |
93 self.tr('Update Current Patch (with Message)'), |
93 self.tr('Update Current Patch (with Message)'), |
99 self.hgQueueRefreshMessageAct.setWhatsThis(self.tr( |
99 self.hgQueueRefreshMessageAct.setWhatsThis(self.tr( |
100 """<b>Update Current Patch (with Message)</b>""" |
100 """<b>Update Current Patch (with Message)</b>""" |
101 """<p>This updates the current patch after giving the chance""" |
101 """<p>This updates the current patch after giving the chance""" |
102 """ to change the current commit message.</p>""" |
102 """ to change the current commit message.</p>""" |
103 )) |
103 )) |
104 self.hgQueueRefreshMessageAct.triggered[()].connect( |
104 self.hgQueueRefreshMessageAct.triggered.connect( |
105 self.__hgQueueRefreshPatchMessage) |
105 self.__hgQueueRefreshPatchMessage) |
106 self.actions.append(self.hgQueueRefreshMessageAct) |
106 self.actions.append(self.hgQueueRefreshMessageAct) |
107 |
107 |
108 self.hgQueueDiffAct = E5Action( |
108 self.hgQueueDiffAct = E5Action( |
109 self.tr('Show Current Patch'), |
109 self.tr('Show Current Patch'), |
116 """<b>Show Current Patch</b>""" |
116 """<b>Show Current Patch</b>""" |
117 """<p>This shows the contents of the current patch including""" |
117 """<p>This shows the contents of the current patch including""" |
118 """ any changes which have been made in the working directory""" |
118 """ any changes which have been made in the working directory""" |
119 """ since the last refresh.</p>""" |
119 """ since the last refresh.</p>""" |
120 )) |
120 )) |
121 self.hgQueueDiffAct.triggered[()].connect(self.__hgQueueShowPatch) |
121 self.hgQueueDiffAct.triggered.connect(self.__hgQueueShowPatch) |
122 self.actions.append(self.hgQueueDiffAct) |
122 self.actions.append(self.hgQueueDiffAct) |
123 |
123 |
124 self.hgQueueHeaderAct = E5Action( |
124 self.hgQueueHeaderAct = E5Action( |
125 self.tr('Show Current Message'), |
125 self.tr('Show Current Message'), |
126 self.tr('Show Current Message...'), |
126 self.tr('Show Current Message...'), |
130 )) |
130 )) |
131 self.hgQueueHeaderAct.setWhatsThis(self.tr( |
131 self.hgQueueHeaderAct.setWhatsThis(self.tr( |
132 """<b>Show Current Message</b>""" |
132 """<b>Show Current Message</b>""" |
133 """<p>This shows the commit message of the current patch.</p>""" |
133 """<p>This shows the commit message of the current patch.</p>""" |
134 )) |
134 )) |
135 self.hgQueueHeaderAct.triggered[()].connect(self.__hgQueueShowHeader) |
135 self.hgQueueHeaderAct.triggered.connect(self.__hgQueueShowHeader) |
136 self.actions.append(self.hgQueueHeaderAct) |
136 self.actions.append(self.hgQueueHeaderAct) |
137 |
137 |
138 self.hgQueueListAct = E5Action( |
138 self.hgQueueListAct = E5Action( |
139 self.tr('List Patches'), |
139 self.tr('List Patches'), |
140 self.tr('List Patches...'), |
140 self.tr('List Patches...'), |
144 )) |
144 )) |
145 self.hgQueueListAct.setWhatsThis(self.tr( |
145 self.hgQueueListAct.setWhatsThis(self.tr( |
146 """<b>List Patches</b>""" |
146 """<b>List Patches</b>""" |
147 """<p>This lists all applied and unapplied patches.</p>""" |
147 """<p>This lists all applied and unapplied patches.</p>""" |
148 )) |
148 )) |
149 self.hgQueueListAct.triggered[()].connect(self.__hgQueueListPatches) |
149 self.hgQueueListAct.triggered.connect(self.__hgQueueListPatches) |
150 self.actions.append(self.hgQueueListAct) |
150 self.actions.append(self.hgQueueListAct) |
151 |
151 |
152 self.hgQueueFinishAct = E5Action( |
152 self.hgQueueFinishAct = E5Action( |
153 self.tr('Finish Applied Patches'), |
153 self.tr('Finish Applied Patches'), |
154 self.tr('Finish Applied Patches'), |
154 self.tr('Finish Applied Patches'), |
159 self.hgQueueFinishAct.setWhatsThis(self.tr( |
159 self.hgQueueFinishAct.setWhatsThis(self.tr( |
160 """<b>Finish Applied Patches</b>""" |
160 """<b>Finish Applied Patches</b>""" |
161 """<p>This finishes the applied patches by moving them out of""" |
161 """<p>This finishes the applied patches by moving them out of""" |
162 """ mq control into regular repository history.</p>""" |
162 """ mq control into regular repository history.</p>""" |
163 )) |
163 )) |
164 self.hgQueueFinishAct.triggered[()].connect( |
164 self.hgQueueFinishAct.triggered.connect( |
165 self.__hgQueueFinishAppliedPatches) |
165 self.__hgQueueFinishAppliedPatches) |
166 self.actions.append(self.hgQueueFinishAct) |
166 self.actions.append(self.hgQueueFinishAct) |
167 |
167 |
168 self.hgQueueRenameAct = E5Action( |
168 self.hgQueueRenameAct = E5Action( |
169 self.tr('Rename Patch'), |
169 self.tr('Rename Patch'), |
174 )) |
174 )) |
175 self.hgQueueRenameAct.setWhatsThis(self.tr( |
175 self.hgQueueRenameAct.setWhatsThis(self.tr( |
176 """<b>Rename Patch</b>""" |
176 """<b>Rename Patch</b>""" |
177 """<p>This renames the current or a named patch.</p>""" |
177 """<p>This renames the current or a named patch.</p>""" |
178 )) |
178 )) |
179 self.hgQueueRenameAct.triggered[()].connect(self.__hgQueueRenamePatch) |
179 self.hgQueueRenameAct.triggered.connect(self.__hgQueueRenamePatch) |
180 self.actions.append(self.hgQueueRenameAct) |
180 self.actions.append(self.hgQueueRenameAct) |
181 |
181 |
182 self.hgQueueDeleteAct = E5Action( |
182 self.hgQueueDeleteAct = E5Action( |
183 self.tr('Delete Patch'), |
183 self.tr('Delete Patch'), |
184 self.tr('Delete Patch'), |
184 self.tr('Delete Patch'), |
188 )) |
188 )) |
189 self.hgQueueDeleteAct.setWhatsThis(self.tr( |
189 self.hgQueueDeleteAct.setWhatsThis(self.tr( |
190 """<b>Delete Patch</b>""" |
190 """<b>Delete Patch</b>""" |
191 """<p>This deletes an unapplied patch.</p>""" |
191 """<p>This deletes an unapplied patch.</p>""" |
192 )) |
192 )) |
193 self.hgQueueDeleteAct.triggered[()].connect(self.__hgQueueDeletePatch) |
193 self.hgQueueDeleteAct.triggered.connect(self.__hgQueueDeletePatch) |
194 self.actions.append(self.hgQueueDeleteAct) |
194 self.actions.append(self.hgQueueDeleteAct) |
195 |
195 |
196 self.hgQueueFoldAct = E5Action( |
196 self.hgQueueFoldAct = E5Action( |
197 self.tr('Fold Patches'), |
197 self.tr('Fold Patches'), |
198 self.tr('Fold Patches'), |
198 self.tr('Fold Patches'), |
202 )) |
202 )) |
203 self.hgQueueFoldAct.setWhatsThis(self.tr( |
203 self.hgQueueFoldAct.setWhatsThis(self.tr( |
204 """<b>Fold Patches</b>""" |
204 """<b>Fold Patches</b>""" |
205 """<p>This folds unapplied patches into the current patch.</p>""" |
205 """<p>This folds unapplied patches into the current patch.</p>""" |
206 )) |
206 )) |
207 self.hgQueueFoldAct.triggered[()].connect( |
207 self.hgQueueFoldAct.triggered.connect( |
208 self.__hgQueueFoldUnappliedPatches) |
208 self.__hgQueueFoldUnappliedPatches) |
209 self.actions.append(self.hgQueueFoldAct) |
209 self.actions.append(self.hgQueueFoldAct) |
210 |
210 |
211 self.hgQueueStatusAct = E5Action( |
211 self.hgQueueStatusAct = E5Action( |
212 self.tr('Show Status'), |
212 self.tr('Show Status'), |
217 )) |
217 )) |
218 self.hgQueueStatusAct.setWhatsThis(self.tr( |
218 self.hgQueueStatusAct.setWhatsThis(self.tr( |
219 """<b>Show Status</b>""" |
219 """<b>Show Status</b>""" |
220 """<p>This shows the status of the queue repository.</p>""" |
220 """<p>This shows the status of the queue repository.</p>""" |
221 )) |
221 )) |
222 self.hgQueueStatusAct.triggered[()].connect(self.__hgQueueStatus) |
222 self.hgQueueStatusAct.triggered.connect(self.__hgQueueStatus) |
223 self.actions.append(self.hgQueueStatusAct) |
223 self.actions.append(self.hgQueueStatusAct) |
224 |
224 |
225 # TODO: add support for hg summary --mq |
225 # TODO: add support for hg summary --mq |
226 |
226 |
227 self.__initPushPopActions() |
227 self.__initPushPopActions() |
243 self.hgQueuePushAct.setWhatsThis(self.tr( |
243 self.hgQueuePushAct.setWhatsThis(self.tr( |
244 """<b>Push Next Patch</b>""" |
244 """<b>Push Next Patch</b>""" |
245 """<p>This pushes the next patch onto the stack of applied""" |
245 """<p>This pushes the next patch onto the stack of applied""" |
246 """ patches.</p>""" |
246 """ patches.</p>""" |
247 )) |
247 )) |
248 self.hgQueuePushAct.triggered[()].connect(self.__hgQueuePushPatch) |
248 self.hgQueuePushAct.triggered.connect(self.__hgQueuePushPatch) |
249 self.actions.append(self.hgQueuePushAct) |
249 self.actions.append(self.hgQueuePushAct) |
250 |
250 |
251 self.hgQueuePushAllAct = E5Action( |
251 self.hgQueuePushAllAct = E5Action( |
252 self.tr('Push All Patches'), |
252 self.tr('Push All Patches'), |
253 self.tr('Push All Patches'), |
253 self.tr('Push All Patches'), |
258 self.hgQueuePushAllAct.setWhatsThis(self.tr( |
258 self.hgQueuePushAllAct.setWhatsThis(self.tr( |
259 """<b>Push All Patches</b>""" |
259 """<b>Push All Patches</b>""" |
260 """<p>This pushes all patches onto the stack of applied""" |
260 """<p>This pushes all patches onto the stack of applied""" |
261 """ patches.</p>""" |
261 """ patches.</p>""" |
262 )) |
262 )) |
263 self.hgQueuePushAllAct.triggered[()].connect( |
263 self.hgQueuePushAllAct.triggered.connect( |
264 self.__hgQueuePushAllPatches) |
264 self.__hgQueuePushAllPatches) |
265 self.actions.append(self.hgQueuePushAllAct) |
265 self.actions.append(self.hgQueuePushAllAct) |
266 |
266 |
267 self.hgQueuePushUntilAct = E5Action( |
267 self.hgQueuePushUntilAct = E5Action( |
268 self.tr('Push Patches'), |
268 self.tr('Push Patches'), |
274 self.hgQueuePushUntilAct.setWhatsThis(self.tr( |
274 self.hgQueuePushUntilAct.setWhatsThis(self.tr( |
275 """<b>Push Patches</b>""" |
275 """<b>Push Patches</b>""" |
276 """<p>This pushes patches onto the stack of applied patches""" |
276 """<p>This pushes patches onto the stack of applied patches""" |
277 """ until a named patch is at the top of the stack.</p>""" |
277 """ until a named patch is at the top of the stack.</p>""" |
278 )) |
278 )) |
279 self.hgQueuePushUntilAct.triggered[()].connect( |
279 self.hgQueuePushUntilAct.triggered.connect( |
280 self.__hgQueuePushPatches) |
280 self.__hgQueuePushPatches) |
281 self.actions.append(self.hgQueuePushUntilAct) |
281 self.actions.append(self.hgQueuePushUntilAct) |
282 |
282 |
283 self.hgQueuePopAct = E5Action( |
283 self.hgQueuePopAct = E5Action( |
284 self.tr('Pop Current Patch'), |
284 self.tr('Pop Current Patch'), |
290 self.hgQueuePopAct.setWhatsThis(self.tr( |
290 self.hgQueuePopAct.setWhatsThis(self.tr( |
291 """<b>Pop Current Patch</b>""" |
291 """<b>Pop Current Patch</b>""" |
292 """<p>This pops the current patch off the stack of applied""" |
292 """<p>This pops the current patch off the stack of applied""" |
293 """ patches.</p>""" |
293 """ patches.</p>""" |
294 )) |
294 )) |
295 self.hgQueuePopAct.triggered[()].connect(self.__hgQueuePopPatch) |
295 self.hgQueuePopAct.triggered.connect(self.__hgQueuePopPatch) |
296 self.actions.append(self.hgQueuePopAct) |
296 self.actions.append(self.hgQueuePopAct) |
297 |
297 |
298 self.hgQueuePopAllAct = E5Action( |
298 self.hgQueuePopAllAct = E5Action( |
299 self.tr('Pop All Patches'), |
299 self.tr('Pop All Patches'), |
300 self.tr('Pop All Patches'), |
300 self.tr('Pop All Patches'), |
305 self.hgQueuePopAllAct.setWhatsThis(self.tr( |
305 self.hgQueuePopAllAct.setWhatsThis(self.tr( |
306 """<b>Pop All Patches</b>""" |
306 """<b>Pop All Patches</b>""" |
307 """<p>This pops all patches off the stack of applied""" |
307 """<p>This pops all patches off the stack of applied""" |
308 """ patches.</p>""" |
308 """ patches.</p>""" |
309 )) |
309 )) |
310 self.hgQueuePopAllAct.triggered[()].connect( |
310 self.hgQueuePopAllAct.triggered.connect( |
311 self.__hgQueuePopAllPatches) |
311 self.__hgQueuePopAllPatches) |
312 self.actions.append(self.hgQueuePopAllAct) |
312 self.actions.append(self.hgQueuePopAllAct) |
313 |
313 |
314 self.hgQueuePopUntilAct = E5Action( |
314 self.hgQueuePopUntilAct = E5Action( |
315 self.tr('Pop Patches'), |
315 self.tr('Pop Patches'), |
321 self.hgQueuePopUntilAct.setWhatsThis(self.tr( |
321 self.hgQueuePopUntilAct.setWhatsThis(self.tr( |
322 """<b>Pop Patches</b>""" |
322 """<b>Pop Patches</b>""" |
323 """<p>This pops patches off the stack of applied patches""" |
323 """<p>This pops patches off the stack of applied patches""" |
324 """ until a named patch is at the top of the stack.</p>""" |
324 """ until a named patch is at the top of the stack.</p>""" |
325 )) |
325 )) |
326 self.hgQueuePopUntilAct.triggered[()].connect(self.__hgQueuePopPatches) |
326 self.hgQueuePopUntilAct.triggered.connect(self.__hgQueuePopPatches) |
327 self.actions.append(self.hgQueuePopUntilAct) |
327 self.actions.append(self.hgQueuePopUntilAct) |
328 |
328 |
329 self.hgQueueGotoAct = E5Action( |
329 self.hgQueueGotoAct = E5Action( |
330 self.tr('Go to Patch'), |
330 self.tr('Go to Patch'), |
331 self.tr('Go to Patch'), |
331 self.tr('Go to Patch'), |
336 self.hgQueueGotoAct.setWhatsThis(self.tr( |
336 self.hgQueueGotoAct.setWhatsThis(self.tr( |
337 """<b>Go to Patch</b>""" |
337 """<b>Go to Patch</b>""" |
338 """<p>This pushes or pops patches until a named patch is at the""" |
338 """<p>This pushes or pops patches until a named patch is at the""" |
339 """ top of the stack.</p>""" |
339 """ top of the stack.</p>""" |
340 )) |
340 )) |
341 self.hgQueueGotoAct.triggered[()].connect(self.__hgQueueGotoPatch) |
341 self.hgQueueGotoAct.triggered.connect(self.__hgQueueGotoPatch) |
342 self.actions.append(self.hgQueueGotoAct) |
342 self.actions.append(self.hgQueueGotoAct) |
343 |
343 |
344 def __initPushPopForceActions(self): |
344 def __initPushPopForceActions(self): |
345 """ |
345 """ |
346 Public method to generate the push and pop (force) action objects. |
346 Public method to generate the push and pop (force) action objects. |
355 self.hgQueuePushForceAct.setWhatsThis(self.tr( |
355 self.hgQueuePushForceAct.setWhatsThis(self.tr( |
356 """<b>Push Next Patch</b>""" |
356 """<b>Push Next Patch</b>""" |
357 """<p>This pushes the next patch onto the stack of applied""" |
357 """<p>This pushes the next patch onto the stack of applied""" |
358 """ patches on top of local changes.</p>""" |
358 """ patches on top of local changes.</p>""" |
359 )) |
359 )) |
360 self.hgQueuePushForceAct.triggered[()].connect( |
360 self.hgQueuePushForceAct.triggered.connect( |
361 self.__hgQueuePushPatchForced) |
361 self.__hgQueuePushPatchForced) |
362 self.actions.append(self.hgQueuePushForceAct) |
362 self.actions.append(self.hgQueuePushForceAct) |
363 |
363 |
364 self.hgQueuePushAllForceAct = E5Action( |
364 self.hgQueuePushAllForceAct = E5Action( |
365 self.tr('Push All Patches'), |
365 self.tr('Push All Patches'), |
371 self.hgQueuePushAllForceAct.setWhatsThis(self.tr( |
371 self.hgQueuePushAllForceAct.setWhatsThis(self.tr( |
372 """<b>Push All Patches</b>""" |
372 """<b>Push All Patches</b>""" |
373 """<p>This pushes all patches onto the stack of applied patches""" |
373 """<p>This pushes all patches onto the stack of applied patches""" |
374 """ on top of local changes.</p>""" |
374 """ on top of local changes.</p>""" |
375 )) |
375 )) |
376 self.hgQueuePushAllForceAct.triggered[()].connect( |
376 self.hgQueuePushAllForceAct.triggered.connect( |
377 self.__hgQueuePushAllPatchesForced) |
377 self.__hgQueuePushAllPatchesForced) |
378 self.actions.append(self.hgQueuePushAllForceAct) |
378 self.actions.append(self.hgQueuePushAllForceAct) |
379 |
379 |
380 self.hgQueuePushUntilForceAct = E5Action( |
380 self.hgQueuePushUntilForceAct = E5Action( |
381 self.tr('Push Patches'), |
381 self.tr('Push Patches'), |
388 """<b>Push Patches</b>""" |
388 """<b>Push Patches</b>""" |
389 """<p>This pushes patches onto the stack of applied patches""" |
389 """<p>This pushes patches onto the stack of applied patches""" |
390 """ until a named patch is at the top of the stack on top of""" |
390 """ until a named patch is at the top of the stack on top of""" |
391 """ local changes.</p>""" |
391 """ local changes.</p>""" |
392 )) |
392 )) |
393 self.hgQueuePushUntilForceAct.triggered[()].connect( |
393 self.hgQueuePushUntilForceAct.triggered.connect( |
394 self.__hgQueuePushPatchesForced) |
394 self.__hgQueuePushPatchesForced) |
395 self.actions.append(self.hgQueuePushUntilForceAct) |
395 self.actions.append(self.hgQueuePushUntilForceAct) |
396 |
396 |
397 self.hgQueuePopForceAct = E5Action( |
397 self.hgQueuePopForceAct = E5Action( |
398 self.tr('Pop Current Patch'), |
398 self.tr('Pop Current Patch'), |
405 """<b>Pop Current Patch</b>""" |
405 """<b>Pop Current Patch</b>""" |
406 """<p>This pops the current patch off the stack of applied""" |
406 """<p>This pops the current patch off the stack of applied""" |
407 """ patches""" |
407 """ patches""" |
408 """ forgetting local changes.</p>""" |
408 """ forgetting local changes.</p>""" |
409 )) |
409 )) |
410 self.hgQueuePopForceAct.triggered[()].connect( |
410 self.hgQueuePopForceAct.triggered.connect( |
411 self.__hgQueuePopPatchForced) |
411 self.__hgQueuePopPatchForced) |
412 self.actions.append(self.hgQueuePopForceAct) |
412 self.actions.append(self.hgQueuePopForceAct) |
413 |
413 |
414 self.hgQueuePopAllForceAct = E5Action( |
414 self.hgQueuePopAllForceAct = E5Action( |
415 self.tr('Pop All Patches'), |
415 self.tr('Pop All Patches'), |
421 self.hgQueuePopAllForceAct.setWhatsThis(self.tr( |
421 self.hgQueuePopAllForceAct.setWhatsThis(self.tr( |
422 """<b>Pop All Patches</b>""" |
422 """<b>Pop All Patches</b>""" |
423 """<p>This pops all patches off the stack of applied patches""" |
423 """<p>This pops all patches off the stack of applied patches""" |
424 """ forgetting local changes.</p>""" |
424 """ forgetting local changes.</p>""" |
425 )) |
425 )) |
426 self.hgQueuePopAllForceAct.triggered[()].connect( |
426 self.hgQueuePopAllForceAct.triggered.connect( |
427 self.__hgQueuePopAllPatchesForced) |
427 self.__hgQueuePopAllPatchesForced) |
428 self.actions.append(self.hgQueuePopAllForceAct) |
428 self.actions.append(self.hgQueuePopAllForceAct) |
429 |
429 |
430 self.hgQueuePopUntilForceAct = E5Action( |
430 self.hgQueuePopUntilForceAct = E5Action( |
431 self.tr('Pop Patches'), |
431 self.tr('Pop Patches'), |
438 """<b>Pop Patches</b>""" |
438 """<b>Pop Patches</b>""" |
439 """<p>This pops patches off the stack of applied patches until""" |
439 """<p>This pops patches off the stack of applied patches until""" |
440 """ a named patch is at the top of the stack forgetting local""" |
440 """ a named patch is at the top of the stack forgetting local""" |
441 """ changes.</p>""" |
441 """ changes.</p>""" |
442 )) |
442 )) |
443 self.hgQueuePopUntilForceAct.triggered[()].connect( |
443 self.hgQueuePopUntilForceAct.triggered.connect( |
444 self.__hgQueuePopPatchesForced) |
444 self.__hgQueuePopPatchesForced) |
445 self.actions.append(self.hgQueuePopUntilForceAct) |
445 self.actions.append(self.hgQueuePopUntilForceAct) |
446 |
446 |
447 self.hgQueueGotoForceAct = E5Action( |
447 self.hgQueueGotoForceAct = E5Action( |
448 self.tr('Go to Patch'), |
448 self.tr('Go to Patch'), |
455 self.hgQueueGotoForceAct.setWhatsThis(self.tr( |
455 self.hgQueueGotoForceAct.setWhatsThis(self.tr( |
456 """<b>Go to Patch</b>""" |
456 """<b>Go to Patch</b>""" |
457 """<p>This pushes or pops patches until a named patch is at the""" |
457 """<p>This pushes or pops patches until a named patch is at the""" |
458 """ top of the stack overwriting any local changes.</p>""" |
458 """ top of the stack overwriting any local changes.</p>""" |
459 )) |
459 )) |
460 self.hgQueueGotoForceAct.triggered[()].connect( |
460 self.hgQueueGotoForceAct.triggered.connect( |
461 self.__hgQueueGotoPatchForced) |
461 self.__hgQueueGotoPatchForced) |
462 self.actions.append(self.hgQueueGotoForceAct) |
462 self.actions.append(self.hgQueueGotoForceAct) |
463 |
463 |
464 def __initGuardsActions(self): |
464 def __initGuardsActions(self): |
465 """ |
465 """ |
475 self.hgQueueDefineGuardsAct.setWhatsThis(self.tr( |
475 self.hgQueueDefineGuardsAct.setWhatsThis(self.tr( |
476 """<b>Define Guards</b>""" |
476 """<b>Define Guards</b>""" |
477 """<p>This opens a dialog to define guards for the current""" |
477 """<p>This opens a dialog to define guards for the current""" |
478 """ or a named patch.</p>""" |
478 """ or a named patch.</p>""" |
479 )) |
479 )) |
480 self.hgQueueDefineGuardsAct.triggered[()].connect( |
480 self.hgQueueDefineGuardsAct.triggered.connect( |
481 self.__hgQueueGuardsDefine) |
481 self.__hgQueueGuardsDefine) |
482 self.actions.append(self.hgQueueDefineGuardsAct) |
482 self.actions.append(self.hgQueueDefineGuardsAct) |
483 |
483 |
484 self.hgQueueDropAllGuardsAct = E5Action( |
484 self.hgQueueDropAllGuardsAct = E5Action( |
485 self.tr('Drop All Guards'), |
485 self.tr('Drop All Guards'), |
490 )) |
490 )) |
491 self.hgQueueDropAllGuardsAct.setWhatsThis(self.tr( |
491 self.hgQueueDropAllGuardsAct.setWhatsThis(self.tr( |
492 """<b>Drop All Guards</b>""" |
492 """<b>Drop All Guards</b>""" |
493 """<p>This drops all guards of the current or a named patch.</p>""" |
493 """<p>This drops all guards of the current or a named patch.</p>""" |
494 )) |
494 )) |
495 self.hgQueueDropAllGuardsAct.triggered[()].connect( |
495 self.hgQueueDropAllGuardsAct.triggered.connect( |
496 self.__hgQueueGuardsDropAll) |
496 self.__hgQueueGuardsDropAll) |
497 self.actions.append(self.hgQueueDropAllGuardsAct) |
497 self.actions.append(self.hgQueueDropAllGuardsAct) |
498 |
498 |
499 self.hgQueueListGuardsAct = E5Action( |
499 self.hgQueueListGuardsAct = E5Action( |
500 self.tr('List Guards'), |
500 self.tr('List Guards'), |
505 )) |
505 )) |
506 self.hgQueueListGuardsAct.setWhatsThis(self.tr( |
506 self.hgQueueListGuardsAct.setWhatsThis(self.tr( |
507 """<b>List Guards</b>""" |
507 """<b>List Guards</b>""" |
508 """<p>This lists the guards of the current or a named patch.</p>""" |
508 """<p>This lists the guards of the current or a named patch.</p>""" |
509 )) |
509 )) |
510 self.hgQueueListGuardsAct.triggered[()].connect( |
510 self.hgQueueListGuardsAct.triggered.connect( |
511 self.__hgQueueGuardsList) |
511 self.__hgQueueGuardsList) |
512 self.actions.append(self.hgQueueListGuardsAct) |
512 self.actions.append(self.hgQueueListGuardsAct) |
513 |
513 |
514 self.hgQueueListAllGuardsAct = E5Action( |
514 self.hgQueueListAllGuardsAct = E5Action( |
515 self.tr('List All Guards'), |
515 self.tr('List All Guards'), |
520 )) |
520 )) |
521 self.hgQueueListAllGuardsAct.setWhatsThis(self.tr( |
521 self.hgQueueListAllGuardsAct.setWhatsThis(self.tr( |
522 """<b>List All Guards</b>""" |
522 """<b>List All Guards</b>""" |
523 """<p>This lists all guards of all patches.</p>""" |
523 """<p>This lists all guards of all patches.</p>""" |
524 )) |
524 )) |
525 self.hgQueueListAllGuardsAct.triggered[()].connect( |
525 self.hgQueueListAllGuardsAct.triggered.connect( |
526 self.__hgQueueGuardsListAll) |
526 self.__hgQueueGuardsListAll) |
527 self.actions.append(self.hgQueueListAllGuardsAct) |
527 self.actions.append(self.hgQueueListAllGuardsAct) |
528 |
528 |
529 self.hgQueueActivateGuardsAct = E5Action( |
529 self.hgQueueActivateGuardsAct = E5Action( |
530 self.tr('Set Active Guards'), |
530 self.tr('Set Active Guards'), |
535 )) |
535 )) |
536 self.hgQueueActivateGuardsAct.setWhatsThis(self.tr( |
536 self.hgQueueActivateGuardsAct.setWhatsThis(self.tr( |
537 """<b>Set Active Guards</b>""" |
537 """<b>Set Active Guards</b>""" |
538 """<p>This opens a dialog to set the active guards.</p>""" |
538 """<p>This opens a dialog to set the active guards.</p>""" |
539 )) |
539 )) |
540 self.hgQueueActivateGuardsAct.triggered[()].connect( |
540 self.hgQueueActivateGuardsAct.triggered.connect( |
541 self.__hgQueueGuardsSetActive) |
541 self.__hgQueueGuardsSetActive) |
542 self.actions.append(self.hgQueueActivateGuardsAct) |
542 self.actions.append(self.hgQueueActivateGuardsAct) |
543 |
543 |
544 self.hgQueueDeactivateGuardsAct = E5Action( |
544 self.hgQueueDeactivateGuardsAct = E5Action( |
545 self.tr('Deactivate Guards'), |
545 self.tr('Deactivate Guards'), |
550 )) |
550 )) |
551 self.hgQueueDeactivateGuardsAct.setWhatsThis(self.tr( |
551 self.hgQueueDeactivateGuardsAct.setWhatsThis(self.tr( |
552 """<b>Deactivate Guards</b>""" |
552 """<b>Deactivate Guards</b>""" |
553 """<p>This deactivates all active guards.</p>""" |
553 """<p>This deactivates all active guards.</p>""" |
554 )) |
554 )) |
555 self.hgQueueDeactivateGuardsAct.triggered[()].connect( |
555 self.hgQueueDeactivateGuardsAct.triggered.connect( |
556 self.__hgQueueGuardsDeactivate) |
556 self.__hgQueueGuardsDeactivate) |
557 self.actions.append(self.hgQueueDeactivateGuardsAct) |
557 self.actions.append(self.hgQueueDeactivateGuardsAct) |
558 |
558 |
559 self.hgQueueIdentifyActiveGuardsAct = E5Action( |
559 self.hgQueueIdentifyActiveGuardsAct = E5Action( |
560 self.tr('Identify Active Guards'), |
560 self.tr('Identify Active Guards'), |
565 )) |
565 )) |
566 self.hgQueueIdentifyActiveGuardsAct.setWhatsThis(self.tr( |
566 self.hgQueueIdentifyActiveGuardsAct.setWhatsThis(self.tr( |
567 """<b>Identify Active Guards</b>""" |
567 """<b>Identify Active Guards</b>""" |
568 """<p>This opens a dialog showing a list of active guards.</p>""" |
568 """<p>This opens a dialog showing a list of active guards.</p>""" |
569 )) |
569 )) |
570 self.hgQueueIdentifyActiveGuardsAct.triggered[()].connect( |
570 self.hgQueueIdentifyActiveGuardsAct.triggered.connect( |
571 self.__hgQueueGuardsIdentifyActive) |
571 self.__hgQueueGuardsIdentifyActive) |
572 self.actions.append(self.hgQueueIdentifyActiveGuardsAct) |
572 self.actions.append(self.hgQueueIdentifyActiveGuardsAct) |
573 |
573 |
574 def __initQueuesMgmtActions(self): |
574 def __initQueuesMgmtActions(self): |
575 """ |
575 """ |
584 )) |
584 )) |
585 self.hgQueueCreateQueueAct.setWhatsThis(self.tr( |
585 self.hgQueueCreateQueueAct.setWhatsThis(self.tr( |
586 """<b>Create Queue</b>""" |
586 """<b>Create Queue</b>""" |
587 """<p>This creates a new patch queue.</p>""" |
587 """<p>This creates a new patch queue.</p>""" |
588 )) |
588 )) |
589 self.hgQueueCreateQueueAct.triggered[()].connect( |
589 self.hgQueueCreateQueueAct.triggered.connect( |
590 self.__hgQueueCreateQueue) |
590 self.__hgQueueCreateQueue) |
591 self.actions.append(self.hgQueueCreateQueueAct) |
591 self.actions.append(self.hgQueueCreateQueueAct) |
592 |
592 |
593 self.hgQueueRenameQueueAct = E5Action( |
593 self.hgQueueRenameQueueAct = E5Action( |
594 self.tr('Rename Queue'), |
594 self.tr('Rename Queue'), |
599 )) |
599 )) |
600 self.hgQueueRenameQueueAct.setWhatsThis(self.tr( |
600 self.hgQueueRenameQueueAct.setWhatsThis(self.tr( |
601 """<b>Rename Queue</b>""" |
601 """<b>Rename Queue</b>""" |
602 """<p>This renames the active patch queue.</p>""" |
602 """<p>This renames the active patch queue.</p>""" |
603 )) |
603 )) |
604 self.hgQueueRenameQueueAct.triggered[()].connect( |
604 self.hgQueueRenameQueueAct.triggered.connect( |
605 self.__hgQueueRenameQueue) |
605 self.__hgQueueRenameQueue) |
606 self.actions.append(self.hgQueueRenameQueueAct) |
606 self.actions.append(self.hgQueueRenameQueueAct) |
607 |
607 |
608 self.hgQueueDeleteQueueAct = E5Action( |
608 self.hgQueueDeleteQueueAct = E5Action( |
609 self.tr('Delete Queue'), |
609 self.tr('Delete Queue'), |
614 )) |
614 )) |
615 self.hgQueueDeleteQueueAct.setWhatsThis(self.tr( |
615 self.hgQueueDeleteQueueAct.setWhatsThis(self.tr( |
616 """<b>Delete Queue</b>""" |
616 """<b>Delete Queue</b>""" |
617 """<p>This deletes the reference to a patch queue.</p>""" |
617 """<p>This deletes the reference to a patch queue.</p>""" |
618 )) |
618 )) |
619 self.hgQueueDeleteQueueAct.triggered[()].connect( |
619 self.hgQueueDeleteQueueAct.triggered.connect( |
620 self.__hgQueueDeleteQueue) |
620 self.__hgQueueDeleteQueue) |
621 self.actions.append(self.hgQueueDeleteQueueAct) |
621 self.actions.append(self.hgQueueDeleteQueueAct) |
622 |
622 |
623 self.hgQueuePurgeQueueAct = E5Action( |
623 self.hgQueuePurgeQueueAct = E5Action( |
624 self.tr('Purge Queue'), |
624 self.tr('Purge Queue'), |
631 self.hgQueuePurgeQueueAct.setWhatsThis(self.tr( |
631 self.hgQueuePurgeQueueAct.setWhatsThis(self.tr( |
632 """<b>Purge Queue</b>""" |
632 """<b>Purge Queue</b>""" |
633 """<p>This deletes the reference to a patch queue and removes""" |
633 """<p>This deletes the reference to a patch queue and removes""" |
634 """ the patch directory.</p>""" |
634 """ the patch directory.</p>""" |
635 )) |
635 )) |
636 self.hgQueuePurgeQueueAct.triggered[()].connect( |
636 self.hgQueuePurgeQueueAct.triggered.connect( |
637 self.__hgQueuePurgeQueue) |
637 self.__hgQueuePurgeQueue) |
638 self.actions.append(self.hgQueuePurgeQueueAct) |
638 self.actions.append(self.hgQueuePurgeQueueAct) |
639 |
639 |
640 self.hgQueueActivateQueueAct = E5Action( |
640 self.hgQueueActivateQueueAct = E5Action( |
641 self.tr('Activate Queue'), |
641 self.tr('Activate Queue'), |
646 )) |
646 )) |
647 self.hgQueueActivateQueueAct.setWhatsThis(self.tr( |
647 self.hgQueueActivateQueueAct.setWhatsThis(self.tr( |
648 """<b>Activate Queue</b>""" |
648 """<b>Activate Queue</b>""" |
649 """<p>This sets the active queue.</p>""" |
649 """<p>This sets the active queue.</p>""" |
650 )) |
650 )) |
651 self.hgQueueActivateQueueAct.triggered[()].connect( |
651 self.hgQueueActivateQueueAct.triggered.connect( |
652 self.__hgQueueActivateQueue) |
652 self.__hgQueueActivateQueue) |
653 self.actions.append(self.hgQueueActivateQueueAct) |
653 self.actions.append(self.hgQueueActivateQueueAct) |
654 |
654 |
655 self.hgQueueListQueuesAct = E5Action( |
655 self.hgQueueListQueuesAct = E5Action( |
656 self.tr('List Queues'), |
656 self.tr('List Queues'), |
661 )) |
661 )) |
662 self.hgQueueListQueuesAct.setWhatsThis(self.tr( |
662 self.hgQueueListQueuesAct.setWhatsThis(self.tr( |
663 """<b>List Queues</b>""" |
663 """<b>List Queues</b>""" |
664 """<p>This opens a dialog showing all available queues.</p>""" |
664 """<p>This opens a dialog showing all available queues.</p>""" |
665 )) |
665 )) |
666 self.hgQueueListQueuesAct.triggered[()].connect( |
666 self.hgQueueListQueuesAct.triggered.connect( |
667 self.__hgQueueListQueues) |
667 self.__hgQueueListQueues) |
668 self.actions.append(self.hgQueueListQueuesAct) |
668 self.actions.append(self.hgQueueListQueuesAct) |
669 |
669 |
670 def initMenu(self, mainMenu): |
670 def initMenu(self, mainMenu): |
671 """ |
671 """ |