Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py

changeset 3023
34ce20603bf7
parent 3020
542e97d4ecb3
child 3036
30c81c9e88b8
child 3058
0a02c433f52d
equal deleted inserted replaced
3022:57179e4cdadd 3023:34ce20603bf7
94 94
95 def initActions(self): 95 def initActions(self):
96 """ 96 """
97 Public method to generate the action objects. 97 Public method to generate the action objects.
98 """ 98 """
99 self.vcsNewAct = E5Action(self.trUtf8('New from repository'), 99 self.vcsNewAct = E5Action(
100 UI.PixmapCache.getIcon("vcsCheckout.png"), 100 self.trUtf8('New from repository'),
101 self.trUtf8('&New from repository...'), 0, 0, 101 UI.PixmapCache.getIcon("vcsCheckout.png"),
102 self, 'mercurial_new') 102 self.trUtf8('&New from repository...'), 0, 0,
103 self, 'mercurial_new')
103 self.vcsNewAct.setStatusTip(self.trUtf8( 104 self.vcsNewAct.setStatusTip(self.trUtf8(
104 'Create (clone) a new project from a Mercurial repository' 105 'Create (clone) a new project from a Mercurial repository'
105 )) 106 ))
106 self.vcsNewAct.setWhatsThis(self.trUtf8( 107 self.vcsNewAct.setWhatsThis(self.trUtf8(
107 """<b>New from repository</b>""" 108 """<b>New from repository</b>"""
109 """a Mercurial repository.</p>""" 110 """a Mercurial repository.</p>"""
110 )) 111 ))
111 self.vcsNewAct.triggered[()].connect(self._vcsCheckout) 112 self.vcsNewAct.triggered[()].connect(self._vcsCheckout)
112 self.actions.append(self.vcsNewAct) 113 self.actions.append(self.vcsNewAct)
113 114
114 self.hgIncomingAct = E5Action(self.trUtf8('Show incoming log'), 115 self.hgIncomingAct = E5Action(
115 UI.PixmapCache.getIcon("vcsUpdate.png"), 116 self.trUtf8('Show incoming log'),
116 self.trUtf8('Show incoming log'), 117 UI.PixmapCache.getIcon("vcsUpdate.png"),
117 0, 0, self, 'mercurial_incoming') 118 self.trUtf8('Show incoming log'),
119 0, 0, self, 'mercurial_incoming')
118 self.hgIncomingAct.setStatusTip(self.trUtf8( 120 self.hgIncomingAct.setStatusTip(self.trUtf8(
119 'Show the log of incoming changes' 121 'Show the log of incoming changes'
120 )) 122 ))
121 self.hgIncomingAct.setWhatsThis(self.trUtf8( 123 self.hgIncomingAct.setWhatsThis(self.trUtf8(
122 """<b>Show incoming log</b>""" 124 """<b>Show incoming log</b>"""
124 """ repository.</p>""" 126 """ repository.</p>"""
125 )) 127 ))
126 self.hgIncomingAct.triggered[()].connect(self.__hgIncoming) 128 self.hgIncomingAct.triggered[()].connect(self.__hgIncoming)
127 self.actions.append(self.hgIncomingAct) 129 self.actions.append(self.hgIncomingAct)
128 130
129 self.hgPullAct = E5Action(self.trUtf8('Pull changes'), 131 self.hgPullAct = E5Action(
130 UI.PixmapCache.getIcon("vcsUpdate.png"), 132 self.trUtf8('Pull changes'),
131 self.trUtf8('Pull changes'), 133 UI.PixmapCache.getIcon("vcsUpdate.png"),
132 0, 0, self, 'mercurial_pull') 134 self.trUtf8('Pull changes'),
135 0, 0, self, 'mercurial_pull')
133 self.hgPullAct.setStatusTip(self.trUtf8( 136 self.hgPullAct.setStatusTip(self.trUtf8(
134 'Pull changes from a remote repository' 137 'Pull changes from a remote repository'
135 )) 138 ))
136 self.hgPullAct.setWhatsThis(self.trUtf8( 139 self.hgPullAct.setWhatsThis(self.trUtf8(
137 """<b>Pull changes</b>""" 140 """<b>Pull changes</b>"""
139 """local repository.</p>""" 142 """local repository.</p>"""
140 )) 143 ))
141 self.hgPullAct.triggered[()].connect(self.__hgPull) 144 self.hgPullAct.triggered[()].connect(self.__hgPull)
142 self.actions.append(self.hgPullAct) 145 self.actions.append(self.hgPullAct)
143 146
144 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'), 147 self.vcsUpdateAct = E5Action(
145 UI.PixmapCache.getIcon("vcsUpdate.png"), 148 self.trUtf8('Update from repository'),
146 self.trUtf8('&Update from repository'), 0, 0, self, 149 UI.PixmapCache.getIcon("vcsUpdate.png"),
147 'mercurial_update') 150 self.trUtf8('&Update from repository'), 0, 0, self,
151 'mercurial_update')
148 self.vcsUpdateAct.setStatusTip(self.trUtf8( 152 self.vcsUpdateAct.setStatusTip(self.trUtf8(
149 'Update the local project from the Mercurial repository' 153 'Update the local project from the Mercurial repository'
150 )) 154 ))
151 self.vcsUpdateAct.setWhatsThis(self.trUtf8( 155 self.vcsUpdateAct.setWhatsThis(self.trUtf8(
152 """<b>Update from repository</b>""" 156 """<b>Update from repository</b>"""
170 """Mercurial repository.</p>""" 174 """Mercurial repository.</p>"""
171 )) 175 ))
172 self.vcsCommitAct.triggered[()].connect(self._vcsCommit) 176 self.vcsCommitAct.triggered[()].connect(self._vcsCommit)
173 self.actions.append(self.vcsCommitAct) 177 self.actions.append(self.vcsCommitAct)
174 178
175 self.hgOutgoingAct = E5Action(self.trUtf8('Show outgoing log'), 179 self.hgOutgoingAct = E5Action(
176 UI.PixmapCache.getIcon("vcsCommit.png"), 180 self.trUtf8('Show outgoing log'),
177 self.trUtf8('Show outgoing log'), 181 UI.PixmapCache.getIcon("vcsCommit.png"),
178 0, 0, self, 'mercurial_outgoing') 182 self.trUtf8('Show outgoing log'),
183 0, 0, self, 'mercurial_outgoing')
179 self.hgOutgoingAct.setStatusTip(self.trUtf8( 184 self.hgOutgoingAct.setStatusTip(self.trUtf8(
180 'Show the log of outgoing changes' 185 'Show the log of outgoing changes'
181 )) 186 ))
182 self.hgOutgoingAct.setWhatsThis(self.trUtf8( 187 self.hgOutgoingAct.setWhatsThis(self.trUtf8(
183 """<b>Show outgoing log</b>""" 188 """<b>Show outgoing log</b>"""
185 """ repository.</p>""" 190 """ repository.</p>"""
186 )) 191 ))
187 self.hgOutgoingAct.triggered[()].connect(self.__hgOutgoing) 192 self.hgOutgoingAct.triggered[()].connect(self.__hgOutgoing)
188 self.actions.append(self.hgOutgoingAct) 193 self.actions.append(self.hgOutgoingAct)
189 194
190 self.hgPushAct = E5Action(self.trUtf8('Push changes'), 195 self.hgPushAct = E5Action(
191 UI.PixmapCache.getIcon("vcsCommit.png"), 196 self.trUtf8('Push changes'),
192 self.trUtf8('Push changes'), 197 UI.PixmapCache.getIcon("vcsCommit.png"),
193 0, 0, self, 'mercurial_push') 198 self.trUtf8('Push changes'),
199 0, 0, self, 'mercurial_push')
194 self.hgPushAct.setStatusTip(self.trUtf8( 200 self.hgPushAct.setStatusTip(self.trUtf8(
195 'Push changes to a remote repository' 201 'Push changes to a remote repository'
196 )) 202 ))
197 self.hgPushAct.setWhatsThis(self.trUtf8( 203 self.hgPushAct.setWhatsThis(self.trUtf8(
198 """<b>Push changes</b>""" 204 """<b>Push changes</b>"""
200 """remote repository.</p>""" 206 """remote repository.</p>"""
201 )) 207 ))
202 self.hgPushAct.triggered[()].connect(self.__hgPush) 208 self.hgPushAct.triggered[()].connect(self.__hgPush)
203 self.actions.append(self.hgPushAct) 209 self.actions.append(self.hgPushAct)
204 210
205 self.hgPushForcedAct = E5Action(self.trUtf8('Push changes (force)'), 211 self.hgPushForcedAct = E5Action(
206 UI.PixmapCache.getIcon("vcsCommit.png"), 212 self.trUtf8('Push changes (force)'),
207 self.trUtf8('Push changes (force)'), 213 UI.PixmapCache.getIcon("vcsCommit.png"),
208 0, 0, self, 'mercurial_push_forced') 214 self.trUtf8('Push changes (force)'),
215 0, 0, self, 'mercurial_push_forced')
209 self.hgPushForcedAct.setStatusTip(self.trUtf8( 216 self.hgPushForcedAct.setStatusTip(self.trUtf8(
210 'Push changes to a remote repository with force option' 217 'Push changes to a remote repository with force option'
211 )) 218 ))
212 self.hgPushForcedAct.setWhatsThis(self.trUtf8( 219 self.hgPushForcedAct.setWhatsThis(self.trUtf8(
213 """<b>Push changes (force)</b>""" 220 """<b>Push changes (force)</b>"""
215 """remote repository using the 'force' option.</p>""" 222 """remote repository using the 'force' option.</p>"""
216 )) 223 ))
217 self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced) 224 self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced)
218 self.actions.append(self.hgPushForcedAct) 225 self.actions.append(self.hgPushForcedAct)
219 226
220 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), 227 self.vcsExportAct = E5Action(
221 UI.PixmapCache.getIcon("vcsExport.png"), 228 self.trUtf8('Export from repository'),
222 self.trUtf8('&Export from repository...'), 229 UI.PixmapCache.getIcon("vcsExport.png"),
223 0, 0, self, 'mercurial_export_repo') 230 self.trUtf8('&Export from repository...'),
231 0, 0, self, 'mercurial_export_repo')
224 self.vcsExportAct.setStatusTip(self.trUtf8( 232 self.vcsExportAct.setStatusTip(self.trUtf8(
225 'Export a project from the repository' 233 'Export a project from the repository'
226 )) 234 ))
227 self.vcsExportAct.setWhatsThis(self.trUtf8( 235 self.vcsExportAct.setWhatsThis(self.trUtf8(
228 """<b>Export from repository</b>""" 236 """<b>Export from repository</b>"""
229 """<p>This exports a project from the repository.</p>""" 237 """<p>This exports a project from the repository.</p>"""
230 )) 238 ))
231 self.vcsExportAct.triggered[()].connect(self._vcsExport) 239 self.vcsExportAct.triggered[()].connect(self._vcsExport)
232 self.actions.append(self.vcsExportAct) 240 self.actions.append(self.vcsExportAct)
233 241
234 self.vcsLogAct = E5Action(self.trUtf8('Show log'), 242 self.vcsLogAct = E5Action(
235 UI.PixmapCache.getIcon("vcsLog.png"), 243 self.trUtf8('Show log'),
236 self.trUtf8('Show &log'), 244 UI.PixmapCache.getIcon("vcsLog.png"),
237 0, 0, self, 'mercurial_log') 245 self.trUtf8('Show &log'),
246 0, 0, self, 'mercurial_log')
238 self.vcsLogAct.setStatusTip(self.trUtf8( 247 self.vcsLogAct.setStatusTip(self.trUtf8(
239 'Show the log of the local project' 248 'Show the log of the local project'
240 )) 249 ))
241 self.vcsLogAct.setWhatsThis(self.trUtf8( 250 self.vcsLogAct.setWhatsThis(self.trUtf8(
242 """<b>Show log</b>""" 251 """<b>Show log</b>"""
243 """<p>This shows the log of the local project.</p>""" 252 """<p>This shows the log of the local project.</p>"""
244 )) 253 ))
245 self.vcsLogAct.triggered[()].connect(self._vcsLog) 254 self.vcsLogAct.triggered[()].connect(self._vcsLog)
246 self.actions.append(self.vcsLogAct) 255 self.actions.append(self.vcsLogAct)
247 256
248 self.hgLogBrowserAct = E5Action(self.trUtf8('Show log browser'), 257 self.hgLogBrowserAct = E5Action(
249 UI.PixmapCache.getIcon("vcsLog.png"), 258 self.trUtf8('Show log browser'),
250 self.trUtf8('Show log browser'), 259 UI.PixmapCache.getIcon("vcsLog.png"),
251 0, 0, self, 'mercurial_log_browser') 260 self.trUtf8('Show log browser'),
261 0, 0, self, 'mercurial_log_browser')
252 self.hgLogBrowserAct.setStatusTip(self.trUtf8( 262 self.hgLogBrowserAct.setStatusTip(self.trUtf8(
253 'Show a dialog to browse the log of the local project' 263 'Show a dialog to browse the log of the local project'
254 )) 264 ))
255 self.hgLogBrowserAct.setWhatsThis(self.trUtf8( 265 self.hgLogBrowserAct.setWhatsThis(self.trUtf8(
256 """<b>Show log browser</b>""" 266 """<b>Show log browser</b>"""
259 """ More can be retrieved later on.</p>""" 269 """ More can be retrieved later on.</p>"""
260 )) 270 ))
261 self.hgLogBrowserAct.triggered[()].connect(self.__hgLogBrowser) 271 self.hgLogBrowserAct.triggered[()].connect(self.__hgLogBrowser)
262 self.actions.append(self.hgLogBrowserAct) 272 self.actions.append(self.hgLogBrowserAct)
263 273
264 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'), 274 self.vcsDiffAct = E5Action(
265 UI.PixmapCache.getIcon("vcsDiff.png"), 275 self.trUtf8('Show difference'),
266 self.trUtf8('Show &difference'), 276 UI.PixmapCache.getIcon("vcsDiff.png"),
267 0, 0, self, 'mercurial_diff') 277 self.trUtf8('Show &difference'),
278 0, 0, self, 'mercurial_diff')
268 self.vcsDiffAct.setStatusTip(self.trUtf8( 279 self.vcsDiffAct.setStatusTip(self.trUtf8(
269 'Show the difference of the local project to the repository' 280 'Show the difference of the local project to the repository'
270 )) 281 ))
271 self.vcsDiffAct.setWhatsThis(self.trUtf8( 282 self.vcsDiffAct.setWhatsThis(self.trUtf8(
272 """<b>Show difference</b>""" 283 """<b>Show difference</b>"""
274 """ repository.</p>""" 285 """ repository.</p>"""
275 )) 286 ))
276 self.vcsDiffAct.triggered[()].connect(self._vcsDiff) 287 self.vcsDiffAct.triggered[()].connect(self._vcsDiff)
277 self.actions.append(self.vcsDiffAct) 288 self.actions.append(self.vcsDiffAct)
278 289
279 self.hgExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'), 290 self.hgExtDiffAct = E5Action(
280 UI.PixmapCache.getIcon("vcsDiff.png"), 291 self.trUtf8('Show difference (extended)'),
281 self.trUtf8('Show difference (extended)'), 292 UI.PixmapCache.getIcon("vcsDiff.png"),
282 0, 0, self, 'mercurial_extendeddiff') 293 self.trUtf8('Show difference (extended)'),
294 0, 0, self, 'mercurial_extendeddiff')
283 self.hgExtDiffAct.setStatusTip(self.trUtf8( 295 self.hgExtDiffAct.setStatusTip(self.trUtf8(
284 'Show the difference of revisions of the project to the repository' 296 'Show the difference of revisions of the project to the repository'
285 )) 297 ))
286 self.hgExtDiffAct.setWhatsThis(self.trUtf8( 298 self.hgExtDiffAct.setWhatsThis(self.trUtf8(
287 """<b>Show difference (extended)</b>""" 299 """<b>Show difference (extended)</b>"""
289 """ project.</p>""" 301 """ project.</p>"""
290 )) 302 ))
291 self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff) 303 self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff)
292 self.actions.append(self.hgExtDiffAct) 304 self.actions.append(self.hgExtDiffAct)
293 305
294 self.vcsStatusAct = E5Action(self.trUtf8('Show status'), 306 self.vcsStatusAct = E5Action(
295 UI.PixmapCache.getIcon("vcsStatus.png"), 307 self.trUtf8('Show status'),
296 self.trUtf8('Show &status...'), 308 UI.PixmapCache.getIcon("vcsStatus.png"),
297 0, 0, self, 'mercurial_status') 309 self.trUtf8('Show &status...'),
310 0, 0, self, 'mercurial_status')
298 self.vcsStatusAct.setStatusTip(self.trUtf8( 311 self.vcsStatusAct.setStatusTip(self.trUtf8(
299 'Show the status of the local project' 312 'Show the status of the local project'
300 )) 313 ))
301 self.vcsStatusAct.setWhatsThis(self.trUtf8( 314 self.vcsStatusAct.setWhatsThis(self.trUtf8(
302 """<b>Show status</b>""" 315 """<b>Show status</b>"""
319 """ directory status.</p>""" 332 """ directory status.</p>"""
320 )) 333 ))
321 self.hgSummaryAct.triggered[()].connect(self.__hgSummary) 334 self.hgSummaryAct.triggered[()].connect(self.__hgSummary)
322 self.actions.append(self.hgSummaryAct) 335 self.actions.append(self.hgSummaryAct)
323 336
324 self.hgHeadsAct = E5Action(self.trUtf8('Show heads'), 337 self.hgHeadsAct = E5Action(
325 self.trUtf8('Show heads'), 338 self.trUtf8('Show heads'),
326 0, 0, self, 'mercurial_heads') 339 self.trUtf8('Show heads'),
340 0, 0, self, 'mercurial_heads')
327 self.hgHeadsAct.setStatusTip(self.trUtf8( 341 self.hgHeadsAct.setStatusTip(self.trUtf8(
328 'Show the heads of the repository' 342 'Show the heads of the repository'
329 )) 343 ))
330 self.hgHeadsAct.setWhatsThis(self.trUtf8( 344 self.hgHeadsAct.setWhatsThis(self.trUtf8(
331 """<b>Show heads</b>""" 345 """<b>Show heads</b>"""
332 """<p>This shows the heads of the repository.</p>""" 346 """<p>This shows the heads of the repository.</p>"""
333 )) 347 ))
334 self.hgHeadsAct.triggered[()].connect(self.__hgHeads) 348 self.hgHeadsAct.triggered[()].connect(self.__hgHeads)
335 self.actions.append(self.hgHeadsAct) 349 self.actions.append(self.hgHeadsAct)
336 350
337 self.hgParentsAct = E5Action(self.trUtf8('Show parents'), 351 self.hgParentsAct = E5Action(
338 self.trUtf8('Show parents'), 352 self.trUtf8('Show parents'),
339 0, 0, self, 'mercurial_parents') 353 self.trUtf8('Show parents'),
354 0, 0, self, 'mercurial_parents')
340 self.hgParentsAct.setStatusTip(self.trUtf8( 355 self.hgParentsAct.setStatusTip(self.trUtf8(
341 'Show the parents of the repository' 356 'Show the parents of the repository'
342 )) 357 ))
343 self.hgParentsAct.setWhatsThis(self.trUtf8( 358 self.hgParentsAct.setWhatsThis(self.trUtf8(
344 """<b>Show parents</b>""" 359 """<b>Show parents</b>"""
345 """<p>This shows the parents of the repository.</p>""" 360 """<p>This shows the parents of the repository.</p>"""
346 )) 361 ))
347 self.hgParentsAct.triggered[()].connect(self.__hgParents) 362 self.hgParentsAct.triggered[()].connect(self.__hgParents)
348 self.actions.append(self.hgParentsAct) 363 self.actions.append(self.hgParentsAct)
349 364
350 self.hgTipAct = E5Action(self.trUtf8('Show tip'), 365 self.hgTipAct = E5Action(
351 self.trUtf8('Show tip'), 366 self.trUtf8('Show tip'),
352 0, 0, self, 'mercurial_tip') 367 self.trUtf8('Show tip'),
368 0, 0, self, 'mercurial_tip')
353 self.hgTipAct.setStatusTip(self.trUtf8( 369 self.hgTipAct.setStatusTip(self.trUtf8(
354 'Show the tip of the repository' 370 'Show the tip of the repository'
355 )) 371 ))
356 self.hgTipAct.setWhatsThis(self.trUtf8( 372 self.hgTipAct.setWhatsThis(self.trUtf8(
357 """<b>Show tip</b>""" 373 """<b>Show tip</b>"""
358 """<p>This shows the tip of the repository.</p>""" 374 """<p>This shows the tip of the repository.</p>"""
359 )) 375 ))
360 self.hgTipAct.triggered[()].connect(self.__hgTip) 376 self.hgTipAct.triggered[()].connect(self.__hgTip)
361 self.actions.append(self.hgTipAct) 377 self.actions.append(self.hgTipAct)
362 378
363 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'), 379 self.vcsRevertAct = E5Action(
364 UI.PixmapCache.getIcon("vcsRevert.png"), 380 self.trUtf8('Revert changes'),
365 self.trUtf8('Re&vert changes'), 381 UI.PixmapCache.getIcon("vcsRevert.png"),
366 0, 0, self, 'mercurial_revert') 382 self.trUtf8('Re&vert changes'),
383 0, 0, self, 'mercurial_revert')
367 self.vcsRevertAct.setStatusTip(self.trUtf8( 384 self.vcsRevertAct.setStatusTip(self.trUtf8(
368 'Revert all changes made to the local project' 385 'Revert all changes made to the local project'
369 )) 386 ))
370 self.vcsRevertAct.setWhatsThis(self.trUtf8( 387 self.vcsRevertAct.setWhatsThis(self.trUtf8(
371 """<b>Revert changes</b>""" 388 """<b>Revert changes</b>"""
372 """<p>This reverts all changes made to the local project.</p>""" 389 """<p>This reverts all changes made to the local project.</p>"""
373 )) 390 ))
374 self.vcsRevertAct.triggered[()].connect(self.__hgRevert) 391 self.vcsRevertAct.triggered[()].connect(self.__hgRevert)
375 self.actions.append(self.vcsRevertAct) 392 self.actions.append(self.vcsRevertAct)
376 393
377 self.vcsMergeAct = E5Action(self.trUtf8('Merge'), 394 self.vcsMergeAct = E5Action(
378 UI.PixmapCache.getIcon("vcsMerge.png"), 395 self.trUtf8('Merge'),
379 self.trUtf8('Mer&ge changes...'), 396 UI.PixmapCache.getIcon("vcsMerge.png"),
380 0, 0, self, 'mercurial_merge') 397 self.trUtf8('Mer&ge changes...'),
398 0, 0, self, 'mercurial_merge')
381 self.vcsMergeAct.setStatusTip(self.trUtf8( 399 self.vcsMergeAct.setStatusTip(self.trUtf8(
382 'Merge changes of a revision into the local project' 400 'Merge changes of a revision into the local project'
383 )) 401 ))
384 self.vcsMergeAct.setWhatsThis(self.trUtf8( 402 self.vcsMergeAct.setWhatsThis(self.trUtf8(
385 """<b>Merge</b>""" 403 """<b>Merge</b>"""
387 """ project.</p>""" 405 """ project.</p>"""
388 )) 406 ))
389 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) 407 self.vcsMergeAct.triggered[()].connect(self._vcsMerge)
390 self.actions.append(self.vcsMergeAct) 408 self.actions.append(self.vcsMergeAct)
391 409
392 self.vcsResolveAct = E5Action(self.trUtf8('Conflicts resolved'), 410 self.vcsResolveAct = E5Action(
393 self.trUtf8('Con&flicts resolved'), 411 self.trUtf8('Conflicts resolved'),
394 0, 0, self, 'mercurial_resolve') 412 self.trUtf8('Con&flicts resolved'),
413 0, 0, self, 'mercurial_resolve')
395 self.vcsResolveAct.setStatusTip(self.trUtf8( 414 self.vcsResolveAct.setStatusTip(self.trUtf8(
396 'Mark all conflicts of the local project as resolved' 415 'Mark all conflicts of the local project as resolved'
397 )) 416 ))
398 self.vcsResolveAct.setWhatsThis(self.trUtf8( 417 self.vcsResolveAct.setWhatsThis(self.trUtf8(
399 """<b>Conflicts resolved</b>""" 418 """<b>Conflicts resolved</b>"""
401 """ resolved.</p>""" 420 """ resolved.</p>"""
402 )) 421 ))
403 self.vcsResolveAct.triggered[()].connect(self.__hgResolve) 422 self.vcsResolveAct.triggered[()].connect(self.__hgResolve)
404 self.actions.append(self.vcsResolveAct) 423 self.actions.append(self.vcsResolveAct)
405 424
406 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'), 425 self.vcsTagAct = E5Action(
407 UI.PixmapCache.getIcon("vcsTag.png"), 426 self.trUtf8('Tag in repository'),
408 self.trUtf8('&Tag in repository...'), 427 UI.PixmapCache.getIcon("vcsTag.png"),
409 0, 0, self, 'mercurial_tag') 428 self.trUtf8('&Tag in repository...'),
429 0, 0, self, 'mercurial_tag')
410 self.vcsTagAct.setStatusTip(self.trUtf8( 430 self.vcsTagAct.setStatusTip(self.trUtf8(
411 'Tag the local project in the repository' 431 'Tag the local project in the repository'
412 )) 432 ))
413 self.vcsTagAct.setWhatsThis(self.trUtf8( 433 self.vcsTagAct.setWhatsThis(self.trUtf8(
414 """<b>Tag in repository</b>""" 434 """<b>Tag in repository</b>"""
415 """<p>This tags the local project in the repository.</p>""" 435 """<p>This tags the local project in the repository.</p>"""
416 )) 436 ))
417 self.vcsTagAct.triggered[()].connect(self._vcsTag) 437 self.vcsTagAct.triggered[()].connect(self._vcsTag)
418 self.actions.append(self.vcsTagAct) 438 self.actions.append(self.vcsTagAct)
419 439
420 self.hgTagListAct = E5Action(self.trUtf8('List tags'), 440 self.hgTagListAct = E5Action(
421 self.trUtf8('List tags...'), 441 self.trUtf8('List tags'),
422 0, 0, self, 'mercurial_list_tags') 442 self.trUtf8('List tags...'),
443 0, 0, self, 'mercurial_list_tags')
423 self.hgTagListAct.setStatusTip(self.trUtf8( 444 self.hgTagListAct.setStatusTip(self.trUtf8(
424 'List tags of the project' 445 'List tags of the project'
425 )) 446 ))
426 self.hgTagListAct.setWhatsThis(self.trUtf8( 447 self.hgTagListAct.setWhatsThis(self.trUtf8(
427 """<b>List tags</b>""" 448 """<b>List tags</b>"""
428 """<p>This lists the tags of the project.</p>""" 449 """<p>This lists the tags of the project.</p>"""
429 )) 450 ))
430 self.hgTagListAct.triggered[()].connect(self.__hgTagList) 451 self.hgTagListAct.triggered[()].connect(self.__hgTagList)
431 self.actions.append(self.hgTagListAct) 452 self.actions.append(self.hgTagListAct)
432 453
433 self.hgBranchListAct = E5Action(self.trUtf8('List branches'), 454 self.hgBranchListAct = E5Action(
434 self.trUtf8('List branches...'), 455 self.trUtf8('List branches'),
435 0, 0, self, 'mercurial_list_branches') 456 self.trUtf8('List branches...'),
457 0, 0, self, 'mercurial_list_branches')
436 self.hgBranchListAct.setStatusTip(self.trUtf8( 458 self.hgBranchListAct.setStatusTip(self.trUtf8(
437 'List branches of the project' 459 'List branches of the project'
438 )) 460 ))
439 self.hgBranchListAct.setWhatsThis(self.trUtf8( 461 self.hgBranchListAct.setWhatsThis(self.trUtf8(
440 """<b>List branches</b>""" 462 """<b>List branches</b>"""
441 """<p>This lists the branches of the project.</p>""" 463 """<p>This lists the branches of the project.</p>"""
442 )) 464 ))
443 self.hgBranchListAct.triggered[()].connect(self.__hgBranchList) 465 self.hgBranchListAct.triggered[()].connect(self.__hgBranchList)
444 self.actions.append(self.hgBranchListAct) 466 self.actions.append(self.hgBranchListAct)
445 467
446 self.hgBranchAct = E5Action(self.trUtf8('Create branch'), 468 self.hgBranchAct = E5Action(
447 UI.PixmapCache.getIcon("vcsBranch.png"), 469 self.trUtf8('Create branch'),
448 self.trUtf8('Create &branch...'), 470 UI.PixmapCache.getIcon("vcsBranch.png"),
449 0, 0, self, 'mercurial_branch') 471 self.trUtf8('Create &branch...'),
472 0, 0, self, 'mercurial_branch')
450 self.hgBranchAct.setStatusTip(self.trUtf8( 473 self.hgBranchAct.setStatusTip(self.trUtf8(
451 'Create a new branch for the local project in the repository' 474 'Create a new branch for the local project in the repository'
452 )) 475 ))
453 self.hgBranchAct.setWhatsThis(self.trUtf8( 476 self.hgBranchAct.setWhatsThis(self.trUtf8(
454 """<b>Create branch</b>""" 477 """<b>Create branch</b>"""
456 """in the repository.</p>""" 479 """in the repository.</p>"""
457 )) 480 ))
458 self.hgBranchAct.triggered[()].connect(self.__hgBranch) 481 self.hgBranchAct.triggered[()].connect(self.__hgBranch)
459 self.actions.append(self.hgBranchAct) 482 self.actions.append(self.hgBranchAct)
460 483
461 self.hgPushBranchAct = E5Action(self.trUtf8('Push new branch'), 484 self.hgPushBranchAct = E5Action(
462 self.trUtf8('Push new branch'), 485 self.trUtf8('Push new branch'),
463 0, 0, self, 'mercurial_push_branch') 486 self.trUtf8('Push new branch'),
487 0, 0, self, 'mercurial_push_branch')
464 self.hgPushBranchAct.setStatusTip(self.trUtf8( 488 self.hgPushBranchAct.setStatusTip(self.trUtf8(
465 'Push the current branch of the local project as a new named' 489 'Push the current branch of the local project as a new named'
466 ' branch' 490 ' branch'
467 )) 491 ))
468 self.hgPushBranchAct.setWhatsThis(self.trUtf8( 492 self.hgPushBranchAct.setWhatsThis(self.trUtf8(
471 """ as a new named branch.</p>""" 495 """ as a new named branch.</p>"""
472 )) 496 ))
473 self.hgPushBranchAct.triggered[()].connect(self.__hgPushNewBranch) 497 self.hgPushBranchAct.triggered[()].connect(self.__hgPushNewBranch)
474 self.actions.append(self.hgPushBranchAct) 498 self.actions.append(self.hgPushBranchAct)
475 499
476 self.hgCloseBranchAct = E5Action(self.trUtf8('Close branch'), 500 self.hgCloseBranchAct = E5Action(
477 self.trUtf8('Close branch'), 501 self.trUtf8('Close branch'),
478 0, 0, self, 'mercurial_close_branch') 502 self.trUtf8('Close branch'),
503 0, 0, self, 'mercurial_close_branch')
479 self.hgCloseBranchAct.setStatusTip(self.trUtf8( 504 self.hgCloseBranchAct.setStatusTip(self.trUtf8(
480 'Close the current branch of the local project' 505 'Close the current branch of the local project'
481 )) 506 ))
482 self.hgCloseBranchAct.setWhatsThis(self.trUtf8( 507 self.hgCloseBranchAct.setWhatsThis(self.trUtf8(
483 """<b>Close branch</b>""" 508 """<b>Close branch</b>"""
484 """<p>This closes the current branch of the local project.</p>""" 509 """<p>This closes the current branch of the local project.</p>"""
485 )) 510 ))
486 self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch) 511 self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch)
487 self.actions.append(self.hgCloseBranchAct) 512 self.actions.append(self.hgCloseBranchAct)
488 513
489 self.hgShowBranchAct = E5Action(self.trUtf8('Show current branch'), 514 self.hgShowBranchAct = E5Action(
490 self.trUtf8('Show current branch'), 515 self.trUtf8('Show current branch'),
491 0, 0, self, 'mercurial_show_branch') 516 self.trUtf8('Show current branch'),
517 0, 0, self, 'mercurial_show_branch')
492 self.hgShowBranchAct.setStatusTip(self.trUtf8( 518 self.hgShowBranchAct.setStatusTip(self.trUtf8(
493 'Show the current branch of the project' 519 'Show the current branch of the project'
494 )) 520 ))
495 self.hgShowBranchAct.setWhatsThis(self.trUtf8( 521 self.hgShowBranchAct.setWhatsThis(self.trUtf8(
496 """<b>Show current branch</b>""" 522 """<b>Show current branch</b>"""
497 """<p>This shows the current branch of the project.</p>""" 523 """<p>This shows the current branch of the project.</p>"""
498 )) 524 ))
499 self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch) 525 self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch)
500 self.actions.append(self.hgShowBranchAct) 526 self.actions.append(self.hgShowBranchAct)
501 527
502 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), 528 self.vcsSwitchAct = E5Action(
503 UI.PixmapCache.getIcon("vcsSwitch.png"), 529 self.trUtf8('Switch'),
504 self.trUtf8('S&witch...'), 530 UI.PixmapCache.getIcon("vcsSwitch.png"),
505 0, 0, self, 'mercurial_switch') 531 self.trUtf8('S&witch...'),
532 0, 0, self, 'mercurial_switch')
506 self.vcsSwitchAct.setStatusTip(self.trUtf8( 533 self.vcsSwitchAct.setStatusTip(self.trUtf8(
507 'Switch the working directory to another revision' 534 'Switch the working directory to another revision'
508 )) 535 ))
509 self.vcsSwitchAct.setWhatsThis(self.trUtf8( 536 self.vcsSwitchAct.setWhatsThis(self.trUtf8(
510 """<b>Switch</b>""" 537 """<b>Switch</b>"""
512 """ revision.</p>""" 539 """ revision.</p>"""
513 )) 540 ))
514 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) 541 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch)
515 self.actions.append(self.vcsSwitchAct) 542 self.actions.append(self.vcsSwitchAct)
516 543
517 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), 544 self.vcsCleanupAct = E5Action(
518 self.trUtf8('Cleanu&p'), 545 self.trUtf8('Cleanup'),
519 0, 0, self, 'mercurial_cleanup') 546 self.trUtf8('Cleanu&p'),
547 0, 0, self, 'mercurial_cleanup')
520 self.vcsCleanupAct.setStatusTip(self.trUtf8( 548 self.vcsCleanupAct.setStatusTip(self.trUtf8(
521 'Cleanup the local project' 549 'Cleanup the local project'
522 )) 550 ))
523 self.vcsCleanupAct.setWhatsThis(self.trUtf8( 551 self.vcsCleanupAct.setWhatsThis(self.trUtf8(
524 """<b>Cleanup</b>""" 552 """<b>Cleanup</b>"""
525 """<p>This performs a cleanup of the local project.</p>""" 553 """<p>This performs a cleanup of the local project.</p>"""
526 )) 554 ))
527 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) 555 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup)
528 self.actions.append(self.vcsCleanupAct) 556 self.actions.append(self.vcsCleanupAct)
529 557
530 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'), 558 self.vcsCommandAct = E5Action(
531 self.trUtf8('E&xecute command...'), 559 self.trUtf8('Execute command'),
532 0, 0, self, 'mercurial_command') 560 self.trUtf8('E&xecute command...'),
561 0, 0, self, 'mercurial_command')
533 self.vcsCommandAct.setStatusTip(self.trUtf8( 562 self.vcsCommandAct.setStatusTip(self.trUtf8(
534 'Execute an arbitrary Mercurial command' 563 'Execute an arbitrary Mercurial command'
535 )) 564 ))
536 self.vcsCommandAct.setWhatsThis(self.trUtf8( 565 self.vcsCommandAct.setWhatsThis(self.trUtf8(
537 """<b>Execute command</b>""" 566 """<b>Execute command</b>"""
539 """ command.</p>""" 568 """ command.</p>"""
540 )) 569 ))
541 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) 570 self.vcsCommandAct.triggered[()].connect(self._vcsCommand)
542 self.actions.append(self.vcsCommandAct) 571 self.actions.append(self.vcsCommandAct)
543 572
544 self.vcsPropsAct = E5Action(self.trUtf8('Command options'), 573 self.vcsPropsAct = E5Action(
545 self.trUtf8('Command &options...'), 0, 0, self, 574 self.trUtf8('Command options'),
546 'mercurial_options') 575 self.trUtf8('Command &options...'), 0, 0, self,
576 'mercurial_options')
547 self.vcsPropsAct.setStatusTip(self.trUtf8( 577 self.vcsPropsAct.setStatusTip(self.trUtf8(
548 'Show the Mercurial command options')) 578 'Show the Mercurial command options'))
549 self.vcsPropsAct.setWhatsThis(self.trUtf8( 579 self.vcsPropsAct.setWhatsThis(self.trUtf8(
550 """<b>Command options...</b>""" 580 """<b>Command options...</b>"""
551 """<p>This shows a dialog to edit the Mercurial command""" 581 """<p>This shows a dialog to edit the Mercurial command"""
552 """ options.</p>""" 582 """ options.</p>"""
553 )) 583 ))
554 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) 584 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions)
555 self.actions.append(self.vcsPropsAct) 585 self.actions.append(self.vcsPropsAct)
556 586
557 self.hgConfigAct = E5Action(self.trUtf8('Configure'), 587 self.hgConfigAct = E5Action(
558 self.trUtf8('Configure...'), 588 self.trUtf8('Configure'),
559 0, 0, self, 'mercurial_configure') 589 self.trUtf8('Configure...'),
590 0, 0, self, 'mercurial_configure')
560 self.hgConfigAct.setStatusTip(self.trUtf8( 591 self.hgConfigAct.setStatusTip(self.trUtf8(
561 'Show the configuration dialog with the Mercurial page selected' 592 'Show the configuration dialog with the Mercurial page selected'
562 )) 593 ))
563 self.hgConfigAct.setWhatsThis(self.trUtf8( 594 self.hgConfigAct.setWhatsThis(self.trUtf8(
564 """<b>Configure</b>""" 595 """<b>Configure</b>"""
596 )) 627 ))
597 self.hgRepoConfigAct.triggered[()].connect(self.__hgEditRepoConfig) 628 self.hgRepoConfigAct.triggered[()].connect(self.__hgEditRepoConfig)
598 self.actions.append(self.hgRepoConfigAct) 629 self.actions.append(self.hgRepoConfigAct)
599 630
600 self.hgShowConfigAct = E5Action( 631 self.hgShowConfigAct = E5Action(
601 self.trUtf8('Show combined configuration settings'), 632 self.trUtf8('Show combined configuration settings'),
602 self.trUtf8('Show combined configuration settings...'), 633 self.trUtf8('Show combined configuration settings...'),
603 0, 0, self, 'mercurial_show_config') 634 0, 0, self, 'mercurial_show_config')
604 self.hgShowConfigAct.setStatusTip(self.trUtf8( 635 self.hgShowConfigAct.setStatusTip(self.trUtf8(
605 'Show the combined configuration settings from all configuration' 636 'Show the combined configuration settings from all configuration'
606 ' files' 637 ' files'
607 )) 638 ))
608 self.hgShowConfigAct.setWhatsThis(self.trUtf8( 639 self.hgShowConfigAct.setWhatsThis(self.trUtf8(
611 """ from all configuration files.</p>""" 642 """ from all configuration files.</p>"""
612 )) 643 ))
613 self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig) 644 self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig)
614 self.actions.append(self.hgShowConfigAct) 645 self.actions.append(self.hgShowConfigAct)
615 646
616 self.hgShowPathsAct = E5Action(self.trUtf8('Show paths'), 647 self.hgShowPathsAct = E5Action(
617 self.trUtf8('Show paths...'), 648 self.trUtf8('Show paths'),
618 0, 0, self, 'mercurial_show_paths') 649 self.trUtf8('Show paths...'),
650 0, 0, self, 'mercurial_show_paths')
619 self.hgShowPathsAct.setStatusTip(self.trUtf8( 651 self.hgShowPathsAct.setStatusTip(self.trUtf8(
620 'Show the aliases for remote repositories' 652 'Show the aliases for remote repositories'
621 )) 653 ))
622 self.hgShowPathsAct.setWhatsThis(self.trUtf8( 654 self.hgShowPathsAct.setWhatsThis(self.trUtf8(
623 """<b>Show paths</b>""" 655 """<b>Show paths</b>"""
624 """<p>This shows the aliases for remote repositories.</p>""" 656 """<p>This shows the aliases for remote repositories.</p>"""
625 )) 657 ))
626 self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths) 658 self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths)
627 self.actions.append(self.hgShowPathsAct) 659 self.actions.append(self.hgShowPathsAct)
628 660
629 self.hgVerifyAct = E5Action(self.trUtf8('Verify repository'), 661 self.hgVerifyAct = E5Action(
630 self.trUtf8('Verify repository...'), 662 self.trUtf8('Verify repository'),
631 0, 0, self, 'mercurial_verify') 663 self.trUtf8('Verify repository...'),
664 0, 0, self, 'mercurial_verify')
632 self.hgVerifyAct.setStatusTip(self.trUtf8( 665 self.hgVerifyAct.setStatusTip(self.trUtf8(
633 'Verify the integrity of the repository' 666 'Verify the integrity of the repository'
634 )) 667 ))
635 self.hgVerifyAct.setWhatsThis(self.trUtf8( 668 self.hgVerifyAct.setWhatsThis(self.trUtf8(
636 """<b>Verify repository</b>""" 669 """<b>Verify repository</b>"""
637 """<p>This verifies the integrity of the repository.</p>""" 670 """<p>This verifies the integrity of the repository.</p>"""
638 )) 671 ))
639 self.hgVerifyAct.triggered[()].connect(self.__hgVerify) 672 self.hgVerifyAct.triggered[()].connect(self.__hgVerify)
640 self.actions.append(self.hgVerifyAct) 673 self.actions.append(self.hgVerifyAct)
641 674
642 self.hgRecoverAct = E5Action(self.trUtf8('Recover'), 675 self.hgRecoverAct = E5Action(
643 self.trUtf8('Recover...'), 676 self.trUtf8('Recover'),
644 0, 0, self, 'mercurial_recover') 677 self.trUtf8('Recover...'),
678 0, 0, self, 'mercurial_recover')
645 self.hgRecoverAct.setStatusTip(self.trUtf8( 679 self.hgRecoverAct.setStatusTip(self.trUtf8(
646 'Recover from an interrupted transaction' 680 'Recover from an interrupted transaction'
647 )) 681 ))
648 self.hgRecoverAct.setWhatsThis(self.trUtf8( 682 self.hgRecoverAct.setWhatsThis(self.trUtf8(
649 """<b>Recover</b>""" 683 """<b>Recover</b>"""
650 """<p>This recovers from an interrupted transaction.</p>""" 684 """<p>This recovers from an interrupted transaction.</p>"""
651 )) 685 ))
652 self.hgRecoverAct.triggered[()].connect(self.__hgRecover) 686 self.hgRecoverAct.triggered[()].connect(self.__hgRecover)
653 self.actions.append(self.hgRecoverAct) 687 self.actions.append(self.hgRecoverAct)
654 688
655 self.hgIdentifyAct = E5Action(self.trUtf8('Identify'), 689 self.hgIdentifyAct = E5Action(
656 self.trUtf8('Identify...'), 690 self.trUtf8('Identify'),
657 0, 0, self, 'mercurial_identify') 691 self.trUtf8('Identify...'),
692 0, 0, self, 'mercurial_identify')
658 self.hgIdentifyAct.setStatusTip(self.trUtf8( 693 self.hgIdentifyAct.setStatusTip(self.trUtf8(
659 'Identify the project directory' 694 'Identify the project directory'
660 )) 695 ))
661 self.hgIdentifyAct.setWhatsThis(self.trUtf8( 696 self.hgIdentifyAct.setWhatsThis(self.trUtf8(
662 """<b>Identify</b>""" 697 """<b>Identify</b>"""
663 """<p>This identifies the project directory.</p>""" 698 """<p>This identifies the project directory.</p>"""
664 )) 699 ))
665 self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify) 700 self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify)
666 self.actions.append(self.hgIdentifyAct) 701 self.actions.append(self.hgIdentifyAct)
667 702
668 self.hgCreateIgnoreAct = E5Action(self.trUtf8('Create .hgignore'), 703 self.hgCreateIgnoreAct = E5Action(
669 self.trUtf8('Create .hgignore'), 704 self.trUtf8('Create .hgignore'),
670 0, 0, self, 'mercurial_create ignore') 705 self.trUtf8('Create .hgignore'),
706 0, 0, self, 'mercurial_create ignore')
671 self.hgCreateIgnoreAct.setStatusTip(self.trUtf8( 707 self.hgCreateIgnoreAct.setStatusTip(self.trUtf8(
672 'Create a .hgignore file with default values' 708 'Create a .hgignore file with default values'
673 )) 709 ))
674 self.hgCreateIgnoreAct.setWhatsThis(self.trUtf8( 710 self.hgCreateIgnoreAct.setWhatsThis(self.trUtf8(
675 """<b>Create .hgignore</b>""" 711 """<b>Create .hgignore</b>"""
676 """<p>This creates a .hgignore file with default values.</p>""" 712 """<p>This creates a .hgignore file with default values.</p>"""
677 )) 713 ))
678 self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore) 714 self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore)
679 self.actions.append(self.hgCreateIgnoreAct) 715 self.actions.append(self.hgCreateIgnoreAct)
680 716
681 self.hgBundleAct = E5Action(self.trUtf8('Create changegroup'), 717 self.hgBundleAct = E5Action(
682 self.trUtf8('Create changegroup...'), 718 self.trUtf8('Create changegroup'),
683 0, 0, self, 'mercurial_bundle') 719 self.trUtf8('Create changegroup...'),
720 0, 0, self, 'mercurial_bundle')
684 self.hgBundleAct.setStatusTip(self.trUtf8( 721 self.hgBundleAct.setStatusTip(self.trUtf8(
685 'Create changegroup file collecting changesets' 722 'Create changegroup file collecting changesets'
686 )) 723 ))
687 self.hgBundleAct.setWhatsThis(self.trUtf8( 724 self.hgBundleAct.setWhatsThis(self.trUtf8(
688 """<b>Create changegroup</b>""" 725 """<b>Create changegroup</b>"""
690 """ changesets (hg bundle).</p>""" 727 """ changesets (hg bundle).</p>"""
691 )) 728 ))
692 self.hgBundleAct.triggered[()].connect(self.__hgBundle) 729 self.hgBundleAct.triggered[()].connect(self.__hgBundle)
693 self.actions.append(self.hgBundleAct) 730 self.actions.append(self.hgBundleAct)
694 731
695 self.hgPreviewBundleAct = E5Action(self.trUtf8('Preview changegroup'), 732 self.hgPreviewBundleAct = E5Action(
696 self.trUtf8('Preview changegroup...'), 733 self.trUtf8('Preview changegroup'),
697 0, 0, self, 'mercurial_preview_bundle') 734 self.trUtf8('Preview changegroup...'),
735 0, 0, self, 'mercurial_preview_bundle')
698 self.hgPreviewBundleAct.setStatusTip(self.trUtf8( 736 self.hgPreviewBundleAct.setStatusTip(self.trUtf8(
699 'Preview a changegroup file containing a collection of changesets' 737 'Preview a changegroup file containing a collection of changesets'
700 )) 738 ))
701 self.hgPreviewBundleAct.setWhatsThis(self.trUtf8( 739 self.hgPreviewBundleAct.setWhatsThis(self.trUtf8(
702 """<b>Preview changegroup</b>""" 740 """<b>Preview changegroup</b>"""
719 """ collection of changesets.</p>""" 757 """ collection of changesets.</p>"""
720 )) 758 ))
721 self.hgIdentifyBundleAct.triggered[()].connect(self.__hgIdentifyBundle) 759 self.hgIdentifyBundleAct.triggered[()].connect(self.__hgIdentifyBundle)
722 self.actions.append(self.hgIdentifyBundleAct) 760 self.actions.append(self.hgIdentifyBundleAct)
723 761
724 self.hgUnbundleAct = E5Action(self.trUtf8('Apply changegroups'), 762 self.hgUnbundleAct = E5Action(
725 self.trUtf8('Apply changegroups...'), 763 self.trUtf8('Apply changegroups'),
726 0, 0, self, 'mercurial_unbundle') 764 self.trUtf8('Apply changegroups...'),
765 0, 0, self, 'mercurial_unbundle')
727 self.hgUnbundleAct.setStatusTip(self.trUtf8( 766 self.hgUnbundleAct.setStatusTip(self.trUtf8(
728 'Apply one or several changegroup files' 767 'Apply one or several changegroup files'
729 )) 768 ))
730 self.hgUnbundleAct.setWhatsThis(self.trUtf8( 769 self.hgUnbundleAct.setWhatsThis(self.trUtf8(
731 """<b>Apply changegroups</b>""" 770 """<b>Apply changegroups</b>"""
733 """ the 'Create changegroup' action (hg unbundle).</p>""" 772 """ the 'Create changegroup' action (hg unbundle).</p>"""
734 )) 773 ))
735 self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle) 774 self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle)
736 self.actions.append(self.hgUnbundleAct) 775 self.actions.append(self.hgUnbundleAct)
737 776
738 self.hgBisectGoodAct = E5Action(self.trUtf8('Mark as "good"'), 777 self.hgBisectGoodAct = E5Action(
739 self.trUtf8('Mark as "good"...'), 778 self.trUtf8('Mark as "good"'),
740 0, 0, self, 'mercurial_bisect_good') 779 self.trUtf8('Mark as "good"...'),
780 0, 0, self, 'mercurial_bisect_good')
741 self.hgBisectGoodAct.setStatusTip(self.trUtf8( 781 self.hgBisectGoodAct.setStatusTip(self.trUtf8(
742 'Mark a selectable changeset as good' 782 'Mark a selectable changeset as good'
743 )) 783 ))
744 self.hgBisectGoodAct.setWhatsThis(self.trUtf8( 784 self.hgBisectGoodAct.setWhatsThis(self.trUtf8(
745 """<b>Mark as good</b>""" 785 """<b>Mark as good</b>"""
746 """<p>This marks a selectable changeset as good.</p>""" 786 """<p>This marks a selectable changeset as good.</p>"""
747 )) 787 ))
748 self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood) 788 self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood)
749 self.actions.append(self.hgBisectGoodAct) 789 self.actions.append(self.hgBisectGoodAct)
750 790
751 self.hgBisectBadAct = E5Action(self.trUtf8('Mark as "bad"'), 791 self.hgBisectBadAct = E5Action(
752 self.trUtf8('Mark as "bad"...'), 792 self.trUtf8('Mark as "bad"'),
753 0, 0, self, 'mercurial_bisect_bad') 793 self.trUtf8('Mark as "bad"...'),
794 0, 0, self, 'mercurial_bisect_bad')
754 self.hgBisectBadAct.setStatusTip(self.trUtf8( 795 self.hgBisectBadAct.setStatusTip(self.trUtf8(
755 'Mark a selectable changeset as bad' 796 'Mark a selectable changeset as bad'
756 )) 797 ))
757 self.hgBisectBadAct.setWhatsThis(self.trUtf8( 798 self.hgBisectBadAct.setWhatsThis(self.trUtf8(
758 """<b>Mark as bad</b>""" 799 """<b>Mark as bad</b>"""
759 """<p>This marks a selectable changeset as bad.</p>""" 800 """<p>This marks a selectable changeset as bad.</p>"""
760 )) 801 ))
761 self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad) 802 self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad)
762 self.actions.append(self.hgBisectBadAct) 803 self.actions.append(self.hgBisectBadAct)
763 804
764 self.hgBisectSkipAct = E5Action(self.trUtf8('Skip'), 805 self.hgBisectSkipAct = E5Action(
765 self.trUtf8('Skip...'), 806 self.trUtf8('Skip'),
766 0, 0, self, 'mercurial_bisect_skip') 807 self.trUtf8('Skip...'),
808 0, 0, self, 'mercurial_bisect_skip')
767 self.hgBisectSkipAct.setStatusTip(self.trUtf8( 809 self.hgBisectSkipAct.setStatusTip(self.trUtf8(
768 'Skip a selectable changeset' 810 'Skip a selectable changeset'
769 )) 811 ))
770 self.hgBisectSkipAct.setWhatsThis(self.trUtf8( 812 self.hgBisectSkipAct.setWhatsThis(self.trUtf8(
771 """<b>Skip</b>""" 813 """<b>Skip</b>"""
772 """<p>This skips a selectable changeset.</p>""" 814 """<p>This skips a selectable changeset.</p>"""
773 )) 815 ))
774 self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip) 816 self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip)
775 self.actions.append(self.hgBisectSkipAct) 817 self.actions.append(self.hgBisectSkipAct)
776 818
777 self.hgBisectResetAct = E5Action(self.trUtf8('Reset'), 819 self.hgBisectResetAct = E5Action(
778 self.trUtf8('Reset'), 820 self.trUtf8('Reset'),
779 0, 0, self, 'mercurial_bisect_reset') 821 self.trUtf8('Reset'),
822 0, 0, self, 'mercurial_bisect_reset')
780 self.hgBisectResetAct.setStatusTip(self.trUtf8( 823 self.hgBisectResetAct.setStatusTip(self.trUtf8(
781 'Reset the bisect search data' 824 'Reset the bisect search data'
782 )) 825 ))
783 self.hgBisectResetAct.setWhatsThis(self.trUtf8( 826 self.hgBisectResetAct.setWhatsThis(self.trUtf8(
784 """<b>Reset</b>""" 827 """<b>Reset</b>"""
785 """<p>This resets the bisect search data.</p>""" 828 """<p>This resets the bisect search data.</p>"""
786 )) 829 ))
787 self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset) 830 self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset)
788 self.actions.append(self.hgBisectResetAct) 831 self.actions.append(self.hgBisectResetAct)
789 832
790 self.hgBackoutAct = E5Action(self.trUtf8('Back out changeset'), 833 self.hgBackoutAct = E5Action(
791 self.trUtf8('Back out changeset'), 834 self.trUtf8('Back out changeset'),
792 0, 0, self, 'mercurial_backout') 835 self.trUtf8('Back out changeset'),
836 0, 0, self, 'mercurial_backout')
793 self.hgBackoutAct.setStatusTip(self.trUtf8( 837 self.hgBackoutAct.setStatusTip(self.trUtf8(
794 'Back out changes of an earlier changeset' 838 'Back out changes of an earlier changeset'
795 )) 839 ))
796 self.hgBackoutAct.setWhatsThis(self.trUtf8( 840 self.hgBackoutAct.setWhatsThis(self.trUtf8(
797 """<b>Back out changeset</b>""" 841 """<b>Back out changeset</b>"""
798 """<p>This backs out changes of an earlier changeset.</p>""" 842 """<p>This backs out changes of an earlier changeset.</p>"""
799 )) 843 ))
800 self.hgBackoutAct.triggered[()].connect(self.__hgBackout) 844 self.hgBackoutAct.triggered[()].connect(self.__hgBackout)
801 self.actions.append(self.hgBackoutAct) 845 self.actions.append(self.hgBackoutAct)
802 846
803 self.hgRollbackAct = E5Action(self.trUtf8('Rollback last transaction'), 847 self.hgRollbackAct = E5Action(
804 self.trUtf8('Rollback last transaction'), 848 self.trUtf8('Rollback last transaction'),
805 0, 0, self, 'mercurial_rollback') 849 self.trUtf8('Rollback last transaction'),
850 0, 0, self, 'mercurial_rollback')
806 self.hgRollbackAct.setStatusTip(self.trUtf8( 851 self.hgRollbackAct.setStatusTip(self.trUtf8(
807 'Rollback the last transaction' 852 'Rollback the last transaction'
808 )) 853 ))
809 self.hgRollbackAct.setWhatsThis(self.trUtf8( 854 self.hgRollbackAct.setWhatsThis(self.trUtf8(
810 """<b>Rollback last transaction</b>""" 855 """<b>Rollback last transaction</b>"""
824 """ care. </strong></p>""" 869 """ care. </strong></p>"""
825 )) 870 ))
826 self.hgRollbackAct.triggered[()].connect(self.__hgRollback) 871 self.hgRollbackAct.triggered[()].connect(self.__hgRollback)
827 self.actions.append(self.hgRollbackAct) 872 self.actions.append(self.hgRollbackAct)
828 873
829 self.hgServeAct = E5Action(self.trUtf8('Serve project repository'), 874 self.hgServeAct = E5Action(
830 self.trUtf8('Serve project repository...'), 875 self.trUtf8('Serve project repository'),
831 0, 0, self, 'mercurial_serve') 876 self.trUtf8('Serve project repository...'),
877 0, 0, self, 'mercurial_serve')
832 self.hgServeAct.setStatusTip(self.trUtf8( 878 self.hgServeAct.setStatusTip(self.trUtf8(
833 'Serve the project repository' 879 'Serve the project repository'
834 )) 880 ))
835 self.hgServeAct.setWhatsThis(self.trUtf8( 881 self.hgServeAct.setWhatsThis(self.trUtf8(
836 """<b>Serve project repository</b>""" 882 """<b>Serve project repository</b>"""
837 """<p>This serves the project repository.</p>""" 883 """<p>This serves the project repository.</p>"""
838 )) 884 ))
839 self.hgServeAct.triggered[()].connect(self.__hgServe) 885 self.hgServeAct.triggered[()].connect(self.__hgServe)
840 self.actions.append(self.hgServeAct) 886 self.actions.append(self.hgServeAct)
841 887
842 self.hgImportAct = E5Action(self.trUtf8('Import Patch'), 888 self.hgImportAct = E5Action(
843 self.trUtf8('Import Patch...'), 889 self.trUtf8('Import Patch'),
844 0, 0, self, 'mercurial_import') 890 self.trUtf8('Import Patch...'),
891 0, 0, self, 'mercurial_import')
845 self.hgImportAct.setStatusTip(self.trUtf8( 892 self.hgImportAct.setStatusTip(self.trUtf8(
846 'Import a patch from a patch file' 893 'Import a patch from a patch file'
847 )) 894 ))
848 self.hgImportAct.setWhatsThis(self.trUtf8( 895 self.hgImportAct.setWhatsThis(self.trUtf8(
849 """<b>Import Patch</b>""" 896 """<b>Import Patch</b>"""
851 """ project.</p>""" 898 """ project.</p>"""
852 )) 899 ))
853 self.hgImportAct.triggered[()].connect(self.__hgImport) 900 self.hgImportAct.triggered[()].connect(self.__hgImport)
854 self.actions.append(self.hgImportAct) 901 self.actions.append(self.hgImportAct)
855 902
856 self.hgExportAct = E5Action(self.trUtf8('Export Patches'), 903 self.hgExportAct = E5Action(
857 self.trUtf8('Export Patches...'), 904 self.trUtf8('Export Patches'),
858 0, 0, self, 'mercurial_export') 905 self.trUtf8('Export Patches...'),
906 0, 0, self, 'mercurial_export')
859 self.hgExportAct.setStatusTip(self.trUtf8( 907 self.hgExportAct.setStatusTip(self.trUtf8(
860 'Export revisions to patch files' 908 'Export revisions to patch files'
861 )) 909 ))
862 self.hgExportAct.setWhatsThis(self.trUtf8( 910 self.hgExportAct.setWhatsThis(self.trUtf8(
863 """<b>Export Patches</b>""" 911 """<b>Export Patches</b>"""
864 """<p>This exports revisions of the project to patch files.</p>""" 912 """<p>This exports revisions of the project to patch files.</p>"""
865 )) 913 ))
866 self.hgExportAct.triggered[()].connect(self.__hgExport) 914 self.hgExportAct.triggered[()].connect(self.__hgExport)
867 self.actions.append(self.hgExportAct) 915 self.actions.append(self.hgExportAct)
868 916
869 self.hgPhaseAct = E5Action(self.trUtf8('Change Phase'), 917 self.hgPhaseAct = E5Action(
870 self.trUtf8('Change Phase...'), 918 self.trUtf8('Change Phase'),
871 0, 0, self, 'mercurial_change_phase') 919 self.trUtf8('Change Phase...'),
920 0, 0, self, 'mercurial_change_phase')
872 self.hgPhaseAct.setStatusTip(self.trUtf8( 921 self.hgPhaseAct.setStatusTip(self.trUtf8(
873 'Change the phase of revisions' 922 'Change the phase of revisions'
874 )) 923 ))
875 self.hgPhaseAct.setWhatsThis(self.trUtf8( 924 self.hgPhaseAct.setWhatsThis(self.trUtf8(
876 """<b>Change Phase</b>""" 925 """<b>Change Phase</b>"""
877 """<p>This changes the phase of revisions.</p>""" 926 """<p>This changes the phase of revisions.</p>"""
878 )) 927 ))
879 self.hgPhaseAct.triggered[()].connect(self.__hgPhase) 928 self.hgPhaseAct.triggered[()].connect(self.__hgPhase)
880 self.actions.append(self.hgPhaseAct) 929 self.actions.append(self.hgPhaseAct)
881 930
882 self.hgGraftAct = E5Action(self.trUtf8('Copy Changesets'), 931 self.hgGraftAct = E5Action(
883 UI.PixmapCache.getIcon("vcsGraft.png"), 932 self.trUtf8('Copy Changesets'),
884 self.trUtf8('Copy Changesets'), 933 UI.PixmapCache.getIcon("vcsGraft.png"),
885 0, 0, self, 'mercurial_graft') 934 self.trUtf8('Copy Changesets'),
935 0, 0, self, 'mercurial_graft')
886 self.hgGraftAct.setStatusTip(self.trUtf8( 936 self.hgGraftAct.setStatusTip(self.trUtf8(
887 'Copies changesets from another branch' 937 'Copies changesets from another branch'
888 )) 938 ))
889 self.hgGraftAct.setWhatsThis(self.trUtf8( 939 self.hgGraftAct.setWhatsThis(self.trUtf8(
890 """<b>Copy Changesets</b>""" 940 """<b>Copy Changesets</b>"""
894 )) 944 ))
895 self.hgGraftAct.triggered[()].connect(self.__hgGraft) 945 self.hgGraftAct.triggered[()].connect(self.__hgGraft)
896 self.actions.append(self.hgGraftAct) 946 self.actions.append(self.hgGraftAct)
897 947
898 self.hgGraftContinueAct = E5Action( 948 self.hgGraftContinueAct = E5Action(
899 self.trUtf8('Continue Copying Session'), 949 self.trUtf8('Continue Copying Session'),
900 self.trUtf8('Continue Copying Session'), 950 self.trUtf8('Continue Copying Session'),
901 0, 0, self, 'mercurial_graft_continue') 951 0, 0, self, 'mercurial_graft_continue')
902 self.hgGraftContinueAct.setStatusTip(self.trUtf8( 952 self.hgGraftContinueAct.setStatusTip(self.trUtf8(
903 'Continue the last copying session after conflicts were resolved' 953 'Continue the last copying session after conflicts were resolved'
904 )) 954 ))
905 self.hgGraftContinueAct.setWhatsThis(self.trUtf8( 955 self.hgGraftContinueAct.setWhatsThis(self.trUtf8(
906 """<b>Continue Copying Session</b>""" 956 """<b>Continue Copying Session</b>"""
909 )) 959 ))
910 self.hgGraftContinueAct.triggered[()].connect(self.__hgGraftContinue) 960 self.hgGraftContinueAct.triggered[()].connect(self.__hgGraftContinue)
911 self.actions.append(self.hgGraftContinueAct) 961 self.actions.append(self.hgGraftContinueAct)
912 962
913 self.hgAddSubrepoAct = E5Action( 963 self.hgAddSubrepoAct = E5Action(
914 self.trUtf8('Add'), 964 self.trUtf8('Add'),
915 UI.PixmapCache.getIcon("vcsAdd.png"), 965 UI.PixmapCache.getIcon("vcsAdd.png"),
916 self.trUtf8('Add...'), 966 self.trUtf8('Add...'),
917 0, 0, self, 'mercurial_add_subrepo') 967 0, 0, self, 'mercurial_add_subrepo')
918 self.hgAddSubrepoAct.setStatusTip(self.trUtf8( 968 self.hgAddSubrepoAct.setStatusTip(self.trUtf8(
919 'Add a sub-repository' 969 'Add a sub-repository'
920 )) 970 ))
921 self.hgAddSubrepoAct.setWhatsThis(self.trUtf8( 971 self.hgAddSubrepoAct.setWhatsThis(self.trUtf8(
922 """<b>Add...</b>""" 972 """<b>Add...</b>"""
924 )) 974 ))
925 self.hgAddSubrepoAct.triggered[()].connect(self.__hgAddSubrepository) 975 self.hgAddSubrepoAct.triggered[()].connect(self.__hgAddSubrepository)
926 self.actions.append(self.hgAddSubrepoAct) 976 self.actions.append(self.hgAddSubrepoAct)
927 977
928 self.hgRemoveSubreposAct = E5Action( 978 self.hgRemoveSubreposAct = E5Action(
929 self.trUtf8('Remove'), 979 self.trUtf8('Remove'),
930 UI.PixmapCache.getIcon("vcsRemove.png"), 980 UI.PixmapCache.getIcon("vcsRemove.png"),
931 self.trUtf8('Remove...'), 981 self.trUtf8('Remove...'),
932 0, 0, self, 'mercurial_remove_subrepos') 982 0, 0, self, 'mercurial_remove_subrepos')
933 self.hgRemoveSubreposAct.setStatusTip(self.trUtf8( 983 self.hgRemoveSubreposAct.setStatusTip(self.trUtf8(
934 'Remove sub-repositories' 984 'Remove sub-repositories'
935 )) 985 ))
936 self.hgRemoveSubreposAct.setWhatsThis(self.trUtf8( 986 self.hgRemoveSubreposAct.setWhatsThis(self.trUtf8(
937 """<b>Remove...</b>""" 987 """<b>Remove...</b>"""
939 )) 989 ))
940 self.hgRemoveSubreposAct.triggered[()].connect( 990 self.hgRemoveSubreposAct.triggered[()].connect(
941 self.__hgRemoveSubrepositories) 991 self.__hgRemoveSubrepositories)
942 self.actions.append(self.hgRemoveSubreposAct) 992 self.actions.append(self.hgRemoveSubreposAct)
943 993
944 self.hgArchiveAct = E5Action(self.trUtf8('Create unversioned archive'), 994 self.hgArchiveAct = E5Action(
945 UI.PixmapCache.getIcon("vcsExport.png"), 995 self.trUtf8('Create unversioned archive'),
946 self.trUtf8('Create unversioned archive...'), 996 UI.PixmapCache.getIcon("vcsExport.png"),
947 0, 0, self, 'mercurial_archive') 997 self.trUtf8('Create unversioned archive...'),
998 0, 0, self, 'mercurial_archive')
948 self.hgArchiveAct.setStatusTip(self.trUtf8( 999 self.hgArchiveAct.setStatusTip(self.trUtf8(
949 'Create an unversioned archive from the repository' 1000 'Create an unversioned archive from the repository'
950 )) 1001 ))
951 self.hgArchiveAct.setWhatsThis(self.trUtf8( 1002 self.hgArchiveAct.setWhatsThis(self.trUtf8(
952 """<b>Create unversioned archive...</b>""" 1003 """<b>Create unversioned archive...</b>"""

eric ide

mercurial