src/eric7/Plugins/VcsPlugins/vcsMercurial/QueuesExtension/ProjectHelper.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
19 19
20 class QueuesProjectHelper(HgExtensionProjectHelper): 20 class QueuesProjectHelper(HgExtensionProjectHelper):
21 """ 21 """
22 Class implementing the queues extension project helper. 22 Class implementing the queues extension project helper.
23 """ 23 """
24
24 def __init__(self): 25 def __init__(self):
25 """ 26 """
26 Constructor 27 Constructor
27 """ 28 """
28 super().__init__() 29 super().__init__()
29 30
30 def initActions(self): 31 def initActions(self):
31 """ 32 """
32 Public method to generate the action objects. 33 Public method to generate the action objects.
33 """ 34 """
34 self.hgQueueInitAct = EricAction( 35 self.hgQueueInitAct = EricAction(
35 self.tr('Init Queue Repository'), 36 self.tr("Init Queue Repository"),
36 self.tr('Init Queue Repository'), 37 self.tr("Init Queue Repository"),
37 0, 0, self, 'mercurial_queues_init') 38 0,
38 self.hgQueueInitAct.setStatusTip(self.tr( 39 0,
39 'Initialize a new versioned queue repository' 40 self,
40 )) 41 "mercurial_queues_init",
41 self.hgQueueInitAct.setWhatsThis(self.tr( 42 )
42 """<b>Init Queue Repository</b>""" 43 self.hgQueueInitAct.setStatusTip(
43 """<p>This initializes a new versioned queue repository inside""" 44 self.tr("Initialize a new versioned queue repository")
44 """ the current repository.</p>""" 45 )
45 )) 46 self.hgQueueInitAct.setWhatsThis(
47 self.tr(
48 """<b>Init Queue Repository</b>"""
49 """<p>This initializes a new versioned queue repository inside"""
50 """ the current repository.</p>"""
51 )
52 )
46 self.hgQueueInitAct.triggered.connect(self.__hgQueueInit) 53 self.hgQueueInitAct.triggered.connect(self.__hgQueueInit)
47 self.actions.append(self.hgQueueInitAct) 54 self.actions.append(self.hgQueueInitAct)
48 55
49 self.hgQueueCommitAct = EricAction( 56 self.hgQueueCommitAct = EricAction(
50 self.tr('Commit changes'), 57 self.tr("Commit changes"),
51 self.tr('Commit changes...'), 58 self.tr("Commit changes..."),
52 0, 0, self, 'mercurial_queues_commit') 59 0,
53 self.hgQueueCommitAct.setStatusTip(self.tr( 60 0,
54 'Commit changes in the queue repository' 61 self,
55 )) 62 "mercurial_queues_commit",
56 self.hgQueueCommitAct.setWhatsThis(self.tr( 63 )
57 """<b>Commit changes...</b>""" 64 self.hgQueueCommitAct.setStatusTip(
58 """<p>This commits changes in the queue repository.</p>""" 65 self.tr("Commit changes in the queue repository")
59 )) 66 )
67 self.hgQueueCommitAct.setWhatsThis(
68 self.tr(
69 """<b>Commit changes...</b>"""
70 """<p>This commits changes in the queue repository.</p>"""
71 )
72 )
60 self.hgQueueCommitAct.triggered.connect(self.__hgQueueCommit) 73 self.hgQueueCommitAct.triggered.connect(self.__hgQueueCommit)
61 self.actions.append(self.hgQueueCommitAct) 74 self.actions.append(self.hgQueueCommitAct)
62 75
63 self.hgQueueNewAct = EricAction( 76 self.hgQueueNewAct = EricAction(
64 self.tr('New Patch'), 77 self.tr("New Patch"),
65 self.tr('New Patch...'), 78 self.tr("New Patch..."),
66 0, 0, self, 'mercurial_queues_new') 79 0,
67 self.hgQueueNewAct.setStatusTip(self.tr( 80 0,
68 'Create a new patch' 81 self,
69 )) 82 "mercurial_queues_new",
70 self.hgQueueNewAct.setWhatsThis(self.tr( 83 )
71 """<b>New Patch</b>""" 84 self.hgQueueNewAct.setStatusTip(self.tr("Create a new patch"))
72 """<p>This creates a new named patch.</p>""" 85 self.hgQueueNewAct.setWhatsThis(
73 )) 86 self.tr("""<b>New Patch</b>""" """<p>This creates a new named patch.</p>""")
87 )
74 self.hgQueueNewAct.triggered.connect(self.__hgQueueNewPatch) 88 self.hgQueueNewAct.triggered.connect(self.__hgQueueNewPatch)
75 self.actions.append(self.hgQueueNewAct) 89 self.actions.append(self.hgQueueNewAct)
76 90
77 self.hgQueueRefreshAct = EricAction( 91 self.hgQueueRefreshAct = EricAction(
78 self.tr('Update Current Patch'), 92 self.tr("Update Current Patch"),
79 self.tr('Update Current Patch'), 93 self.tr("Update Current Patch"),
80 0, 0, self, 'mercurial_queues_refresh') 94 0,
81 self.hgQueueRefreshAct.setStatusTip(self.tr( 95 0,
82 'Update the current patch' 96 self,
83 )) 97 "mercurial_queues_refresh",
84 self.hgQueueRefreshAct.setWhatsThis(self.tr( 98 )
85 """<b>Update Current Patch</b>""" 99 self.hgQueueRefreshAct.setStatusTip(self.tr("Update the current patch"))
86 """<p>This updates the current patch.</p>""" 100 self.hgQueueRefreshAct.setWhatsThis(
87 )) 101 self.tr(
88 self.hgQueueRefreshAct.triggered.connect( 102 """<b>Update Current Patch</b>"""
89 self.__hgQueueRefreshPatch) 103 """<p>This updates the current patch.</p>"""
104 )
105 )
106 self.hgQueueRefreshAct.triggered.connect(self.__hgQueueRefreshPatch)
90 self.actions.append(self.hgQueueRefreshAct) 107 self.actions.append(self.hgQueueRefreshAct)
91 108
92 self.hgQueueRefreshMessageAct = EricAction( 109 self.hgQueueRefreshMessageAct = EricAction(
93 self.tr('Update Current Patch (with Message)'), 110 self.tr("Update Current Patch (with Message)"),
94 self.tr('Update Current Patch (with Message)'), 111 self.tr("Update Current Patch (with Message)"),
95 0, 0, self, 'mercurial_queues_refresh_message') 112 0,
96 self.hgQueueRefreshMessageAct.setStatusTip(self.tr( 113 0,
97 'Update the current patch and edit commit message' 114 self,
98 )) 115 "mercurial_queues_refresh_message",
99 self.hgQueueRefreshMessageAct.setWhatsThis(self.tr( 116 )
100 """<b>Update Current Patch (with Message)</b>""" 117 self.hgQueueRefreshMessageAct.setStatusTip(
101 """<p>This updates the current patch after giving the chance""" 118 self.tr("Update the current patch and edit commit message")
102 """ to change the current commit message.</p>""" 119 )
103 )) 120 self.hgQueueRefreshMessageAct.setWhatsThis(
121 self.tr(
122 """<b>Update Current Patch (with Message)</b>"""
123 """<p>This updates the current patch after giving the chance"""
124 """ to change the current commit message.</p>"""
125 )
126 )
104 self.hgQueueRefreshMessageAct.triggered.connect( 127 self.hgQueueRefreshMessageAct.triggered.connect(
105 self.__hgQueueRefreshPatchMessage) 128 self.__hgQueueRefreshPatchMessage
129 )
106 self.actions.append(self.hgQueueRefreshMessageAct) 130 self.actions.append(self.hgQueueRefreshMessageAct)
107 131
108 self.hgQueueDiffAct = EricAction( 132 self.hgQueueDiffAct = EricAction(
109 self.tr('Show Current Patch'), 133 self.tr("Show Current Patch"),
110 self.tr('Show Current Patch...'), 134 self.tr("Show Current Patch..."),
111 0, 0, self, 'mercurial_queues_show') 135 0,
112 self.hgQueueDiffAct.setStatusTip(self.tr( 136 0,
113 'Show the contents the current patch' 137 self,
114 )) 138 "mercurial_queues_show",
115 self.hgQueueDiffAct.setWhatsThis(self.tr( 139 )
116 """<b>Show Current Patch</b>""" 140 self.hgQueueDiffAct.setStatusTip(self.tr("Show the contents the current patch"))
117 """<p>This shows the contents of the current patch including""" 141 self.hgQueueDiffAct.setWhatsThis(
118 """ any changes which have been made in the working directory""" 142 self.tr(
119 """ since the last refresh.</p>""" 143 """<b>Show Current Patch</b>"""
120 )) 144 """<p>This shows the contents of the current patch including"""
145 """ any changes which have been made in the working directory"""
146 """ since the last refresh.</p>"""
147 )
148 )
121 self.hgQueueDiffAct.triggered.connect(self.__hgQueueShowPatch) 149 self.hgQueueDiffAct.triggered.connect(self.__hgQueueShowPatch)
122 self.actions.append(self.hgQueueDiffAct) 150 self.actions.append(self.hgQueueDiffAct)
123 151
124 self.hgQueueHeaderAct = EricAction( 152 self.hgQueueHeaderAct = EricAction(
125 self.tr('Show Current Message'), 153 self.tr("Show Current Message"),
126 self.tr('Show Current Message...'), 154 self.tr("Show Current Message..."),
127 0, 0, self, 'mercurial_queues_show_message') 155 0,
128 self.hgQueueHeaderAct.setStatusTip(self.tr( 156 0,
129 'Show the commit message of the current patch' 157 self,
130 )) 158 "mercurial_queues_show_message",
131 self.hgQueueHeaderAct.setWhatsThis(self.tr( 159 )
132 """<b>Show Current Message</b>""" 160 self.hgQueueHeaderAct.setStatusTip(
133 """<p>This shows the commit message of the current patch.</p>""" 161 self.tr("Show the commit message of the current patch")
134 )) 162 )
163 self.hgQueueHeaderAct.setWhatsThis(
164 self.tr(
165 """<b>Show Current Message</b>"""
166 """<p>This shows the commit message of the current patch.</p>"""
167 )
168 )
135 self.hgQueueHeaderAct.triggered.connect(self.__hgQueueShowHeader) 169 self.hgQueueHeaderAct.triggered.connect(self.__hgQueueShowHeader)
136 self.actions.append(self.hgQueueHeaderAct) 170 self.actions.append(self.hgQueueHeaderAct)
137 171
138 self.hgQueueListAct = EricAction( 172 self.hgQueueListAct = EricAction(
139 self.tr('List Patches'), 173 self.tr("List Patches"),
140 self.tr('List Patches...'), 174 self.tr("List Patches..."),
141 0, 0, self, 'mercurial_queues_list') 175 0,
142 self.hgQueueListAct.setStatusTip(self.tr( 176 0,
143 'List applied and unapplied patches' 177 self,
144 )) 178 "mercurial_queues_list",
145 self.hgQueueListAct.setWhatsThis(self.tr( 179 )
146 """<b>List Patches</b>""" 180 self.hgQueueListAct.setStatusTip(self.tr("List applied and unapplied patches"))
147 """<p>This lists all applied and unapplied patches.</p>""" 181 self.hgQueueListAct.setWhatsThis(
148 )) 182 self.tr(
183 """<b>List Patches</b>"""
184 """<p>This lists all applied and unapplied patches.</p>"""
185 )
186 )
149 self.hgQueueListAct.triggered.connect(self.__hgQueueListPatches) 187 self.hgQueueListAct.triggered.connect(self.__hgQueueListPatches)
150 self.actions.append(self.hgQueueListAct) 188 self.actions.append(self.hgQueueListAct)
151 189
152 self.hgQueueFinishAct = EricAction( 190 self.hgQueueFinishAct = EricAction(
153 self.tr('Finish Applied Patches'), 191 self.tr("Finish Applied Patches"),
154 self.tr('Finish Applied Patches'), 192 self.tr("Finish Applied Patches"),
155 0, 0, self, 'mercurial_queues_finish_applied') 193 0,
156 self.hgQueueFinishAct.setStatusTip(self.tr( 194 0,
157 'Finish applied patches' 195 self,
158 )) 196 "mercurial_queues_finish_applied",
159 self.hgQueueFinishAct.setWhatsThis(self.tr( 197 )
160 """<b>Finish Applied Patches</b>""" 198 self.hgQueueFinishAct.setStatusTip(self.tr("Finish applied patches"))
161 """<p>This finishes the applied patches by moving them out of""" 199 self.hgQueueFinishAct.setWhatsThis(
162 """ mq control into regular repository history.</p>""" 200 self.tr(
163 )) 201 """<b>Finish Applied Patches</b>"""
164 self.hgQueueFinishAct.triggered.connect( 202 """<p>This finishes the applied patches by moving them out of"""
165 self.__hgQueueFinishAppliedPatches) 203 """ mq control into regular repository history.</p>"""
204 )
205 )
206 self.hgQueueFinishAct.triggered.connect(self.__hgQueueFinishAppliedPatches)
166 self.actions.append(self.hgQueueFinishAct) 207 self.actions.append(self.hgQueueFinishAct)
167 208
168 self.hgQueueRenameAct = EricAction( 209 self.hgQueueRenameAct = EricAction(
169 self.tr('Rename Patch'), 210 self.tr("Rename Patch"),
170 self.tr('Rename Patch'), 211 self.tr("Rename Patch"),
171 0, 0, self, 'mercurial_queues_rename') 212 0,
172 self.hgQueueRenameAct.setStatusTip(self.tr( 213 0,
173 'Rename a patch' 214 self,
174 )) 215 "mercurial_queues_rename",
175 self.hgQueueRenameAct.setWhatsThis(self.tr( 216 )
176 """<b>Rename Patch</b>""" 217 self.hgQueueRenameAct.setStatusTip(self.tr("Rename a patch"))
177 """<p>This renames the current or a named patch.</p>""" 218 self.hgQueueRenameAct.setWhatsThis(
178 )) 219 self.tr(
220 """<b>Rename Patch</b>"""
221 """<p>This renames the current or a named patch.</p>"""
222 )
223 )
179 self.hgQueueRenameAct.triggered.connect(self.__hgQueueRenamePatch) 224 self.hgQueueRenameAct.triggered.connect(self.__hgQueueRenamePatch)
180 self.actions.append(self.hgQueueRenameAct) 225 self.actions.append(self.hgQueueRenameAct)
181 226
182 self.hgQueueDeleteAct = EricAction( 227 self.hgQueueDeleteAct = EricAction(
183 self.tr('Delete Patch'), 228 self.tr("Delete Patch"),
184 self.tr('Delete Patch'), 229 self.tr("Delete Patch"),
185 0, 0, self, 'mercurial_queues_delete') 230 0,
186 self.hgQueueDeleteAct.setStatusTip(self.tr( 231 0,
187 'Delete unapplied patch' 232 self,
188 )) 233 "mercurial_queues_delete",
189 self.hgQueueDeleteAct.setWhatsThis(self.tr( 234 )
190 """<b>Delete Patch</b>""" 235 self.hgQueueDeleteAct.setStatusTip(self.tr("Delete unapplied patch"))
191 """<p>This deletes an unapplied patch.</p>""" 236 self.hgQueueDeleteAct.setWhatsThis(
192 )) 237 self.tr(
238 """<b>Delete Patch</b>""" """<p>This deletes an unapplied patch.</p>"""
239 )
240 )
193 self.hgQueueDeleteAct.triggered.connect(self.__hgQueueDeletePatch) 241 self.hgQueueDeleteAct.triggered.connect(self.__hgQueueDeletePatch)
194 self.actions.append(self.hgQueueDeleteAct) 242 self.actions.append(self.hgQueueDeleteAct)
195 243
196 self.hgQueueFoldAct = EricAction( 244 self.hgQueueFoldAct = EricAction(
197 self.tr('Fold Patches'), 245 self.tr("Fold Patches"),
198 self.tr('Fold Patches'), 246 self.tr("Fold Patches"),
199 0, 0, self, 'mercurial_queues_fold') 247 0,
200 self.hgQueueFoldAct.setStatusTip(self.tr( 248 0,
201 'Fold unapplied patches into the current patch' 249 self,
202 )) 250 "mercurial_queues_fold",
203 self.hgQueueFoldAct.setWhatsThis(self.tr( 251 )
204 """<b>Fold Patches</b>""" 252 self.hgQueueFoldAct.setStatusTip(
205 """<p>This folds unapplied patches into the current patch.</p>""" 253 self.tr("Fold unapplied patches into the current patch")
206 )) 254 )
207 self.hgQueueFoldAct.triggered.connect( 255 self.hgQueueFoldAct.setWhatsThis(
208 self.__hgQueueFoldUnappliedPatches) 256 self.tr(
257 """<b>Fold Patches</b>"""
258 """<p>This folds unapplied patches into the current patch.</p>"""
259 )
260 )
261 self.hgQueueFoldAct.triggered.connect(self.__hgQueueFoldUnappliedPatches)
209 self.actions.append(self.hgQueueFoldAct) 262 self.actions.append(self.hgQueueFoldAct)
210 263
211 self.hgQueueStatusAct = EricAction( 264 self.hgQueueStatusAct = EricAction(
212 self.tr('Show Status'), 265 self.tr("Show Status"),
213 self.tr('Show &Status...'), 266 self.tr("Show &Status..."),
214 0, 0, self, 'mercurial_queues_status') 267 0,
215 self.hgQueueStatusAct.setStatusTip(self.tr( 268 0,
216 'Show the status of the queue repository' 269 self,
217 )) 270 "mercurial_queues_status",
218 self.hgQueueStatusAct.setWhatsThis(self.tr( 271 )
219 """<b>Show Status</b>""" 272 self.hgQueueStatusAct.setStatusTip(
220 """<p>This shows the status of the queue repository.</p>""" 273 self.tr("Show the status of the queue repository")
221 )) 274 )
275 self.hgQueueStatusAct.setWhatsThis(
276 self.tr(
277 """<b>Show Status</b>"""
278 """<p>This shows the status of the queue repository.</p>"""
279 )
280 )
222 self.hgQueueStatusAct.triggered.connect(self.__hgQueueStatus) 281 self.hgQueueStatusAct.triggered.connect(self.__hgQueueStatus)
223 self.actions.append(self.hgQueueStatusAct) 282 self.actions.append(self.hgQueueStatusAct)
224 283
225 self.hgQueueSummaryAct = EricAction( 284 self.hgQueueSummaryAct = EricAction(
226 self.tr('Show Summary'), 285 self.tr("Show Summary"),
227 self.tr('Show summary...'), 286 self.tr("Show summary..."),
228 0, 0, self, 'mercurial_queues_summary') 287 0,
229 self.hgQueueSummaryAct.setStatusTip(self.tr( 288 0,
230 'Show summary information of the queue repository' 289 self,
231 )) 290 "mercurial_queues_summary",
232 self.hgQueueSummaryAct.setWhatsThis(self.tr( 291 )
233 """<b>Show summary</b>""" 292 self.hgQueueSummaryAct.setStatusTip(
234 """<p>This shows some summary information of the queue""" 293 self.tr("Show summary information of the queue repository")
235 """ repository.</p>""" 294 )
236 )) 295 self.hgQueueSummaryAct.setWhatsThis(
296 self.tr(
297 """<b>Show summary</b>"""
298 """<p>This shows some summary information of the queue"""
299 """ repository.</p>"""
300 )
301 )
237 self.hgQueueSummaryAct.triggered.connect(self.__hgQueueSummary) 302 self.hgQueueSummaryAct.triggered.connect(self.__hgQueueSummary)
238 self.actions.append(self.hgQueueSummaryAct) 303 self.actions.append(self.hgQueueSummaryAct)
239 304
240 self.__initPushPopActions() 305 self.__initPushPopActions()
241 self.__initPushPopForceActions() 306 self.__initPushPopForceActions()
242 self.__initGuardsActions() 307 self.__initGuardsActions()
243 self.__initQueuesMgmtActions() 308 self.__initQueuesMgmtActions()
244 309
245 def __initPushPopActions(self): 310 def __initPushPopActions(self):
246 """ 311 """
247 Private method to generate the push and pop action objects. 312 Private method to generate the push and pop action objects.
248 """ 313 """
249 self.hgQueuePushAct = EricAction( 314 self.hgQueuePushAct = EricAction(
250 self.tr('Push Next Patch'), 315 self.tr("Push Next Patch"),
251 self.tr('Push Next Patch'), 316 self.tr("Push Next Patch"),
252 0, 0, self, 'mercurial_queues_push_next') 317 0,
253 self.hgQueuePushAct.setStatusTip(self.tr( 318 0,
254 'Push the next patch onto the stack' 319 self,
255 )) 320 "mercurial_queues_push_next",
256 self.hgQueuePushAct.setWhatsThis(self.tr( 321 )
257 """<b>Push Next Patch</b>""" 322 self.hgQueuePushAct.setStatusTip(self.tr("Push the next patch onto the stack"))
258 """<p>This pushes the next patch onto the stack of applied""" 323 self.hgQueuePushAct.setWhatsThis(
259 """ patches.</p>""" 324 self.tr(
260 )) 325 """<b>Push Next Patch</b>"""
326 """<p>This pushes the next patch onto the stack of applied"""
327 """ patches.</p>"""
328 )
329 )
261 self.hgQueuePushAct.triggered.connect(self.__hgQueuePushPatch) 330 self.hgQueuePushAct.triggered.connect(self.__hgQueuePushPatch)
262 self.actions.append(self.hgQueuePushAct) 331 self.actions.append(self.hgQueuePushAct)
263 332
264 self.hgQueuePushAllAct = EricAction( 333 self.hgQueuePushAllAct = EricAction(
265 self.tr('Push All Patches'), 334 self.tr("Push All Patches"),
266 self.tr('Push All Patches'), 335 self.tr("Push All Patches"),
267 0, 0, self, 'mercurial_queues_push_all') 336 0,
268 self.hgQueuePushAllAct.setStatusTip(self.tr( 337 0,
269 'Push all patches onto the stack' 338 self,
270 )) 339 "mercurial_queues_push_all",
271 self.hgQueuePushAllAct.setWhatsThis(self.tr( 340 )
272 """<b>Push All Patches</b>""" 341 self.hgQueuePushAllAct.setStatusTip(self.tr("Push all patches onto the stack"))
273 """<p>This pushes all patches onto the stack of applied""" 342 self.hgQueuePushAllAct.setWhatsThis(
274 """ patches.</p>""" 343 self.tr(
275 )) 344 """<b>Push All Patches</b>"""
276 self.hgQueuePushAllAct.triggered.connect( 345 """<p>This pushes all patches onto the stack of applied"""
277 self.__hgQueuePushAllPatches) 346 """ patches.</p>"""
347 )
348 )
349 self.hgQueuePushAllAct.triggered.connect(self.__hgQueuePushAllPatches)
278 self.actions.append(self.hgQueuePushAllAct) 350 self.actions.append(self.hgQueuePushAllAct)
279 351
280 self.hgQueuePushUntilAct = EricAction( 352 self.hgQueuePushUntilAct = EricAction(
281 self.tr('Push Patches'), 353 self.tr("Push Patches"),
282 self.tr('Push Patches'), 354 self.tr("Push Patches"),
283 0, 0, self, 'mercurial_queues_push_until') 355 0,
284 self.hgQueuePushUntilAct.setStatusTip(self.tr( 356 0,
285 'Push patches onto the stack' 357 self,
286 )) 358 "mercurial_queues_push_until",
287 self.hgQueuePushUntilAct.setWhatsThis(self.tr( 359 )
288 """<b>Push Patches</b>""" 360 self.hgQueuePushUntilAct.setStatusTip(self.tr("Push patches onto the stack"))
289 """<p>This pushes patches onto the stack of applied patches""" 361 self.hgQueuePushUntilAct.setWhatsThis(
290 """ until a named patch is at the top of the stack.</p>""" 362 self.tr(
291 )) 363 """<b>Push Patches</b>"""
292 self.hgQueuePushUntilAct.triggered.connect( 364 """<p>This pushes patches onto the stack of applied patches"""
293 self.__hgQueuePushPatches) 365 """ until a named patch is at the top of the stack.</p>"""
366 )
367 )
368 self.hgQueuePushUntilAct.triggered.connect(self.__hgQueuePushPatches)
294 self.actions.append(self.hgQueuePushUntilAct) 369 self.actions.append(self.hgQueuePushUntilAct)
295 370
296 self.hgQueuePopAct = EricAction( 371 self.hgQueuePopAct = EricAction(
297 self.tr('Pop Current Patch'), 372 self.tr("Pop Current Patch"),
298 self.tr('Pop Current Patch'), 373 self.tr("Pop Current Patch"),
299 0, 0, self, 'mercurial_queues_pop_current') 374 0,
300 self.hgQueuePopAct.setStatusTip(self.tr( 375 0,
301 'Pop the current patch off the stack' 376 self,
302 )) 377 "mercurial_queues_pop_current",
303 self.hgQueuePopAct.setWhatsThis(self.tr( 378 )
304 """<b>Pop Current Patch</b>""" 379 self.hgQueuePopAct.setStatusTip(self.tr("Pop the current patch off the stack"))
305 """<p>This pops the current patch off the stack of applied""" 380 self.hgQueuePopAct.setWhatsThis(
306 """ patches.</p>""" 381 self.tr(
307 )) 382 """<b>Pop Current Patch</b>"""
383 """<p>This pops the current patch off the stack of applied"""
384 """ patches.</p>"""
385 )
386 )
308 self.hgQueuePopAct.triggered.connect(self.__hgQueuePopPatch) 387 self.hgQueuePopAct.triggered.connect(self.__hgQueuePopPatch)
309 self.actions.append(self.hgQueuePopAct) 388 self.actions.append(self.hgQueuePopAct)
310 389
311 self.hgQueuePopAllAct = EricAction( 390 self.hgQueuePopAllAct = EricAction(
312 self.tr('Pop All Patches'), 391 self.tr("Pop All Patches"),
313 self.tr('Pop All Patches'), 392 self.tr("Pop All Patches"),
314 0, 0, self, 'mercurial_queues_pop_all') 393 0,
315 self.hgQueuePopAllAct.setStatusTip(self.tr( 394 0,
316 'Pop all patches off the stack' 395 self,
317 )) 396 "mercurial_queues_pop_all",
318 self.hgQueuePopAllAct.setWhatsThis(self.tr( 397 )
319 """<b>Pop All Patches</b>""" 398 self.hgQueuePopAllAct.setStatusTip(self.tr("Pop all patches off the stack"))
320 """<p>This pops all patches off the stack of applied""" 399 self.hgQueuePopAllAct.setWhatsThis(
321 """ patches.</p>""" 400 self.tr(
322 )) 401 """<b>Pop All Patches</b>"""
323 self.hgQueuePopAllAct.triggered.connect( 402 """<p>This pops all patches off the stack of applied"""
324 self.__hgQueuePopAllPatches) 403 """ patches.</p>"""
404 )
405 )
406 self.hgQueuePopAllAct.triggered.connect(self.__hgQueuePopAllPatches)
325 self.actions.append(self.hgQueuePopAllAct) 407 self.actions.append(self.hgQueuePopAllAct)
326 408
327 self.hgQueuePopUntilAct = EricAction( 409 self.hgQueuePopUntilAct = EricAction(
328 self.tr('Pop Patches'), 410 self.tr("Pop Patches"),
329 self.tr('Pop Patches'), 411 self.tr("Pop Patches"),
330 0, 0, self, 'mercurial_queues_pop_until') 412 0,
331 self.hgQueuePopUntilAct.setStatusTip(self.tr( 413 0,
332 'Pop patches off the stack' 414 self,
333 )) 415 "mercurial_queues_pop_until",
334 self.hgQueuePopUntilAct.setWhatsThis(self.tr( 416 )
335 """<b>Pop Patches</b>""" 417 self.hgQueuePopUntilAct.setStatusTip(self.tr("Pop patches off the stack"))
336 """<p>This pops patches off the stack of applied patches""" 418 self.hgQueuePopUntilAct.setWhatsThis(
337 """ until a named patch is at the top of the stack.</p>""" 419 self.tr(
338 )) 420 """<b>Pop Patches</b>"""
421 """<p>This pops patches off the stack of applied patches"""
422 """ until a named patch is at the top of the stack.</p>"""
423 )
424 )
339 self.hgQueuePopUntilAct.triggered.connect(self.__hgQueuePopPatches) 425 self.hgQueuePopUntilAct.triggered.connect(self.__hgQueuePopPatches)
340 self.actions.append(self.hgQueuePopUntilAct) 426 self.actions.append(self.hgQueuePopUntilAct)
341 427
342 self.hgQueueGotoAct = EricAction( 428 self.hgQueueGotoAct = EricAction(
343 self.tr('Go to Patch'), 429 self.tr("Go to Patch"),
344 self.tr('Go to Patch'), 430 self.tr("Go to Patch"),
345 0, 0, self, 'mercurial_queues_goto') 431 0,
346 self.hgQueueGotoAct.setStatusTip(self.tr( 432 0,
347 'Push or pop patches until named patch is at top of stack' 433 self,
348 )) 434 "mercurial_queues_goto",
349 self.hgQueueGotoAct.setWhatsThis(self.tr( 435 )
350 """<b>Go to Patch</b>""" 436 self.hgQueueGotoAct.setStatusTip(
351 """<p>This pushes or pops patches until a named patch is at the""" 437 self.tr("Push or pop patches until named patch is at top of stack")
352 """ top of the stack.</p>""" 438 )
353 )) 439 self.hgQueueGotoAct.setWhatsThis(
440 self.tr(
441 """<b>Go to Patch</b>"""
442 """<p>This pushes or pops patches until a named patch is at the"""
443 """ top of the stack.</p>"""
444 )
445 )
354 self.hgQueueGotoAct.triggered.connect(self.__hgQueueGotoPatch) 446 self.hgQueueGotoAct.triggered.connect(self.__hgQueueGotoPatch)
355 self.actions.append(self.hgQueueGotoAct) 447 self.actions.append(self.hgQueueGotoAct)
356 448
357 def __initPushPopForceActions(self): 449 def __initPushPopForceActions(self):
358 """ 450 """
359 Private method to generate the push and pop (force) action objects. 451 Private method to generate the push and pop (force) action objects.
360 """ 452 """
361 self.hgQueuePushForceAct = EricAction( 453 self.hgQueuePushForceAct = EricAction(
362 self.tr('Push Next Patch'), 454 self.tr("Push Next Patch"),
363 self.tr('Push Next Patch'), 455 self.tr("Push Next Patch"),
364 0, 0, self, 'mercurial_queues_push_next_force') 456 0,
365 self.hgQueuePushForceAct.setStatusTip(self.tr( 457 0,
366 'Push the next patch onto the stack on top of local changes' 458 self,
367 )) 459 "mercurial_queues_push_next_force",
368 self.hgQueuePushForceAct.setWhatsThis(self.tr( 460 )
369 """<b>Push Next Patch</b>""" 461 self.hgQueuePushForceAct.setStatusTip(
370 """<p>This pushes the next patch onto the stack of applied""" 462 self.tr("Push the next patch onto the stack on top of local changes")
371 """ patches on top of local changes.</p>""" 463 )
372 )) 464 self.hgQueuePushForceAct.setWhatsThis(
373 self.hgQueuePushForceAct.triggered.connect( 465 self.tr(
374 self.__hgQueuePushPatchForced) 466 """<b>Push Next Patch</b>"""
467 """<p>This pushes the next patch onto the stack of applied"""
468 """ patches on top of local changes.</p>"""
469 )
470 )
471 self.hgQueuePushForceAct.triggered.connect(self.__hgQueuePushPatchForced)
375 self.actions.append(self.hgQueuePushForceAct) 472 self.actions.append(self.hgQueuePushForceAct)
376 473
377 self.hgQueuePushAllForceAct = EricAction( 474 self.hgQueuePushAllForceAct = EricAction(
378 self.tr('Push All Patches'), 475 self.tr("Push All Patches"),
379 self.tr('Push All Patches'), 476 self.tr("Push All Patches"),
380 0, 0, self, 'mercurial_queues_push_all_force') 477 0,
381 self.hgQueuePushAllForceAct.setStatusTip(self.tr( 478 0,
382 'Push all patches onto the stack on top of local changes' 479 self,
383 )) 480 "mercurial_queues_push_all_force",
384 self.hgQueuePushAllForceAct.setWhatsThis(self.tr( 481 )
385 """<b>Push All Patches</b>""" 482 self.hgQueuePushAllForceAct.setStatusTip(
386 """<p>This pushes all patches onto the stack of applied patches""" 483 self.tr("Push all patches onto the stack on top of local changes")
387 """ on top of local changes.</p>""" 484 )
388 )) 485 self.hgQueuePushAllForceAct.setWhatsThis(
486 self.tr(
487 """<b>Push All Patches</b>"""
488 """<p>This pushes all patches onto the stack of applied patches"""
489 """ on top of local changes.</p>"""
490 )
491 )
389 self.hgQueuePushAllForceAct.triggered.connect( 492 self.hgQueuePushAllForceAct.triggered.connect(
390 self.__hgQueuePushAllPatchesForced) 493 self.__hgQueuePushAllPatchesForced
494 )
391 self.actions.append(self.hgQueuePushAllForceAct) 495 self.actions.append(self.hgQueuePushAllForceAct)
392 496
393 self.hgQueuePushUntilForceAct = EricAction( 497 self.hgQueuePushUntilForceAct = EricAction(
394 self.tr('Push Patches'), 498 self.tr("Push Patches"),
395 self.tr('Push Patches'), 499 self.tr("Push Patches"),
396 0, 0, self, 'mercurial_queues_push_until_force') 500 0,
397 self.hgQueuePushUntilForceAct.setStatusTip(self.tr( 501 0,
398 'Push patches onto the stack on top of local changes' 502 self,
399 )) 503 "mercurial_queues_push_until_force",
400 self.hgQueuePushUntilForceAct.setWhatsThis(self.tr( 504 )
401 """<b>Push Patches</b>""" 505 self.hgQueuePushUntilForceAct.setStatusTip(
402 """<p>This pushes patches onto the stack of applied patches""" 506 self.tr("Push patches onto the stack on top of local changes")
403 """ until a named patch is at the top of the stack on top of""" 507 )
404 """ local changes.</p>""" 508 self.hgQueuePushUntilForceAct.setWhatsThis(
405 )) 509 self.tr(
406 self.hgQueuePushUntilForceAct.triggered.connect( 510 """<b>Push Patches</b>"""
407 self.__hgQueuePushPatchesForced) 511 """<p>This pushes patches onto the stack of applied patches"""
512 """ until a named patch is at the top of the stack on top of"""
513 """ local changes.</p>"""
514 )
515 )
516 self.hgQueuePushUntilForceAct.triggered.connect(self.__hgQueuePushPatchesForced)
408 self.actions.append(self.hgQueuePushUntilForceAct) 517 self.actions.append(self.hgQueuePushUntilForceAct)
409 518
410 self.hgQueuePopForceAct = EricAction( 519 self.hgQueuePopForceAct = EricAction(
411 self.tr('Pop Current Patch'), 520 self.tr("Pop Current Patch"),
412 self.tr('Pop Current Patch'), 521 self.tr("Pop Current Patch"),
413 0, 0, self, 'mercurial_queues_pop_current_force') 522 0,
414 self.hgQueuePopForceAct.setStatusTip(self.tr( 523 0,
415 'Pop the current patch off the stack forgetting local changes' 524 self,
416 )) 525 "mercurial_queues_pop_current_force",
417 self.hgQueuePopForceAct.setWhatsThis(self.tr( 526 )
418 """<b>Pop Current Patch</b>""" 527 self.hgQueuePopForceAct.setStatusTip(
419 """<p>This pops the current patch off the stack of applied""" 528 self.tr("Pop the current patch off the stack forgetting local changes")
420 """ patches""" 529 )
421 """ forgetting local changes.</p>""" 530 self.hgQueuePopForceAct.setWhatsThis(
422 )) 531 self.tr(
423 self.hgQueuePopForceAct.triggered.connect( 532 """<b>Pop Current Patch</b>"""
424 self.__hgQueuePopPatchForced) 533 """<p>This pops the current patch off the stack of applied"""
534 """ patches"""
535 """ forgetting local changes.</p>"""
536 )
537 )
538 self.hgQueuePopForceAct.triggered.connect(self.__hgQueuePopPatchForced)
425 self.actions.append(self.hgQueuePopForceAct) 539 self.actions.append(self.hgQueuePopForceAct)
426 540
427 self.hgQueuePopAllForceAct = EricAction( 541 self.hgQueuePopAllForceAct = EricAction(
428 self.tr('Pop All Patches'), 542 self.tr("Pop All Patches"),
429 self.tr('Pop All Patches'), 543 self.tr("Pop All Patches"),
430 0, 0, self, 'mercurial_queues_pop_all_force') 544 0,
431 self.hgQueuePopAllForceAct.setStatusTip(self.tr( 545 0,
432 'Pop all patches off the stack forgetting local changes' 546 self,
433 )) 547 "mercurial_queues_pop_all_force",
434 self.hgQueuePopAllForceAct.setWhatsThis(self.tr( 548 )
435 """<b>Pop All Patches</b>""" 549 self.hgQueuePopAllForceAct.setStatusTip(
436 """<p>This pops all patches off the stack of applied patches""" 550 self.tr("Pop all patches off the stack forgetting local changes")
437 """ forgetting local changes.</p>""" 551 )
438 )) 552 self.hgQueuePopAllForceAct.setWhatsThis(
439 self.hgQueuePopAllForceAct.triggered.connect( 553 self.tr(
440 self.__hgQueuePopAllPatchesForced) 554 """<b>Pop All Patches</b>"""
555 """<p>This pops all patches off the stack of applied patches"""
556 """ forgetting local changes.</p>"""
557 )
558 )
559 self.hgQueuePopAllForceAct.triggered.connect(self.__hgQueuePopAllPatchesForced)
441 self.actions.append(self.hgQueuePopAllForceAct) 560 self.actions.append(self.hgQueuePopAllForceAct)
442 561
443 self.hgQueuePopUntilForceAct = EricAction( 562 self.hgQueuePopUntilForceAct = EricAction(
444 self.tr('Pop Patches'), 563 self.tr("Pop Patches"),
445 self.tr('Pop Patches'), 564 self.tr("Pop Patches"),
446 0, 0, self, 'mercurial_queues_pop_until_force') 565 0,
447 self.hgQueuePopUntilForceAct.setStatusTip(self.tr( 566 0,
448 'Pop patches off the stack forgetting local changes' 567 self,
449 )) 568 "mercurial_queues_pop_until_force",
450 self.hgQueuePopUntilForceAct.setWhatsThis(self.tr( 569 )
451 """<b>Pop Patches</b>""" 570 self.hgQueuePopUntilForceAct.setStatusTip(
452 """<p>This pops patches off the stack of applied patches until""" 571 self.tr("Pop patches off the stack forgetting local changes")
453 """ a named patch is at the top of the stack forgetting local""" 572 )
454 """ changes.</p>""" 573 self.hgQueuePopUntilForceAct.setWhatsThis(
455 )) 574 self.tr(
456 self.hgQueuePopUntilForceAct.triggered.connect( 575 """<b>Pop Patches</b>"""
457 self.__hgQueuePopPatchesForced) 576 """<p>This pops patches off the stack of applied patches until"""
577 """ a named patch is at the top of the stack forgetting local"""
578 """ changes.</p>"""
579 )
580 )
581 self.hgQueuePopUntilForceAct.triggered.connect(self.__hgQueuePopPatchesForced)
458 self.actions.append(self.hgQueuePopUntilForceAct) 582 self.actions.append(self.hgQueuePopUntilForceAct)
459 583
460 self.hgQueueGotoForceAct = EricAction( 584 self.hgQueueGotoForceAct = EricAction(
461 self.tr('Go to Patch'), 585 self.tr("Go to Patch"),
462 self.tr('Go to Patch'), 586 self.tr("Go to Patch"),
463 0, 0, self, 'mercurial_queues_goto_force') 587 0,
464 self.hgQueueGotoForceAct.setStatusTip(self.tr( 588 0,
465 'Push or pop patches until named patch is at top of stack' 589 self,
466 ' overwriting any local changes' 590 "mercurial_queues_goto_force",
467 )) 591 )
468 self.hgQueueGotoForceAct.setWhatsThis(self.tr( 592 self.hgQueueGotoForceAct.setStatusTip(
469 """<b>Go to Patch</b>""" 593 self.tr(
470 """<p>This pushes or pops patches until a named patch is at the""" 594 "Push or pop patches until named patch is at top of stack"
471 """ top of the stack overwriting any local changes.</p>""" 595 " overwriting any local changes"
472 )) 596 )
473 self.hgQueueGotoForceAct.triggered.connect( 597 )
474 self.__hgQueueGotoPatchForced) 598 self.hgQueueGotoForceAct.setWhatsThis(
599 self.tr(
600 """<b>Go to Patch</b>"""
601 """<p>This pushes or pops patches until a named patch is at the"""
602 """ top of the stack overwriting any local changes.</p>"""
603 )
604 )
605 self.hgQueueGotoForceAct.triggered.connect(self.__hgQueueGotoPatchForced)
475 self.actions.append(self.hgQueueGotoForceAct) 606 self.actions.append(self.hgQueueGotoForceAct)
476 607
477 def __initGuardsActions(self): 608 def __initGuardsActions(self):
478 """ 609 """
479 Private method to generate the guards action objects. 610 Private method to generate the guards action objects.
480 """ 611 """
481 self.hgQueueDefineGuardsAct = EricAction( 612 self.hgQueueDefineGuardsAct = EricAction(
482 self.tr('Define Guards'), 613 self.tr("Define Guards"),
483 self.tr('Define Guards...'), 614 self.tr("Define Guards..."),
484 0, 0, self, 'mercurial_queues_guards_define') 615 0,
485 self.hgQueueDefineGuardsAct.setStatusTip(self.tr( 616 0,
486 'Define guards for the current or a named patch' 617 self,
487 )) 618 "mercurial_queues_guards_define",
488 self.hgQueueDefineGuardsAct.setWhatsThis(self.tr( 619 )
489 """<b>Define Guards</b>""" 620 self.hgQueueDefineGuardsAct.setStatusTip(
490 """<p>This opens a dialog to define guards for the current""" 621 self.tr("Define guards for the current or a named patch")
491 """ or a named patch.</p>""" 622 )
492 )) 623 self.hgQueueDefineGuardsAct.setWhatsThis(
493 self.hgQueueDefineGuardsAct.triggered.connect( 624 self.tr(
494 self.__hgQueueGuardsDefine) 625 """<b>Define Guards</b>"""
626 """<p>This opens a dialog to define guards for the current"""
627 """ or a named patch.</p>"""
628 )
629 )
630 self.hgQueueDefineGuardsAct.triggered.connect(self.__hgQueueGuardsDefine)
495 self.actions.append(self.hgQueueDefineGuardsAct) 631 self.actions.append(self.hgQueueDefineGuardsAct)
496 632
497 self.hgQueueDropAllGuardsAct = EricAction( 633 self.hgQueueDropAllGuardsAct = EricAction(
498 self.tr('Drop All Guards'), 634 self.tr("Drop All Guards"),
499 self.tr('Drop All Guards...'), 635 self.tr("Drop All Guards..."),
500 0, 0, self, 'mercurial_queues_guards_drop_all') 636 0,
501 self.hgQueueDropAllGuardsAct.setStatusTip(self.tr( 637 0,
502 'Drop all guards of the current or a named patch' 638 self,
503 )) 639 "mercurial_queues_guards_drop_all",
504 self.hgQueueDropAllGuardsAct.setWhatsThis(self.tr( 640 )
505 """<b>Drop All Guards</b>""" 641 self.hgQueueDropAllGuardsAct.setStatusTip(
506 """<p>This drops all guards of the current or a named patch.</p>""" 642 self.tr("Drop all guards of the current or a named patch")
507 )) 643 )
508 self.hgQueueDropAllGuardsAct.triggered.connect( 644 self.hgQueueDropAllGuardsAct.setWhatsThis(
509 self.__hgQueueGuardsDropAll) 645 self.tr(
646 """<b>Drop All Guards</b>"""
647 """<p>This drops all guards of the current or a named patch.</p>"""
648 )
649 )
650 self.hgQueueDropAllGuardsAct.triggered.connect(self.__hgQueueGuardsDropAll)
510 self.actions.append(self.hgQueueDropAllGuardsAct) 651 self.actions.append(self.hgQueueDropAllGuardsAct)
511 652
512 self.hgQueueListGuardsAct = EricAction( 653 self.hgQueueListGuardsAct = EricAction(
513 self.tr('List Guards'), 654 self.tr("List Guards"),
514 self.tr('List Guards...'), 655 self.tr("List Guards..."),
515 0, 0, self, 'mercurial_queues_guards_list') 656 0,
516 self.hgQueueListGuardsAct.setStatusTip(self.tr( 657 0,
517 'List guards of the current or a named patch' 658 self,
518 )) 659 "mercurial_queues_guards_list",
519 self.hgQueueListGuardsAct.setWhatsThis(self.tr( 660 )
520 """<b>List Guards</b>""" 661 self.hgQueueListGuardsAct.setStatusTip(
521 """<p>This lists the guards of the current or a named patch.</p>""" 662 self.tr("List guards of the current or a named patch")
522 )) 663 )
523 self.hgQueueListGuardsAct.triggered.connect( 664 self.hgQueueListGuardsAct.setWhatsThis(
524 self.__hgQueueGuardsList) 665 self.tr(
666 """<b>List Guards</b>"""
667 """<p>This lists the guards of the current or a named patch.</p>"""
668 )
669 )
670 self.hgQueueListGuardsAct.triggered.connect(self.__hgQueueGuardsList)
525 self.actions.append(self.hgQueueListGuardsAct) 671 self.actions.append(self.hgQueueListGuardsAct)
526 672
527 self.hgQueueListAllGuardsAct = EricAction( 673 self.hgQueueListAllGuardsAct = EricAction(
528 self.tr('List All Guards'), 674 self.tr("List All Guards"),
529 self.tr('List All Guards...'), 675 self.tr("List All Guards..."),
530 0, 0, self, 'mercurial_queues_guards_list_all') 676 0,
531 self.hgQueueListAllGuardsAct.setStatusTip(self.tr( 677 0,
532 'List all guards of all patches' 678 self,
533 )) 679 "mercurial_queues_guards_list_all",
534 self.hgQueueListAllGuardsAct.setWhatsThis(self.tr( 680 )
535 """<b>List All Guards</b>""" 681 self.hgQueueListAllGuardsAct.setStatusTip(
536 """<p>This lists all guards of all patches.</p>""" 682 self.tr("List all guards of all patches")
537 )) 683 )
538 self.hgQueueListAllGuardsAct.triggered.connect( 684 self.hgQueueListAllGuardsAct.setWhatsThis(
539 self.__hgQueueGuardsListAll) 685 self.tr(
686 """<b>List All Guards</b>"""
687 """<p>This lists all guards of all patches.</p>"""
688 )
689 )
690 self.hgQueueListAllGuardsAct.triggered.connect(self.__hgQueueGuardsListAll)
540 self.actions.append(self.hgQueueListAllGuardsAct) 691 self.actions.append(self.hgQueueListAllGuardsAct)
541 692
542 self.hgQueueActivateGuardsAct = EricAction( 693 self.hgQueueActivateGuardsAct = EricAction(
543 self.tr('Set Active Guards'), 694 self.tr("Set Active Guards"),
544 self.tr('Set Active Guards...'), 695 self.tr("Set Active Guards..."),
545 0, 0, self, 'mercurial_queues_guards_set_active') 696 0,
546 self.hgQueueActivateGuardsAct.setStatusTip(self.tr( 697 0,
547 'Set the list of active guards' 698 self,
548 )) 699 "mercurial_queues_guards_set_active",
549 self.hgQueueActivateGuardsAct.setWhatsThis(self.tr( 700 )
550 """<b>Set Active Guards</b>""" 701 self.hgQueueActivateGuardsAct.setStatusTip(
551 """<p>This opens a dialog to set the active guards.</p>""" 702 self.tr("Set the list of active guards")
552 )) 703 )
553 self.hgQueueActivateGuardsAct.triggered.connect( 704 self.hgQueueActivateGuardsAct.setWhatsThis(
554 self.__hgQueueGuardsSetActive) 705 self.tr(
706 """<b>Set Active Guards</b>"""
707 """<p>This opens a dialog to set the active guards.</p>"""
708 )
709 )
710 self.hgQueueActivateGuardsAct.triggered.connect(self.__hgQueueGuardsSetActive)
555 self.actions.append(self.hgQueueActivateGuardsAct) 711 self.actions.append(self.hgQueueActivateGuardsAct)
556 712
557 self.hgQueueDeactivateGuardsAct = EricAction( 713 self.hgQueueDeactivateGuardsAct = EricAction(
558 self.tr('Deactivate Guards'), 714 self.tr("Deactivate Guards"),
559 self.tr('Deactivate Guards...'), 715 self.tr("Deactivate Guards..."),
560 0, 0, self, 'mercurial_queues_guards_deactivate') 716 0,
561 self.hgQueueDeactivateGuardsAct.setStatusTip(self.tr( 717 0,
562 'Deactivate all active guards' 718 self,
563 )) 719 "mercurial_queues_guards_deactivate",
564 self.hgQueueDeactivateGuardsAct.setWhatsThis(self.tr( 720 )
565 """<b>Deactivate Guards</b>""" 721 self.hgQueueDeactivateGuardsAct.setStatusTip(
566 """<p>This deactivates all active guards.</p>""" 722 self.tr("Deactivate all active guards")
567 )) 723 )
724 self.hgQueueDeactivateGuardsAct.setWhatsThis(
725 self.tr(
726 """<b>Deactivate Guards</b>"""
727 """<p>This deactivates all active guards.</p>"""
728 )
729 )
568 self.hgQueueDeactivateGuardsAct.triggered.connect( 730 self.hgQueueDeactivateGuardsAct.triggered.connect(
569 self.__hgQueueGuardsDeactivate) 731 self.__hgQueueGuardsDeactivate
732 )
570 self.actions.append(self.hgQueueDeactivateGuardsAct) 733 self.actions.append(self.hgQueueDeactivateGuardsAct)
571 734
572 self.hgQueueIdentifyActiveGuardsAct = EricAction( 735 self.hgQueueIdentifyActiveGuardsAct = EricAction(
573 self.tr('Identify Active Guards'), 736 self.tr("Identify Active Guards"),
574 self.tr('Identify Active Guards...'), 737 self.tr("Identify Active Guards..."),
575 0, 0, self, 'mercurial_queues_guards_identify_active') 738 0,
576 self.hgQueueIdentifyActiveGuardsAct.setStatusTip(self.tr( 739 0,
577 'Show a list of active guards' 740 self,
578 )) 741 "mercurial_queues_guards_identify_active",
579 self.hgQueueIdentifyActiveGuardsAct.setWhatsThis(self.tr( 742 )
580 """<b>Identify Active Guards</b>""" 743 self.hgQueueIdentifyActiveGuardsAct.setStatusTip(
581 """<p>This opens a dialog showing a list of active guards.</p>""" 744 self.tr("Show a list of active guards")
582 )) 745 )
746 self.hgQueueIdentifyActiveGuardsAct.setWhatsThis(
747 self.tr(
748 """<b>Identify Active Guards</b>"""
749 """<p>This opens a dialog showing a list of active guards.</p>"""
750 )
751 )
583 self.hgQueueIdentifyActiveGuardsAct.triggered.connect( 752 self.hgQueueIdentifyActiveGuardsAct.triggered.connect(
584 self.__hgQueueGuardsIdentifyActive) 753 self.__hgQueueGuardsIdentifyActive
754 )
585 self.actions.append(self.hgQueueIdentifyActiveGuardsAct) 755 self.actions.append(self.hgQueueIdentifyActiveGuardsAct)
586 756
587 def __initQueuesMgmtActions(self): 757 def __initQueuesMgmtActions(self):
588 """ 758 """
589 Private method to generate the queues management action objects. 759 Private method to generate the queues management action objects.
590 """ 760 """
591 self.hgQueueCreateQueueAct = EricAction( 761 self.hgQueueCreateQueueAct = EricAction(
592 self.tr('Create Queue'), 762 self.tr("Create Queue"),
593 self.tr('Create Queue'), 763 self.tr("Create Queue"),
594 0, 0, self, 'mercurial_queues_create_queue') 764 0,
595 self.hgQueueCreateQueueAct.setStatusTip(self.tr( 765 0,
596 'Create a new patch queue' 766 self,
597 )) 767 "mercurial_queues_create_queue",
598 self.hgQueueCreateQueueAct.setWhatsThis(self.tr( 768 )
599 """<b>Create Queue</b>""" 769 self.hgQueueCreateQueueAct.setStatusTip(self.tr("Create a new patch queue"))
600 """<p>This creates a new patch queue.</p>""" 770 self.hgQueueCreateQueueAct.setWhatsThis(
601 )) 771 self.tr(
602 self.hgQueueCreateQueueAct.triggered.connect( 772 """<b>Create Queue</b>""" """<p>This creates a new patch queue.</p>"""
603 self.__hgQueueCreateQueue) 773 )
774 )
775 self.hgQueueCreateQueueAct.triggered.connect(self.__hgQueueCreateQueue)
604 self.actions.append(self.hgQueueCreateQueueAct) 776 self.actions.append(self.hgQueueCreateQueueAct)
605 777
606 self.hgQueueRenameQueueAct = EricAction( 778 self.hgQueueRenameQueueAct = EricAction(
607 self.tr('Rename Queue'), 779 self.tr("Rename Queue"),
608 self.tr('Rename Queue'), 780 self.tr("Rename Queue"),
609 0, 0, self, 'mercurial_queues_rename_queue') 781 0,
610 self.hgQueueRenameQueueAct.setStatusTip(self.tr( 782 0,
611 'Rename the active patch queue' 783 self,
612 )) 784 "mercurial_queues_rename_queue",
613 self.hgQueueRenameQueueAct.setWhatsThis(self.tr( 785 )
614 """<b>Rename Queue</b>""" 786 self.hgQueueRenameQueueAct.setStatusTip(
615 """<p>This renames the active patch queue.</p>""" 787 self.tr("Rename the active patch queue")
616 )) 788 )
617 self.hgQueueRenameQueueAct.triggered.connect( 789 self.hgQueueRenameQueueAct.setWhatsThis(
618 self.__hgQueueRenameQueue) 790 self.tr(
791 """<b>Rename Queue</b>"""
792 """<p>This renames the active patch queue.</p>"""
793 )
794 )
795 self.hgQueueRenameQueueAct.triggered.connect(self.__hgQueueRenameQueue)
619 self.actions.append(self.hgQueueRenameQueueAct) 796 self.actions.append(self.hgQueueRenameQueueAct)
620 797
621 self.hgQueueDeleteQueueAct = EricAction( 798 self.hgQueueDeleteQueueAct = EricAction(
622 self.tr('Delete Queue'), 799 self.tr("Delete Queue"),
623 self.tr('Delete Queue'), 800 self.tr("Delete Queue"),
624 0, 0, self, 'mercurial_queues_delete_queue') 801 0,
625 self.hgQueueDeleteQueueAct.setStatusTip(self.tr( 802 0,
626 'Delete the reference to a patch queue' 803 self,
627 )) 804 "mercurial_queues_delete_queue",
628 self.hgQueueDeleteQueueAct.setWhatsThis(self.tr( 805 )
629 """<b>Delete Queue</b>""" 806 self.hgQueueDeleteQueueAct.setStatusTip(
630 """<p>This deletes the reference to a patch queue.</p>""" 807 self.tr("Delete the reference to a patch queue")
631 )) 808 )
632 self.hgQueueDeleteQueueAct.triggered.connect( 809 self.hgQueueDeleteQueueAct.setWhatsThis(
633 self.__hgQueueDeleteQueue) 810 self.tr(
811 """<b>Delete Queue</b>"""
812 """<p>This deletes the reference to a patch queue.</p>"""
813 )
814 )
815 self.hgQueueDeleteQueueAct.triggered.connect(self.__hgQueueDeleteQueue)
634 self.actions.append(self.hgQueueDeleteQueueAct) 816 self.actions.append(self.hgQueueDeleteQueueAct)
635 817
636 self.hgQueuePurgeQueueAct = EricAction( 818 self.hgQueuePurgeQueueAct = EricAction(
637 self.tr('Purge Queue'), 819 self.tr("Purge Queue"),
638 self.tr('Purge Queue'), 820 self.tr("Purge Queue"),
639 0, 0, self, 'mercurial_queues_purge_queue') 821 0,
640 self.hgQueuePurgeQueueAct.setStatusTip(self.tr( 822 0,
641 'Delete the reference to a patch queue and remove the patch' 823 self,
642 ' directory' 824 "mercurial_queues_purge_queue",
643 )) 825 )
644 self.hgQueuePurgeQueueAct.setWhatsThis(self.tr( 826 self.hgQueuePurgeQueueAct.setStatusTip(
645 """<b>Purge Queue</b>""" 827 self.tr(
646 """<p>This deletes the reference to a patch queue and removes""" 828 "Delete the reference to a patch queue and remove the patch"
647 """ the patch directory.</p>""" 829 " directory"
648 )) 830 )
649 self.hgQueuePurgeQueueAct.triggered.connect( 831 )
650 self.__hgQueuePurgeQueue) 832 self.hgQueuePurgeQueueAct.setWhatsThis(
833 self.tr(
834 """<b>Purge Queue</b>"""
835 """<p>This deletes the reference to a patch queue and removes"""
836 """ the patch directory.</p>"""
837 )
838 )
839 self.hgQueuePurgeQueueAct.triggered.connect(self.__hgQueuePurgeQueue)
651 self.actions.append(self.hgQueuePurgeQueueAct) 840 self.actions.append(self.hgQueuePurgeQueueAct)
652 841
653 self.hgQueueActivateQueueAct = EricAction( 842 self.hgQueueActivateQueueAct = EricAction(
654 self.tr('Activate Queue'), 843 self.tr("Activate Queue"),
655 self.tr('Activate Queue'), 844 self.tr("Activate Queue"),
656 0, 0, self, 'mercurial_queues_activate_queue') 845 0,
657 self.hgQueueActivateQueueAct.setStatusTip(self.tr( 846 0,
658 'Set the active queue' 847 self,
659 )) 848 "mercurial_queues_activate_queue",
660 self.hgQueueActivateQueueAct.setWhatsThis(self.tr( 849 )
661 """<b>Activate Queue</b>""" 850 self.hgQueueActivateQueueAct.setStatusTip(self.tr("Set the active queue"))
662 """<p>This sets the active queue.</p>""" 851 self.hgQueueActivateQueueAct.setWhatsThis(
663 )) 852 self.tr(
664 self.hgQueueActivateQueueAct.triggered.connect( 853 """<b>Activate Queue</b>""" """<p>This sets the active queue.</p>"""
665 self.__hgQueueActivateQueue) 854 )
855 )
856 self.hgQueueActivateQueueAct.triggered.connect(self.__hgQueueActivateQueue)
666 self.actions.append(self.hgQueueActivateQueueAct) 857 self.actions.append(self.hgQueueActivateQueueAct)
667 858
668 self.hgQueueListQueuesAct = EricAction( 859 self.hgQueueListQueuesAct = EricAction(
669 self.tr('List Queues'), 860 self.tr("List Queues"),
670 self.tr('List Queues...'), 861 self.tr("List Queues..."),
671 0, 0, self, 'mercurial_queues_list_queues') 862 0,
672 self.hgQueueListQueuesAct.setStatusTip(self.tr( 863 0,
673 'List the available queues' 864 self,
674 )) 865 "mercurial_queues_list_queues",
675 self.hgQueueListQueuesAct.setWhatsThis(self.tr( 866 )
676 """<b>List Queues</b>""" 867 self.hgQueueListQueuesAct.setStatusTip(self.tr("List the available queues"))
677 """<p>This opens a dialog showing all available queues.</p>""" 868 self.hgQueueListQueuesAct.setWhatsThis(
678 )) 869 self.tr(
679 self.hgQueueListQueuesAct.triggered.connect( 870 """<b>List Queues</b>"""
680 self.__hgQueueListQueues) 871 """<p>This opens a dialog showing all available queues.</p>"""
872 )
873 )
874 self.hgQueueListQueuesAct.triggered.connect(self.__hgQueueListQueues)
681 self.actions.append(self.hgQueueListQueuesAct) 875 self.actions.append(self.hgQueueListQueuesAct)
682 876
683 def initMenu(self, mainMenu): 877 def initMenu(self, mainMenu):
684 """ 878 """
685 Public method to generate the extension menu. 879 Public method to generate the extension menu.
686 880
687 @param mainMenu reference to the main menu (QMenu) 881 @param mainMenu reference to the main menu (QMenu)
688 @return populated menu (QMenu) 882 @return populated menu (QMenu)
689 """ 883 """
690 menu = QMenu(self.menuTitle(), mainMenu) 884 menu = QMenu(self.menuTitle(), mainMenu)
691 menu.setTearOffEnabled(True) 885 menu.setTearOffEnabled(True)
692 886
693 pushPopMenu = QMenu(self.tr("Push/Pop"), menu) 887 pushPopMenu = QMenu(self.tr("Push/Pop"), menu)
694 pushPopMenu.setTearOffEnabled(True) 888 pushPopMenu.setTearOffEnabled(True)
695 pushPopMenu.addAction(self.hgQueuePushAct) 889 pushPopMenu.addAction(self.hgQueuePushAct)
696 pushPopMenu.addAction(self.hgQueuePushUntilAct) 890 pushPopMenu.addAction(self.hgQueuePushUntilAct)
697 pushPopMenu.addAction(self.hgQueuePushAllAct) 891 pushPopMenu.addAction(self.hgQueuePushAllAct)
699 pushPopMenu.addAction(self.hgQueuePopAct) 893 pushPopMenu.addAction(self.hgQueuePopAct)
700 pushPopMenu.addAction(self.hgQueuePopUntilAct) 894 pushPopMenu.addAction(self.hgQueuePopUntilAct)
701 pushPopMenu.addAction(self.hgQueuePopAllAct) 895 pushPopMenu.addAction(self.hgQueuePopAllAct)
702 pushPopMenu.addSeparator() 896 pushPopMenu.addSeparator()
703 pushPopMenu.addAction(self.hgQueueGotoAct) 897 pushPopMenu.addAction(self.hgQueueGotoAct)
704 898
705 pushPopForceMenu = QMenu(self.tr("Push/Pop (force)"), menu) 899 pushPopForceMenu = QMenu(self.tr("Push/Pop (force)"), menu)
706 pushPopForceMenu.setTearOffEnabled(True) 900 pushPopForceMenu.setTearOffEnabled(True)
707 pushPopForceMenu.addAction(self.hgQueuePushForceAct) 901 pushPopForceMenu.addAction(self.hgQueuePushForceAct)
708 pushPopForceMenu.addAction(self.hgQueuePushUntilForceAct) 902 pushPopForceMenu.addAction(self.hgQueuePushUntilForceAct)
709 pushPopForceMenu.addAction(self.hgQueuePushAllForceAct) 903 pushPopForceMenu.addAction(self.hgQueuePushAllForceAct)
711 pushPopForceMenu.addAction(self.hgQueuePopForceAct) 905 pushPopForceMenu.addAction(self.hgQueuePopForceAct)
712 pushPopForceMenu.addAction(self.hgQueuePopUntilForceAct) 906 pushPopForceMenu.addAction(self.hgQueuePopUntilForceAct)
713 pushPopForceMenu.addAction(self.hgQueuePopAllForceAct) 907 pushPopForceMenu.addAction(self.hgQueuePopAllForceAct)
714 pushPopForceMenu.addSeparator() 908 pushPopForceMenu.addSeparator()
715 pushPopForceMenu.addAction(self.hgQueueGotoForceAct) 909 pushPopForceMenu.addAction(self.hgQueueGotoForceAct)
716 910
717 guardsMenu = QMenu(self.tr("Guards"), menu) 911 guardsMenu = QMenu(self.tr("Guards"), menu)
718 guardsMenu.setTearOffEnabled(True) 912 guardsMenu.setTearOffEnabled(True)
719 guardsMenu.addAction(self.hgQueueDefineGuardsAct) 913 guardsMenu.addAction(self.hgQueueDefineGuardsAct)
720 guardsMenu.addAction(self.hgQueueDropAllGuardsAct) 914 guardsMenu.addAction(self.hgQueueDropAllGuardsAct)
721 guardsMenu.addSeparator() 915 guardsMenu.addSeparator()
724 guardsMenu.addSeparator() 918 guardsMenu.addSeparator()
725 guardsMenu.addAction(self.hgQueueActivateGuardsAct) 919 guardsMenu.addAction(self.hgQueueActivateGuardsAct)
726 guardsMenu.addAction(self.hgQueueDeactivateGuardsAct) 920 guardsMenu.addAction(self.hgQueueDeactivateGuardsAct)
727 guardsMenu.addSeparator() 921 guardsMenu.addSeparator()
728 guardsMenu.addAction(self.hgQueueIdentifyActiveGuardsAct) 922 guardsMenu.addAction(self.hgQueueIdentifyActiveGuardsAct)
729 923
730 queuesMenu = QMenu(self.tr("Queue Management"), menu) 924 queuesMenu = QMenu(self.tr("Queue Management"), menu)
731 queuesMenu.setTearOffEnabled(True) 925 queuesMenu.setTearOffEnabled(True)
732 queuesMenu.addAction(self.hgQueueCreateQueueAct) 926 queuesMenu.addAction(self.hgQueueCreateQueueAct)
733 queuesMenu.addAction(self.hgQueueRenameQueueAct) 927 queuesMenu.addAction(self.hgQueueRenameQueueAct)
734 queuesMenu.addAction(self.hgQueueDeleteQueueAct) 928 queuesMenu.addAction(self.hgQueueDeleteQueueAct)
735 queuesMenu.addAction(self.hgQueuePurgeQueueAct) 929 queuesMenu.addAction(self.hgQueuePurgeQueueAct)
736 queuesMenu.addSeparator() 930 queuesMenu.addSeparator()
737 queuesMenu.addAction(self.hgQueueActivateQueueAct) 931 queuesMenu.addAction(self.hgQueueActivateQueueAct)
738 queuesMenu.addSeparator() 932 queuesMenu.addSeparator()
739 queuesMenu.addAction(self.hgQueueListQueuesAct) 933 queuesMenu.addAction(self.hgQueueListQueuesAct)
740 934
741 menu.addAction(self.hgQueueInitAct) 935 menu.addAction(self.hgQueueInitAct)
742 menu.addAction(self.hgQueueCommitAct) 936 menu.addAction(self.hgQueueCommitAct)
743 menu.addSeparator() 937 menu.addSeparator()
744 menu.addAction(self.hgQueueNewAct) 938 menu.addAction(self.hgQueueNewAct)
745 menu.addAction(self.hgQueueRefreshAct) 939 menu.addAction(self.hgQueueRefreshAct)
763 menu.addAction(self.hgQueueFoldAct) 957 menu.addAction(self.hgQueueFoldAct)
764 menu.addSeparator() 958 menu.addSeparator()
765 menu.addMenu(guardsMenu) 959 menu.addMenu(guardsMenu)
766 menu.addSeparator() 960 menu.addSeparator()
767 menu.addMenu(queuesMenu) 961 menu.addMenu(queuesMenu)
768 962
769 return menu 963 return menu
770 964
771 def menuTitle(self): 965 def menuTitle(self):
772 """ 966 """
773 Public method to get the menu title. 967 Public method to get the menu title.
774 968
775 @return title of the menu (string) 969 @return title of the menu (string)
776 """ 970 """
777 return self.tr("Queues") 971 return self.tr("Queues")
778 972
779 def __hgQueueNewPatch(self): 973 def __hgQueueNewPatch(self):
780 """ 974 """
781 Private slot used to create a new named patch. 975 Private slot used to create a new named patch.
782 """ 976 """
783 self.vcs.getExtensionObject("mq").hgQueueNewPatch() 977 self.vcs.getExtensionObject("mq").hgQueueNewPatch()
784 978
785 def __hgQueueRefreshPatch(self): 979 def __hgQueueRefreshPatch(self):
786 """ 980 """
787 Private slot used to refresh the current patch. 981 Private slot used to refresh the current patch.
788 """ 982 """
789 self.vcs.getExtensionObject("mq").hgQueueRefreshPatch() 983 self.vcs.getExtensionObject("mq").hgQueueRefreshPatch()
790 984
791 def __hgQueueRefreshPatchMessage(self): 985 def __hgQueueRefreshPatchMessage(self):
792 """ 986 """
793 Private slot used to refresh the current patch and its commit message. 987 Private slot used to refresh the current patch and its commit message.
794 """ 988 """
795 self.vcs.getExtensionObject("mq").hgQueueRefreshPatch(editMessage=True) 989 self.vcs.getExtensionObject("mq").hgQueueRefreshPatch(editMessage=True)
796 990
797 def __hgQueueShowPatch(self): 991 def __hgQueueShowPatch(self):
798 """ 992 """
799 Private slot used to show the contents of the current patch. 993 Private slot used to show the contents of the current patch.
800 """ 994 """
801 self.vcs.getExtensionObject("mq").hgQueueShowPatch( 995 self.vcs.getExtensionObject("mq").hgQueueShowPatch(
802 self.project.getProjectPath()) 996 self.project.getProjectPath()
803 997 )
998
804 def __hgQueueShowHeader(self): 999 def __hgQueueShowHeader(self):
805 """ 1000 """
806 Private slot used to show the commit message of the current patch. 1001 Private slot used to show the commit message of the current patch.
807 """ 1002 """
808 self.vcs.getExtensionObject("mq").hgQueueShowHeader() 1003 self.vcs.getExtensionObject("mq").hgQueueShowHeader()
809 1004
810 def __hgQueuePushPopPatches(self, operation, doAll=False, 1005 def __hgQueuePushPopPatches(self, operation, doAll=False, named=False, force=False):
811 named=False, force=False):
812 """ 1006 """
813 Private method to push patches onto the stack or pop patches off the 1007 Private method to push patches onto the stack or pop patches off the
814 stack. 1008 stack.
815 1009
816 @param operation operation type to be performed (Queues.POP, 1010 @param operation operation type to be performed (Queues.POP,
817 Queues.PUSH, Queues.GOTO) 1011 Queues.PUSH, Queues.GOTO)
818 @param doAll flag indicating to push/pop all (boolean) 1012 @param doAll flag indicating to push/pop all (boolean)
819 @param named flag indicating to push/pop until a named patch 1013 @param named flag indicating to push/pop until a named patch
820 is at the top of the stack (boolean) 1014 is at the top of the stack (boolean)
821 @param force flag indicating a forceful pop (boolean) 1015 @param force flag indicating a forceful pop (boolean)
822 """ 1016 """
823 shouldReopen = self.vcs.getExtensionObject("mq").hgQueuePushPopPatches( 1017 shouldReopen = self.vcs.getExtensionObject("mq").hgQueuePushPopPatches(
824 operation=operation, doAll=doAll, named=named, force=force) 1018 operation=operation, doAll=doAll, named=named, force=force
1019 )
825 if shouldReopen: 1020 if shouldReopen:
826 res = EricMessageBox.yesNo( 1021 res = EricMessageBox.yesNo(
827 None, 1022 None,
828 self.tr("Changing Applied Patches"), 1023 self.tr("Changing Applied Patches"),
829 self.tr("""The project should be reread. Do this now?"""), 1024 self.tr("""The project should be reread. Do this now?"""),
830 yesDefault=True) 1025 yesDefault=True,
1026 )
831 if res: 1027 if res:
832 self.project.reopenProject() 1028 self.project.reopenProject()
833 1029
834 def __hgQueuePushPatch(self): 1030 def __hgQueuePushPatch(self):
835 """ 1031 """
836 Private slot used to push the next patch onto the stack. 1032 Private slot used to push the next patch onto the stack.
837 """ 1033 """
838 self.__hgQueuePushPopPatches( 1034 self.__hgQueuePushPopPatches(operation=Queues.PUSH, doAll=False, named=False)
839 operation=Queues.PUSH, doAll=False, named=False) 1035
840
841 def __hgQueuePushPatchForced(self): 1036 def __hgQueuePushPatchForced(self):
842 """ 1037 """
843 Private slot used to push the next patch onto the stack on top 1038 Private slot used to push the next patch onto the stack on top
844 of local changes. 1039 of local changes.
845 """ 1040 """
846 self.__hgQueuePushPopPatches( 1041 self.__hgQueuePushPopPatches(
847 operation=Queues.PUSH, doAll=False, named=False, force=True) 1042 operation=Queues.PUSH, doAll=False, named=False, force=True
848 1043 )
1044
849 def __hgQueuePushAllPatches(self): 1045 def __hgQueuePushAllPatches(self):
850 """ 1046 """
851 Private slot used to push all patches onto the stack. 1047 Private slot used to push all patches onto the stack.
852 """ 1048 """
853 self.__hgQueuePushPopPatches( 1049 self.__hgQueuePushPopPatches(operation=Queues.PUSH, doAll=True, named=False)
854 operation=Queues.PUSH, doAll=True, named=False) 1050
855
856 def __hgQueuePushAllPatchesForced(self): 1051 def __hgQueuePushAllPatchesForced(self):
857 """ 1052 """
858 Private slot used to push all patches onto the stack on top 1053 Private slot used to push all patches onto the stack on top
859 of local changes. 1054 of local changes.
860 """ 1055 """
861 self.__hgQueuePushPopPatches( 1056 self.__hgQueuePushPopPatches(
862 operation=Queues.PUSH, doAll=True, named=False, force=True) 1057 operation=Queues.PUSH, doAll=True, named=False, force=True
863 1058 )
1059
864 def __hgQueuePushPatches(self): 1060 def __hgQueuePushPatches(self):
865 """ 1061 """
866 Private slot used to push patches onto the stack until a named 1062 Private slot used to push patches onto the stack until a named
867 one is at the top. 1063 one is at the top.
868 """ 1064 """
869 self.__hgQueuePushPopPatches( 1065 self.__hgQueuePushPopPatches(operation=Queues.PUSH, doAll=False, named=True)
870 operation=Queues.PUSH, doAll=False, named=True) 1066
871
872 def __hgQueuePushPatchesForced(self): 1067 def __hgQueuePushPatchesForced(self):
873 """ 1068 """
874 Private slot used to push patches onto the stack until a named 1069 Private slot used to push patches onto the stack until a named
875 one is at the top on top of local changes. 1070 one is at the top on top of local changes.
876 """ 1071 """
877 self.__hgQueuePushPopPatches( 1072 self.__hgQueuePushPopPatches(
878 operation=Queues.PUSH, doAll=False, named=True, force=True) 1073 operation=Queues.PUSH, doAll=False, named=True, force=True
879 1074 )
1075
880 def __hgQueuePopPatch(self): 1076 def __hgQueuePopPatch(self):
881 """ 1077 """
882 Private slot used to pop the current patch off the stack. 1078 Private slot used to pop the current patch off the stack.
883 """ 1079 """
884 self.__hgQueuePushPopPatches( 1080 self.__hgQueuePushPopPatches(operation=Queues.POP, doAll=False, named=False)
885 operation=Queues.POP, doAll=False, named=False) 1081
886
887 def __hgQueuePopPatchForced(self): 1082 def __hgQueuePopPatchForced(self):
888 """ 1083 """
889 Private slot used to pop the current patch off the stack forgetting 1084 Private slot used to pop the current patch off the stack forgetting
890 any local changes to patched files. 1085 any local changes to patched files.
891 """ 1086 """
892 self.__hgQueuePushPopPatches( 1087 self.__hgQueuePushPopPatches(
893 operation=Queues.POP, doAll=False, named=False, force=True) 1088 operation=Queues.POP, doAll=False, named=False, force=True
894 1089 )
1090
895 def __hgQueuePopAllPatches(self): 1091 def __hgQueuePopAllPatches(self):
896 """ 1092 """
897 Private slot used to pop all patches off the stack. 1093 Private slot used to pop all patches off the stack.
898 """ 1094 """
899 self.__hgQueuePushPopPatches( 1095 self.__hgQueuePushPopPatches(operation=Queues.POP, doAll=True, named=False)
900 operation=Queues.POP, doAll=True, named=False) 1096
901
902 def __hgQueuePopAllPatchesForced(self): 1097 def __hgQueuePopAllPatchesForced(self):
903 """ 1098 """
904 Private slot used to pop all patches off the stack forgetting 1099 Private slot used to pop all patches off the stack forgetting
905 any local changes to patched files. 1100 any local changes to patched files.
906 """ 1101 """
907 self.__hgQueuePushPopPatches( 1102 self.__hgQueuePushPopPatches(
908 operation=Queues.POP, doAll=True, named=False, force=True) 1103 operation=Queues.POP, doAll=True, named=False, force=True
909 1104 )
1105
910 def __hgQueuePopPatches(self): 1106 def __hgQueuePopPatches(self):
911 """ 1107 """
912 Private slot used to pop patches off the stack until a named 1108 Private slot used to pop patches off the stack until a named
913 one is at the top. 1109 one is at the top.
914 """ 1110 """
915 self.__hgQueuePushPopPatches( 1111 self.__hgQueuePushPopPatches(operation=Queues.POP, doAll=False, named=True)
916 operation=Queues.POP, doAll=False, named=True) 1112
917
918 def __hgQueuePopPatchesForced(self): 1113 def __hgQueuePopPatchesForced(self):
919 """ 1114 """
920 Private slot used to pop patches off the stack until a named 1115 Private slot used to pop patches off the stack until a named
921 one is at the top forgetting any local changes to patched files. 1116 one is at the top forgetting any local changes to patched files.
922 """ 1117 """
923 self.__hgQueuePushPopPatches( 1118 self.__hgQueuePushPopPatches(
924 operation=Queues.POP, doAll=False, named=True, force=True) 1119 operation=Queues.POP, doAll=False, named=True, force=True
925 1120 )
1121
926 def __hgQueueGotoPatch(self): 1122 def __hgQueueGotoPatch(self):
927 """ 1123 """
928 Private slot used to push or pop patches until the a named one 1124 Private slot used to push or pop patches until the a named one
929 is at the top of the stack. 1125 is at the top of the stack.
930 """ 1126 """
931 self.__hgQueuePushPopPatches( 1127 self.__hgQueuePushPopPatches(operation=Queues.GOTO, doAll=False, named=True)
932 operation=Queues.GOTO, doAll=False, named=True) 1128
933
934 def __hgQueueGotoPatchForced(self): 1129 def __hgQueueGotoPatchForced(self):
935 """ 1130 """
936 Private slot used to push or pop patches until the a named one 1131 Private slot used to push or pop patches until the a named one
937 is at the top of the stack overwriting local changes. 1132 is at the top of the stack overwriting local changes.
938 """ 1133 """
939 self.__hgQueuePushPopPatches( 1134 self.__hgQueuePushPopPatches(
940 operation=Queues.GOTO, doAll=False, named=True, force=True) 1135 operation=Queues.GOTO, doAll=False, named=True, force=True
941 1136 )
1137
942 def __hgQueueListPatches(self): 1138 def __hgQueueListPatches(self):
943 """ 1139 """
944 Private slot used to show a list of applied and unapplied patches. 1140 Private slot used to show a list of applied and unapplied patches.
945 """ 1141 """
946 self.vcs.getExtensionObject("mq").hgQueueListPatches() 1142 self.vcs.getExtensionObject("mq").hgQueueListPatches()
947 1143
948 def __hgQueueFinishAppliedPatches(self): 1144 def __hgQueueFinishAppliedPatches(self):
949 """ 1145 """
950 Private slot used to finish all applied patches. 1146 Private slot used to finish all applied patches.
951 """ 1147 """
952 self.vcs.getExtensionObject("mq").hgQueueFinishAppliedPatches() 1148 self.vcs.getExtensionObject("mq").hgQueueFinishAppliedPatches()
953 1149
954 def __hgQueueRenamePatch(self): 1150 def __hgQueueRenamePatch(self):
955 """ 1151 """
956 Private slot used to rename a patch. 1152 Private slot used to rename a patch.
957 """ 1153 """
958 self.vcs.getExtensionObject("mq").hgQueueRenamePatch() 1154 self.vcs.getExtensionObject("mq").hgQueueRenamePatch()
959 1155
960 def __hgQueueDeletePatch(self): 1156 def __hgQueueDeletePatch(self):
961 """ 1157 """
962 Private slot used to delete a patch. 1158 Private slot used to delete a patch.
963 """ 1159 """
964 self.vcs.getExtensionObject("mq").hgQueueDeletePatch() 1160 self.vcs.getExtensionObject("mq").hgQueueDeletePatch()
965 1161
966 def __hgQueueFoldUnappliedPatches(self): 1162 def __hgQueueFoldUnappliedPatches(self):
967 """ 1163 """
968 Private slot used to fold patches into the current patch. 1164 Private slot used to fold patches into the current patch.
969 """ 1165 """
970 self.vcs.getExtensionObject("mq").hgQueueFoldUnappliedPatches() 1166 self.vcs.getExtensionObject("mq").hgQueueFoldUnappliedPatches()
971 1167
972 def __hgQueueGuardsDefine(self): 1168 def __hgQueueGuardsDefine(self):
973 """ 1169 """
974 Private slot used to define guards for the current or a named patch. 1170 Private slot used to define guards for the current or a named patch.
975 """ 1171 """
976 self.vcs.getExtensionObject("mq").hgQueueGuardsDefine() 1172 self.vcs.getExtensionObject("mq").hgQueueGuardsDefine()
977 1173
978 def __hgQueueGuardsDropAll(self): 1174 def __hgQueueGuardsDropAll(self):
979 """ 1175 """
980 Private slot used to drop all guards of the current or a named patch. 1176 Private slot used to drop all guards of the current or a named patch.
981 """ 1177 """
982 self.vcs.getExtensionObject("mq").hgQueueGuardsDropAll() 1178 self.vcs.getExtensionObject("mq").hgQueueGuardsDropAll()
983 1179
984 def __hgQueueGuardsList(self): 1180 def __hgQueueGuardsList(self):
985 """ 1181 """
986 Private slot used to list the guards for the current or a named patch. 1182 Private slot used to list the guards for the current or a named patch.
987 """ 1183 """
988 self.vcs.getExtensionObject("mq").hgQueueGuardsList() 1184 self.vcs.getExtensionObject("mq").hgQueueGuardsList()
989 1185
990 def __hgQueueGuardsListAll(self): 1186 def __hgQueueGuardsListAll(self):
991 """ 1187 """
992 Private slot used to list all guards of all patches. 1188 Private slot used to list all guards of all patches.
993 """ 1189 """
994 self.vcs.getExtensionObject("mq").hgQueueGuardsListAll() 1190 self.vcs.getExtensionObject("mq").hgQueueGuardsListAll()
995 1191
996 def __hgQueueGuardsSetActive(self): 1192 def __hgQueueGuardsSetActive(self):
997 """ 1193 """
998 Private slot used to set the active guards. 1194 Private slot used to set the active guards.
999 """ 1195 """
1000 self.vcs.getExtensionObject("mq").hgQueueGuardsSetActive() 1196 self.vcs.getExtensionObject("mq").hgQueueGuardsSetActive()
1001 1197
1002 def __hgQueueGuardsDeactivate(self): 1198 def __hgQueueGuardsDeactivate(self):
1003 """ 1199 """
1004 Private slot used to deactivate all active guards. 1200 Private slot used to deactivate all active guards.
1005 """ 1201 """
1006 self.vcs.getExtensionObject("mq").hgQueueGuardsDeactivate() 1202 self.vcs.getExtensionObject("mq").hgQueueGuardsDeactivate()
1007 1203
1008 def __hgQueueGuardsIdentifyActive(self): 1204 def __hgQueueGuardsIdentifyActive(self):
1009 """ 1205 """
1010 Private slot used to list all active guards. 1206 Private slot used to list all active guards.
1011 """ 1207 """
1012 self.vcs.getExtensionObject("mq").hgQueueGuardsIdentifyActive() 1208 self.vcs.getExtensionObject("mq").hgQueueGuardsIdentifyActive()
1013 1209
1014 def __hgQueueCreateQueue(self): 1210 def __hgQueueCreateQueue(self):
1015 """ 1211 """
1016 Private slot used to create a new queue. 1212 Private slot used to create a new queue.
1017 """ 1213 """
1018 self.vcs.getExtensionObject("mq").hgQueueCreateRenameQueue(True) 1214 self.vcs.getExtensionObject("mq").hgQueueCreateRenameQueue(True)
1019 1215
1020 def __hgQueueRenameQueue(self): 1216 def __hgQueueRenameQueue(self):
1021 """ 1217 """
1022 Private slot used to rename the active queue. 1218 Private slot used to rename the active queue.
1023 """ 1219 """
1024 self.vcs.getExtensionObject("mq").hgQueueCreateRenameQueue(False) 1220 self.vcs.getExtensionObject("mq").hgQueueCreateRenameQueue(False)
1025 1221
1026 def __hgQueueDeleteQueue(self): 1222 def __hgQueueDeleteQueue(self):
1027 """ 1223 """
1028 Private slot used to delete the reference to a queue. 1224 Private slot used to delete the reference to a queue.
1029 """ 1225 """
1030 self.vcs.getExtensionObject("mq").hgQueueDeletePurgeActivateQueue( 1226 self.vcs.getExtensionObject("mq").hgQueueDeletePurgeActivateQueue(
1031 Queues.QUEUE_DELETE) 1227 Queues.QUEUE_DELETE
1032 1228 )
1229
1033 def __hgQueuePurgeQueue(self): 1230 def __hgQueuePurgeQueue(self):
1034 """ 1231 """
1035 Private slot used to delete the reference to a queue and remove 1232 Private slot used to delete the reference to a queue and remove
1036 the patch directory. 1233 the patch directory.
1037 """ 1234 """
1038 self.vcs.getExtensionObject("mq").hgQueueDeletePurgeActivateQueue( 1235 self.vcs.getExtensionObject("mq").hgQueueDeletePurgeActivateQueue(
1039 Queues.QUEUE_PURGE) 1236 Queues.QUEUE_PURGE
1040 1237 )
1238
1041 def __hgQueueActivateQueue(self): 1239 def __hgQueueActivateQueue(self):
1042 """ 1240 """
1043 Private slot used to set the active queue. 1241 Private slot used to set the active queue.
1044 """ 1242 """
1045 self.vcs.getExtensionObject("mq").hgQueueDeletePurgeActivateQueue( 1243 self.vcs.getExtensionObject("mq").hgQueueDeletePurgeActivateQueue(
1046 Queues.QUEUE_ACTIVATE) 1244 Queues.QUEUE_ACTIVATE
1047 1245 )
1246
1048 def __hgQueueListQueues(self): 1247 def __hgQueueListQueues(self):
1049 """ 1248 """
1050 Private slot used to list available queues. 1249 Private slot used to list available queues.
1051 """ 1250 """
1052 self.vcs.getExtensionObject("mq").hgQueueListQueues() 1251 self.vcs.getExtensionObject("mq").hgQueueListQueues()
1053 1252
1054 def __hgQueueInit(self): 1253 def __hgQueueInit(self):
1055 """ 1254 """
1056 Private slot to initialize a new queue repository. 1255 Private slot to initialize a new queue repository.
1057 """ 1256 """
1058 self.vcs.getExtensionObject("mq").hgQueueInit( 1257 self.vcs.getExtensionObject("mq").hgQueueInit(self.project.getProjectPath())
1059 self.project.getProjectPath()) 1258
1060
1061 def __hgQueueCommit(self): 1259 def __hgQueueCommit(self):
1062 """ 1260 """
1063 Private slot to commit changes in the queue repository. 1261 Private slot to commit changes in the queue repository.
1064 """ 1262 """
1065 self.vcs.vcsCommit(self.project.getProjectPath(), "", mq=True) 1263 self.vcs.vcsCommit(self.project.getProjectPath(), "", mq=True)
1066 1264
1067 def __hgQueueStatus(self): 1265 def __hgQueueStatus(self):
1068 """ 1266 """
1069 Private slot to show the status of the queue repository. 1267 Private slot to show the status of the queue repository.
1070 """ 1268 """
1071 self.vcs.getExtensionObject("mq").hgQueueStatus( 1269 self.vcs.getExtensionObject("mq").hgQueueStatus(self.project.getProjectPath())
1072 self.project.getProjectPath()) 1270
1073
1074 def __hgQueueSummary(self): 1271 def __hgQueueSummary(self):
1075 """ 1272 """
1076 Private slot to show a summary of the queue repository. 1273 Private slot to show a summary of the queue repository.
1077 """ 1274 """
1078 self.vcs.hgSummary(mq=True) 1275 self.vcs.hgSummary(mq=True)

eric ide

mercurial