Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py

changeset 454
d28d558f7484
parent 453
a81097a85889
child 467
0911d8be9b07
equal deleted inserted replaced
453:a81097a85889 454:d28d558f7484
57 self.vcsNewAct.setWhatsThis(self.trUtf8( 57 self.vcsNewAct.setWhatsThis(self.trUtf8(
58 """<b>New from repository</b>""" 58 """<b>New from repository</b>"""
59 """<p>This creates (clones) a new local project from """ 59 """<p>This creates (clones) a new local project from """
60 """a Mercurial repository.</p>""" 60 """a Mercurial repository.</p>"""
61 )) 61 ))
62 self.vcsNewAct.triggered.connect(self._vcsCheckout) 62 self.vcsNewAct.triggered[()].connect(self._vcsCheckout)
63 self.actions.append(self.vcsNewAct) 63 self.actions.append(self.vcsNewAct)
64 64
65 self.hgIncomingAct = E5Action(self.trUtf8('Show incoming log'), 65 self.hgIncomingAct = E5Action(self.trUtf8('Show incoming log'),
66 UI.PixmapCache.getIcon("vcsUpdate.png"), 66 UI.PixmapCache.getIcon("vcsUpdate.png"),
67 self.trUtf8('Show incoming log'), 67 self.trUtf8('Show incoming log'),
71 )) 71 ))
72 self.hgIncomingAct.setWhatsThis(self.trUtf8( 72 self.hgIncomingAct.setWhatsThis(self.trUtf8(
73 """<b>Show incoming log</b>""" 73 """<b>Show incoming log</b>"""
74 """<p>This shows the log of changes coming into the repository.</p>""" 74 """<p>This shows the log of changes coming into the repository.</p>"""
75 )) 75 ))
76 self.hgIncomingAct.triggered.connect(self.__hgIncoming) 76 self.hgIncomingAct.triggered[()].connect(self.__hgIncoming)
77 self.actions.append(self.hgIncomingAct) 77 self.actions.append(self.hgIncomingAct)
78 78
79 self.hgPullAct = E5Action(self.trUtf8('Pull changes'), 79 self.hgPullAct = E5Action(self.trUtf8('Pull changes'),
80 UI.PixmapCache.getIcon("vcsUpdate.png"), 80 UI.PixmapCache.getIcon("vcsUpdate.png"),
81 self.trUtf8('Pull changes'), 81 self.trUtf8('Pull changes'),
86 self.hgPullAct.setWhatsThis(self.trUtf8( 86 self.hgPullAct.setWhatsThis(self.trUtf8(
87 """<b>Pull changes</b>""" 87 """<b>Pull changes</b>"""
88 """<p>This pulls changes from a remote repository into the """ 88 """<p>This pulls changes from a remote repository into the """
89 """local repository.</p>""" 89 """local repository.</p>"""
90 )) 90 ))
91 self.hgPullAct.triggered.connect(self.__hgPull) 91 self.hgPullAct.triggered[()].connect(self.__hgPull)
92 self.actions.append(self.hgPullAct) 92 self.actions.append(self.hgPullAct)
93 93
94 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'), 94 self.vcsUpdateAct = E5Action(self.trUtf8('Update from repository'),
95 UI.PixmapCache.getIcon("vcsUpdate.png"), 95 UI.PixmapCache.getIcon("vcsUpdate.png"),
96 self.trUtf8('&Update from repository'), 0, 0, self, 96 self.trUtf8('&Update from repository'), 0, 0, self,
100 )) 100 ))
101 self.vcsUpdateAct.setWhatsThis(self.trUtf8( 101 self.vcsUpdateAct.setWhatsThis(self.trUtf8(
102 """<b>Update from repository</b>""" 102 """<b>Update from repository</b>"""
103 """<p>This updates the local project from the Mercurial repository.</p>""" 103 """<p>This updates the local project from the Mercurial repository.</p>"""
104 )) 104 ))
105 self.vcsUpdateAct.triggered.connect(self._vcsUpdate) 105 self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate)
106 self.actions.append(self.vcsUpdateAct) 106 self.actions.append(self.vcsUpdateAct)
107 107
108 self.vcsCommitAct = E5Action(self.trUtf8('Commit changes to repository'), 108 self.vcsCommitAct = E5Action(self.trUtf8('Commit changes to repository'),
109 UI.PixmapCache.getIcon("vcsCommit.png"), 109 UI.PixmapCache.getIcon("vcsCommit.png"),
110 self.trUtf8('&Commit changes to repository...'), 0, 0, self, 110 self.trUtf8('&Commit changes to repository...'), 0, 0, self,
115 self.vcsCommitAct.setWhatsThis(self.trUtf8( 115 self.vcsCommitAct.setWhatsThis(self.trUtf8(
116 """<b>Commit changes to repository</b>""" 116 """<b>Commit changes to repository</b>"""
117 """<p>This commits changes to the local project to the """ 117 """<p>This commits changes to the local project to the """
118 """Mercurial repository.</p>""" 118 """Mercurial repository.</p>"""
119 )) 119 ))
120 self.vcsCommitAct.triggered.connect(self._vcsCommit) 120 self.vcsCommitAct.triggered[()].connect(self._vcsCommit)
121 self.actions.append(self.vcsCommitAct) 121 self.actions.append(self.vcsCommitAct)
122 122
123 self.hgOutgoingAct = E5Action(self.trUtf8('Show outgoing log'), 123 self.hgOutgoingAct = E5Action(self.trUtf8('Show outgoing log'),
124 UI.PixmapCache.getIcon("vcsCommit.png"), 124 UI.PixmapCache.getIcon("vcsCommit.png"),
125 self.trUtf8('Show outgoing log'), 125 self.trUtf8('Show outgoing log'),
129 )) 129 ))
130 self.hgOutgoingAct.setWhatsThis(self.trUtf8( 130 self.hgOutgoingAct.setWhatsThis(self.trUtf8(
131 """<b>Show outgoing log</b>""" 131 """<b>Show outgoing log</b>"""
132 """<p>This shows the log of changes outgoing out of the repository.</p>""" 132 """<p>This shows the log of changes outgoing out of the repository.</p>"""
133 )) 133 ))
134 self.hgOutgoingAct.triggered.connect(self.__hgOutgoing) 134 self.hgOutgoingAct.triggered[()].connect(self.__hgOutgoing)
135 self.actions.append(self.hgOutgoingAct) 135 self.actions.append(self.hgOutgoingAct)
136 136
137 self.hgPushAct = E5Action(self.trUtf8('Push changes'), 137 self.hgPushAct = E5Action(self.trUtf8('Push changes'),
138 UI.PixmapCache.getIcon("vcsCommit.png"), 138 UI.PixmapCache.getIcon("vcsCommit.png"),
139 self.trUtf8('Push changes'), 139 self.trUtf8('Push changes'),
144 self.hgPushAct.setWhatsThis(self.trUtf8( 144 self.hgPushAct.setWhatsThis(self.trUtf8(
145 """<b>Push changes</b>""" 145 """<b>Push changes</b>"""
146 """<p>This pushes changes from the local repository to a """ 146 """<p>This pushes changes from the local repository to a """
147 """remote repository.</p>""" 147 """remote repository.</p>"""
148 )) 148 ))
149 self.hgPushAct.triggered.connect(self.__hgPush) 149 self.hgPushAct.triggered[()].connect(self.__hgPush)
150 self.actions.append(self.hgPushAct) 150 self.actions.append(self.hgPushAct)
151 151
152 self.hgPushForcedAct = E5Action(self.trUtf8('Push changes (force)'), 152 self.hgPushForcedAct = E5Action(self.trUtf8('Push changes (force)'),
153 UI.PixmapCache.getIcon("vcsCommit.png"), 153 UI.PixmapCache.getIcon("vcsCommit.png"),
154 self.trUtf8('Push changes (force)'), 154 self.trUtf8('Push changes (force)'),
159 self.hgPushForcedAct.setWhatsThis(self.trUtf8( 159 self.hgPushForcedAct.setWhatsThis(self.trUtf8(
160 """<b>Push changes (force)</b>""" 160 """<b>Push changes (force)</b>"""
161 """<p>This pushes changes from the local repository to a """ 161 """<p>This pushes changes from the local repository to a """
162 """remote repository using the 'force' option.</p>""" 162 """remote repository using the 'force' option.</p>"""
163 )) 163 ))
164 self.hgPushForcedAct.triggered.connect(self.__hgPushForced) 164 self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced)
165 self.actions.append(self.hgPushForcedAct) 165 self.actions.append(self.hgPushForcedAct)
166 166
167 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'), 167 self.vcsExportAct = E5Action(self.trUtf8('Export from repository'),
168 UI.PixmapCache.getIcon("vcsExport.png"), 168 UI.PixmapCache.getIcon("vcsExport.png"),
169 self.trUtf8('&Export from repository...'), 169 self.trUtf8('&Export from repository...'),
173 )) 173 ))
174 self.vcsExportAct.setWhatsThis(self.trUtf8( 174 self.vcsExportAct.setWhatsThis(self.trUtf8(
175 """<b>Export from repository</b>""" 175 """<b>Export from repository</b>"""
176 """<p>This exports a project from the repository.</p>""" 176 """<p>This exports a project from the repository.</p>"""
177 )) 177 ))
178 self.vcsExportAct.triggered.connect(self._vcsExport) 178 self.vcsExportAct.triggered[()].connect(self._vcsExport)
179 self.actions.append(self.vcsExportAct) 179 self.actions.append(self.vcsExportAct)
180 180
181 self.vcsAddAct = E5Action(self.trUtf8('Add to repository'), 181 self.vcsAddAct = E5Action(self.trUtf8('Add to repository'),
182 UI.PixmapCache.getIcon("vcsAdd.png"), 182 UI.PixmapCache.getIcon("vcsAdd.png"),
183 self.trUtf8('&Add to repository...'), 0, 0, self, 'mercurial_add') 183 self.trUtf8('&Add to repository...'), 0, 0, self, 'mercurial_add')
186 )) 186 ))
187 self.vcsAddAct.setWhatsThis(self.trUtf8( 187 self.vcsAddAct.setWhatsThis(self.trUtf8(
188 """<b>Add to repository</b>""" 188 """<b>Add to repository</b>"""
189 """<p>This adds (imports) the local project to the repository.</p>""" 189 """<p>This adds (imports) the local project to the repository.</p>"""
190 )) 190 ))
191 self.vcsAddAct.triggered.connect(self._vcsImport) 191 self.vcsAddAct.triggered[()].connect(self._vcsImport)
192 self.actions.append(self.vcsAddAct) 192 self.actions.append(self.vcsAddAct)
193 193
194 self.vcsRemoveAct = E5Action(self.trUtf8('Remove from repository (and disk)'), 194 self.vcsRemoveAct = E5Action(self.trUtf8('Remove from repository (and disk)'),
195 UI.PixmapCache.getIcon("vcsRemove.png"), 195 UI.PixmapCache.getIcon("vcsRemove.png"),
196 self.trUtf8('&Remove from repository (and disk)'), 196 self.trUtf8('&Remove from repository (and disk)'),
201 self.vcsRemoveAct.setWhatsThis(self.trUtf8( 201 self.vcsRemoveAct.setWhatsThis(self.trUtf8(
202 """<b>Remove from repository</b>""" 202 """<b>Remove from repository</b>"""
203 """<p>This removes the local project from the repository""" 203 """<p>This removes the local project from the repository"""
204 """ (and disk).</p>""" 204 """ (and disk).</p>"""
205 )) 205 ))
206 self.vcsRemoveAct.triggered.connect(self._vcsRemove) 206 self.vcsRemoveAct.triggered[()].connect(self._vcsRemove)
207 self.actions.append(self.vcsRemoveAct) 207 self.actions.append(self.vcsRemoveAct)
208 208
209 self.vcsLogAct = E5Action(self.trUtf8('Show log'), 209 self.vcsLogAct = E5Action(self.trUtf8('Show log'),
210 UI.PixmapCache.getIcon("vcsLog.png"), 210 UI.PixmapCache.getIcon("vcsLog.png"),
211 self.trUtf8('Show &log'), 211 self.trUtf8('Show &log'),
215 )) 215 ))
216 self.vcsLogAct.setWhatsThis(self.trUtf8( 216 self.vcsLogAct.setWhatsThis(self.trUtf8(
217 """<b>Show log</b>""" 217 """<b>Show log</b>"""
218 """<p>This shows the log of the local project.</p>""" 218 """<p>This shows the log of the local project.</p>"""
219 )) 219 ))
220 self.vcsLogAct.triggered.connect(self._vcsLog) 220 self.vcsLogAct.triggered[()].connect(self._vcsLog)
221 self.actions.append(self.vcsLogAct) 221 self.actions.append(self.vcsLogAct)
222 222
223 self.hgLogLimitedAct = E5Action(self.trUtf8('Show limited log'), 223 self.hgLogLimitedAct = E5Action(self.trUtf8('Show limited log'),
224 UI.PixmapCache.getIcon("vcsLog.png"), 224 UI.PixmapCache.getIcon("vcsLog.png"),
225 self.trUtf8('Show limited log'), 225 self.trUtf8('Show limited log'),
230 self.hgLogLimitedAct.setWhatsThis(self.trUtf8( 230 self.hgLogLimitedAct.setWhatsThis(self.trUtf8(
231 """<b>Show limited log</b>""" 231 """<b>Show limited log</b>"""
232 """<p>This shows the log of the local project limited to a selectable""" 232 """<p>This shows the log of the local project limited to a selectable"""
233 """ number of entries.</p>""" 233 """ number of entries.</p>"""
234 )) 234 ))
235 self.hgLogLimitedAct.triggered.connect(self.__hgLogLimited) 235 self.hgLogLimitedAct.triggered[()].connect(self.__hgLogLimited)
236 self.actions.append(self.hgLogLimitedAct) 236 self.actions.append(self.hgLogLimitedAct)
237 237
238 self.hgLogBrowserAct = E5Action(self.trUtf8('Show log browser'), 238 self.hgLogBrowserAct = E5Action(self.trUtf8('Show log browser'),
239 UI.PixmapCache.getIcon("vcsLog.png"), 239 UI.PixmapCache.getIcon("vcsLog.png"),
240 self.trUtf8('Show log browser'), 240 self.trUtf8('Show log browser'),
246 """<b>Show log browser</b>""" 246 """<b>Show log browser</b>"""
247 """<p>This shows a dialog to browse the log of the local project.""" 247 """<p>This shows a dialog to browse the log of the local project."""
248 """ A limited number of entries is shown first. More can be""" 248 """ A limited number of entries is shown first. More can be"""
249 """ retrieved later on.</p>""" 249 """ retrieved later on.</p>"""
250 )) 250 ))
251 self.hgLogBrowserAct.triggered.connect(self.__hgLogBrowser) 251 self.hgLogBrowserAct.triggered[()].connect(self.__hgLogBrowser)
252 self.actions.append(self.hgLogBrowserAct) 252 self.actions.append(self.hgLogBrowserAct)
253 253
254 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'), 254 self.vcsDiffAct = E5Action(self.trUtf8('Show difference'),
255 UI.PixmapCache.getIcon("vcsDiff.png"), 255 UI.PixmapCache.getIcon("vcsDiff.png"),
256 self.trUtf8('Show &difference'), 256 self.trUtf8('Show &difference'),
260 )) 260 ))
261 self.vcsDiffAct.setWhatsThis(self.trUtf8( 261 self.vcsDiffAct.setWhatsThis(self.trUtf8(
262 """<b>Show difference</b>""" 262 """<b>Show difference</b>"""
263 """<p>This shows the difference of the local project to the repository.</p>""" 263 """<p>This shows the difference of the local project to the repository.</p>"""
264 )) 264 ))
265 self.vcsDiffAct.triggered.connect(self._vcsDiff) 265 self.vcsDiffAct.triggered[()].connect(self._vcsDiff)
266 self.actions.append(self.vcsDiffAct) 266 self.actions.append(self.vcsDiffAct)
267 267
268 self.hgExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'), 268 self.hgExtDiffAct = E5Action(self.trUtf8('Show difference (extended)'),
269 UI.PixmapCache.getIcon("vcsDiff.png"), 269 UI.PixmapCache.getIcon("vcsDiff.png"),
270 self.trUtf8('Show difference (extended)'), 270 self.trUtf8('Show difference (extended)'),
274 )) 274 ))
275 self.hgExtDiffAct.setWhatsThis(self.trUtf8( 275 self.hgExtDiffAct.setWhatsThis(self.trUtf8(
276 """<b>Show difference (extended)</b>""" 276 """<b>Show difference (extended)</b>"""
277 """<p>This shows the difference of selectable revisions of the project.</p>""" 277 """<p>This shows the difference of selectable revisions of the project.</p>"""
278 )) 278 ))
279 self.hgExtDiffAct.triggered.connect(self.__hgExtendedDiff) 279 self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff)
280 self.actions.append(self.hgExtDiffAct) 280 self.actions.append(self.hgExtDiffAct)
281 281
282 self.vcsStatusAct = E5Action(self.trUtf8('Show status'), 282 self.vcsStatusAct = E5Action(self.trUtf8('Show status'),
283 UI.PixmapCache.getIcon("vcsStatus.png"), 283 UI.PixmapCache.getIcon("vcsStatus.png"),
284 self.trUtf8('Show &status'), 284 self.trUtf8('Show &status'),
288 )) 288 ))
289 self.vcsStatusAct.setWhatsThis(self.trUtf8( 289 self.vcsStatusAct.setWhatsThis(self.trUtf8(
290 """<b>Show status</b>""" 290 """<b>Show status</b>"""
291 """<p>This shows the status of the local project.</p>""" 291 """<p>This shows the status of the local project.</p>"""
292 )) 292 ))
293 self.vcsStatusAct.triggered.connect(self._vcsStatus) 293 self.vcsStatusAct.triggered[()].connect(self._vcsStatus)
294 self.actions.append(self.vcsStatusAct) 294 self.actions.append(self.vcsStatusAct)
295 295
296 self.hgHeadsAct = E5Action(self.trUtf8('Show heads'), 296 self.hgHeadsAct = E5Action(self.trUtf8('Show heads'),
297 self.trUtf8('Show heads'), 297 self.trUtf8('Show heads'),
298 0, 0, self, 'mercurial_heads') 298 0, 0, self, 'mercurial_heads')
301 )) 301 ))
302 self.hgHeadsAct.setWhatsThis(self.trUtf8( 302 self.hgHeadsAct.setWhatsThis(self.trUtf8(
303 """<b>Show heads</b>""" 303 """<b>Show heads</b>"""
304 """<p>This shows the heads of the repository.</p>""" 304 """<p>This shows the heads of the repository.</p>"""
305 )) 305 ))
306 self.hgHeadsAct.triggered.connect(self.__hgHeads) 306 self.hgHeadsAct.triggered[()].connect(self.__hgHeads)
307 self.actions.append(self.hgHeadsAct) 307 self.actions.append(self.hgHeadsAct)
308 308
309 self.hgParentsAct = E5Action(self.trUtf8('Show parents'), 309 self.hgParentsAct = E5Action(self.trUtf8('Show parents'),
310 self.trUtf8('Show parents'), 310 self.trUtf8('Show parents'),
311 0, 0, self, 'mercurial_parents') 311 0, 0, self, 'mercurial_parents')
314 )) 314 ))
315 self.hgParentsAct.setWhatsThis(self.trUtf8( 315 self.hgParentsAct.setWhatsThis(self.trUtf8(
316 """<b>Show parents</b>""" 316 """<b>Show parents</b>"""
317 """<p>This shows the parents of the repository.</p>""" 317 """<p>This shows the parents of the repository.</p>"""
318 )) 318 ))
319 self.hgParentsAct.triggered.connect(self.__hgParents) 319 self.hgParentsAct.triggered[()].connect(self.__hgParents)
320 self.actions.append(self.hgParentsAct) 320 self.actions.append(self.hgParentsAct)
321 321
322 self.hgTipAct = E5Action(self.trUtf8('Show tip'), 322 self.hgTipAct = E5Action(self.trUtf8('Show tip'),
323 self.trUtf8('Show tip'), 323 self.trUtf8('Show tip'),
324 0, 0, self, 'mercurial_tip') 324 0, 0, self, 'mercurial_tip')
327 )) 327 ))
328 self.hgTipAct.setWhatsThis(self.trUtf8( 328 self.hgTipAct.setWhatsThis(self.trUtf8(
329 """<b>Show tip</b>""" 329 """<b>Show tip</b>"""
330 """<p>This shows the tip of the repository.</p>""" 330 """<p>This shows the tip of the repository.</p>"""
331 )) 331 ))
332 self.hgTipAct.triggered.connect(self.__hgTip) 332 self.hgTipAct.triggered[()].connect(self.__hgTip)
333 self.actions.append(self.hgTipAct) 333 self.actions.append(self.hgTipAct)
334 334
335 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'), 335 self.vcsRevertAct = E5Action(self.trUtf8('Revert changes'),
336 UI.PixmapCache.getIcon("vcsRevert.png"), 336 UI.PixmapCache.getIcon("vcsRevert.png"),
337 self.trUtf8('Re&vert changes'), 337 self.trUtf8('Re&vert changes'),
341 )) 341 ))
342 self.vcsRevertAct.setWhatsThis(self.trUtf8( 342 self.vcsRevertAct.setWhatsThis(self.trUtf8(
343 """<b>Revert changes</b>""" 343 """<b>Revert changes</b>"""
344 """<p>This reverts all changes made to the local project.</p>""" 344 """<p>This reverts all changes made to the local project.</p>"""
345 )) 345 ))
346 self.vcsRevertAct.triggered.connect(self._vcsRevert) 346 self.vcsRevertAct.triggered[()].connect(self._vcsRevert)
347 self.actions.append(self.vcsRevertAct) 347 self.actions.append(self.vcsRevertAct)
348 348
349 self.vcsMergeAct = E5Action(self.trUtf8('Merge'), 349 self.vcsMergeAct = E5Action(self.trUtf8('Merge'),
350 UI.PixmapCache.getIcon("vcsMerge.png"), 350 UI.PixmapCache.getIcon("vcsMerge.png"),
351 self.trUtf8('Mer&ge changes...'), 351 self.trUtf8('Mer&ge changes...'),
355 )) 355 ))
356 self.vcsMergeAct.setWhatsThis(self.trUtf8( 356 self.vcsMergeAct.setWhatsThis(self.trUtf8(
357 """<b>Merge</b>""" 357 """<b>Merge</b>"""
358 """<p>This merges changes of a revision into the local project.</p>""" 358 """<p>This merges changes of a revision into the local project.</p>"""
359 )) 359 ))
360 self.vcsMergeAct.triggered.connect(self._vcsMerge) 360 self.vcsMergeAct.triggered[()].connect(self._vcsMerge)
361 self.actions.append(self.vcsMergeAct) 361 self.actions.append(self.vcsMergeAct)
362 362
363 self.vcsResolveAct = E5Action(self.trUtf8('Resolve conflicts'), 363 self.vcsResolveAct = E5Action(self.trUtf8('Resolve conflicts'),
364 self.trUtf8('Resolve con&flicts'), 364 self.trUtf8('Resolve con&flicts'),
365 0, 0, self, 'mercurial_resolve') 365 0, 0, self, 'mercurial_resolve')
368 )) 368 ))
369 self.vcsResolveAct.setWhatsThis(self.trUtf8( 369 self.vcsResolveAct.setWhatsThis(self.trUtf8(
370 """<b>Resolve conflicts</b>""" 370 """<b>Resolve conflicts</b>"""
371 """<p>This resolves all conflicts of the local project.</p>""" 371 """<p>This resolves all conflicts of the local project.</p>"""
372 )) 372 ))
373 self.vcsResolveAct.triggered.connect(self.__hgResolve) 373 self.vcsResolveAct.triggered[()].connect(self.__hgResolve)
374 self.actions.append(self.vcsResolveAct) 374 self.actions.append(self.vcsResolveAct)
375 375
376 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'), 376 self.vcsTagAct = E5Action(self.trUtf8('Tag in repository'),
377 UI.PixmapCache.getIcon("vcsTag.png"), 377 UI.PixmapCache.getIcon("vcsTag.png"),
378 self.trUtf8('&Tag in repository...'), 378 self.trUtf8('&Tag in repository...'),
382 )) 382 ))
383 self.vcsTagAct.setWhatsThis(self.trUtf8( 383 self.vcsTagAct.setWhatsThis(self.trUtf8(
384 """<b>Tag in repository</b>""" 384 """<b>Tag in repository</b>"""
385 """<p>This tags the local project in the repository.</p>""" 385 """<p>This tags the local project in the repository.</p>"""
386 )) 386 ))
387 self.vcsTagAct.triggered.connect(self._vcsTag) 387 self.vcsTagAct.triggered[()].connect(self._vcsTag)
388 self.actions.append(self.vcsTagAct) 388 self.actions.append(self.vcsTagAct)
389 389
390 self.hgTagListAct = E5Action(self.trUtf8('List tags'), 390 self.hgTagListAct = E5Action(self.trUtf8('List tags'),
391 self.trUtf8('List tags...'), 391 self.trUtf8('List tags...'),
392 0, 0, self, 'mercurial_list_tags') 392 0, 0, self, 'mercurial_list_tags')
395 )) 395 ))
396 self.hgTagListAct.setWhatsThis(self.trUtf8( 396 self.hgTagListAct.setWhatsThis(self.trUtf8(
397 """<b>List tags</b>""" 397 """<b>List tags</b>"""
398 """<p>This lists the tags of the project.</p>""" 398 """<p>This lists the tags of the project.</p>"""
399 )) 399 ))
400 self.hgTagListAct.triggered.connect(self.__hgTagList) 400 self.hgTagListAct.triggered[()].connect(self.__hgTagList)
401 self.actions.append(self.hgTagListAct) 401 self.actions.append(self.hgTagListAct)
402 402
403 self.hgBranchListAct = E5Action(self.trUtf8('List branches'), 403 self.hgBranchListAct = E5Action(self.trUtf8('List branches'),
404 self.trUtf8('List branches...'), 404 self.trUtf8('List branches...'),
405 0, 0, self, 'mercurial_list_branches') 405 0, 0, self, 'mercurial_list_branches')
408 )) 408 ))
409 self.hgBranchListAct.setWhatsThis(self.trUtf8( 409 self.hgBranchListAct.setWhatsThis(self.trUtf8(
410 """<b>List branches</b>""" 410 """<b>List branches</b>"""
411 """<p>This lists the branches of the project.</p>""" 411 """<p>This lists the branches of the project.</p>"""
412 )) 412 ))
413 self.hgBranchListAct.triggered.connect(self.__hgBranchList) 413 self.hgBranchListAct.triggered[()].connect(self.__hgBranchList)
414 self.actions.append(self.hgBranchListAct) 414 self.actions.append(self.hgBranchListAct)
415 415
416 self.hgBranchAct = E5Action(self.trUtf8('Create branch'), 416 self.hgBranchAct = E5Action(self.trUtf8('Create branch'),
417 UI.PixmapCache.getIcon("vcsBranch.png"), 417 UI.PixmapCache.getIcon("vcsBranch.png"),
418 self.trUtf8('Create &branch...'), 418 self.trUtf8('Create &branch...'),
423 self.hgBranchAct.setWhatsThis(self.trUtf8( 423 self.hgBranchAct.setWhatsThis(self.trUtf8(
424 """<b>Create branch</b>""" 424 """<b>Create branch</b>"""
425 """<p>This creates a new branch for the local project """ 425 """<p>This creates a new branch for the local project """
426 """in the repository.</p>""" 426 """in the repository.</p>"""
427 )) 427 ))
428 self.hgBranchAct.triggered.connect(self.__hgBranch) 428 self.hgBranchAct.triggered[()].connect(self.__hgBranch)
429 self.actions.append(self.hgBranchAct) 429 self.actions.append(self.hgBranchAct)
430 430
431 self.hgCloseBranchAct = E5Action(self.trUtf8('Close branch'), 431 self.hgCloseBranchAct = E5Action(self.trUtf8('Close branch'),
432 self.trUtf8('Close branch'), 432 self.trUtf8('Close branch'),
433 0, 0, self, 'mercurial_close_branch') 433 0, 0, self, 'mercurial_close_branch')
436 )) 436 ))
437 self.hgCloseBranchAct.setWhatsThis(self.trUtf8( 437 self.hgCloseBranchAct.setWhatsThis(self.trUtf8(
438 """<b>Close branch</b>""" 438 """<b>Close branch</b>"""
439 """<p>This closes the current branch of the local project.</p>""" 439 """<p>This closes the current branch of the local project.</p>"""
440 )) 440 ))
441 self.hgCloseBranchAct.triggered.connect(self.__hgCloseBranch) 441 self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch)
442 self.actions.append(self.hgCloseBranchAct) 442 self.actions.append(self.hgCloseBranchAct)
443 443
444 self.hgShowBranchAct = E5Action(self.trUtf8('Show current branch'), 444 self.hgShowBranchAct = E5Action(self.trUtf8('Show current branch'),
445 self.trUtf8('Show current branch'), 445 self.trUtf8('Show current branch'),
446 0, 0, self, 'mercurial_show_branch') 446 0, 0, self, 'mercurial_show_branch')
449 )) 449 ))
450 self.hgShowBranchAct.setWhatsThis(self.trUtf8( 450 self.hgShowBranchAct.setWhatsThis(self.trUtf8(
451 """<b>Show current branch</b>""" 451 """<b>Show current branch</b>"""
452 """<p>This shows the current branch of the project.</p>""" 452 """<p>This shows the current branch of the project.</p>"""
453 )) 453 ))
454 self.hgShowBranchAct.triggered.connect(self.__hgShowBranch) 454 self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch)
455 self.actions.append(self.hgShowBranchAct) 455 self.actions.append(self.hgShowBranchAct)
456 456
457 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'), 457 self.vcsSwitchAct = E5Action(self.trUtf8('Switch'),
458 UI.PixmapCache.getIcon("vcsSwitch.png"), 458 UI.PixmapCache.getIcon("vcsSwitch.png"),
459 self.trUtf8('S&witch...'), 459 self.trUtf8('S&witch...'),
463 )) 463 ))
464 self.vcsSwitchAct.setWhatsThis(self.trUtf8( 464 self.vcsSwitchAct.setWhatsThis(self.trUtf8(
465 """<b>Switch</b>""" 465 """<b>Switch</b>"""
466 """<p>This switches the working directory to another revision.</p>""" 466 """<p>This switches the working directory to another revision.</p>"""
467 )) 467 ))
468 self.vcsSwitchAct.triggered.connect(self._vcsSwitch) 468 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch)
469 self.actions.append(self.vcsSwitchAct) 469 self.actions.append(self.vcsSwitchAct)
470 470
471 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'), 471 self.vcsCleanupAct = E5Action(self.trUtf8('Cleanup'),
472 self.trUtf8('Cleanu&p'), 472 self.trUtf8('Cleanu&p'),
473 0, 0, self, 'mercurial_cleanup') 473 0, 0, self, 'mercurial_cleanup')
476 )) 476 ))
477 self.vcsCleanupAct.setWhatsThis(self.trUtf8( 477 self.vcsCleanupAct.setWhatsThis(self.trUtf8(
478 """<b>Cleanup</b>""" 478 """<b>Cleanup</b>"""
479 """<p>This performs a cleanup of the local project.</p>""" 479 """<p>This performs a cleanup of the local project.</p>"""
480 )) 480 ))
481 self.vcsCleanupAct.triggered.connect(self._vcsCleanup) 481 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup)
482 self.actions.append(self.vcsCleanupAct) 482 self.actions.append(self.vcsCleanupAct)
483 483
484 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'), 484 self.vcsCommandAct = E5Action(self.trUtf8('Execute command'),
485 self.trUtf8('E&xecute command...'), 485 self.trUtf8('E&xecute command...'),
486 0, 0, self, 'mercurial_command') 486 0, 0, self, 'mercurial_command')
489 )) 489 ))
490 self.vcsCommandAct.setWhatsThis(self.trUtf8( 490 self.vcsCommandAct.setWhatsThis(self.trUtf8(
491 """<b>Execute command</b>""" 491 """<b>Execute command</b>"""
492 """<p>This opens a dialog to enter an arbitrary Mercurial command.</p>""" 492 """<p>This opens a dialog to enter an arbitrary Mercurial command.</p>"""
493 )) 493 ))
494 self.vcsCommandAct.triggered.connect(self._vcsCommand) 494 self.vcsCommandAct.triggered[()].connect(self._vcsCommand)
495 self.actions.append(self.vcsCommandAct) 495 self.actions.append(self.vcsCommandAct)
496 496
497 self.vcsPropsAct = E5Action(self.trUtf8('Command options'), 497 self.vcsPropsAct = E5Action(self.trUtf8('Command options'),
498 self.trUtf8('Command &options...'),0,0,self, 498 self.trUtf8('Command &options...'),0,0,self,
499 'mercurial_options') 499 'mercurial_options')
500 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the Mercurial command options')) 500 self.vcsPropsAct.setStatusTip(self.trUtf8('Show the Mercurial command options'))
501 self.vcsPropsAct.setWhatsThis(self.trUtf8( 501 self.vcsPropsAct.setWhatsThis(self.trUtf8(
502 """<b>Command options...</b>""" 502 """<b>Command options...</b>"""
503 """<p>This shows a dialog to edit the Mercurial command options.</p>""" 503 """<p>This shows a dialog to edit the Mercurial command options.</p>"""
504 )) 504 ))
505 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) 505 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions)
506 self.actions.append(self.vcsPropsAct) 506 self.actions.append(self.vcsPropsAct)
507 507
508 self.hgConfigAct = E5Action(self.trUtf8('Configure'), 508 self.hgConfigAct = E5Action(self.trUtf8('Configure'),
509 self.trUtf8('Configure...'), 509 self.trUtf8('Configure...'),
510 0, 0, self, 'mercurial_configure') 510 0, 0, self, 'mercurial_configure')
513 )) 513 ))
514 self.hgConfigAct.setWhatsThis(self.trUtf8( 514 self.hgConfigAct.setWhatsThis(self.trUtf8(
515 """<b>Configure</b>""" 515 """<b>Configure</b>"""
516 """<p>Show the configuration dialog with the Mercurial page selected.</p>""" 516 """<p>Show the configuration dialog with the Mercurial page selected.</p>"""
517 )) 517 ))
518 self.hgConfigAct.triggered.connect(self.__hgConfigure) 518 self.hgConfigAct.triggered[()].connect(self.__hgConfigure)
519 self.actions.append(self.hgConfigAct) 519 self.actions.append(self.hgConfigAct)
520 520
521 self.hgRepoConfigAct = E5Action(self.trUtf8('Edit repository config'), 521 self.hgRepoConfigAct = E5Action(self.trUtf8('Edit repository config'),
522 self.trUtf8('Edit repository config...'), 522 self.trUtf8('Edit repository config...'),
523 0, 0, self, 'mercurial_repo_configure') 523 0, 0, self, 'mercurial_repo_configure')
526 )) 526 ))
527 self.hgRepoConfigAct.setWhatsThis(self.trUtf8( 527 self.hgRepoConfigAct.setWhatsThis(self.trUtf8(
528 """<b>Edit repository config</b>""" 528 """<b>Edit repository config</b>"""
529 """<p>Show an editor to edit the repository config file.</p>""" 529 """<p>Show an editor to edit the repository config file.</p>"""
530 )) 530 ))
531 self.hgRepoConfigAct.triggered.connect(self.__hgEditRepoConfig) 531 self.hgRepoConfigAct.triggered[()].connect(self.__hgEditRepoConfig)
532 self.actions.append(self.hgRepoConfigAct) 532 self.actions.append(self.hgRepoConfigAct)
533 533
534 self.hgShowConfigAct = E5Action(self.trUtf8('Show combined config settings'), 534 self.hgShowConfigAct = E5Action(self.trUtf8('Show combined config settings'),
535 self.trUtf8('Show combined config settings...'), 535 self.trUtf8('Show combined config settings...'),
536 0, 0, self, 'mercurial_show_config') 536 0, 0, self, 'mercurial_show_config')
539 )) 539 ))
540 self.hgShowConfigAct.setWhatsThis(self.trUtf8( 540 self.hgShowConfigAct.setWhatsThis(self.trUtf8(
541 """<b>Show combined config settings</b>""" 541 """<b>Show combined config settings</b>"""
542 """<p>This shows the combined config settings from all config files.</p>""" 542 """<p>This shows the combined config settings from all config files.</p>"""
543 )) 543 ))
544 self.hgShowConfigAct.triggered.connect(self.__hgShowConfig) 544 self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig)
545 self.actions.append(self.hgShowConfigAct) 545 self.actions.append(self.hgShowConfigAct)
546 546
547 self.hgShowPathsAct = E5Action(self.trUtf8('Show paths'), 547 self.hgShowPathsAct = E5Action(self.trUtf8('Show paths'),
548 self.trUtf8('Show paths...'), 548 self.trUtf8('Show paths...'),
549 0, 0, self, 'mercurial_show_paths') 549 0, 0, self, 'mercurial_show_paths')
552 )) 552 ))
553 self.hgShowPathsAct.setWhatsThis(self.trUtf8( 553 self.hgShowPathsAct.setWhatsThis(self.trUtf8(
554 """<b>Show paths</b>""" 554 """<b>Show paths</b>"""
555 """<p>This shows the aliases for remote repositories.</p>""" 555 """<p>This shows the aliases for remote repositories.</p>"""
556 )) 556 ))
557 self.hgShowPathsAct.triggered.connect(self.__hgShowPaths) 557 self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths)
558 self.actions.append(self.hgShowPathsAct) 558 self.actions.append(self.hgShowPathsAct)
559 559
560 self.hgVerifyAct = E5Action(self.trUtf8('Verify repository'), 560 self.hgVerifyAct = E5Action(self.trUtf8('Verify repository'),
561 self.trUtf8('Verify repository...'), 561 self.trUtf8('Verify repository...'),
562 0, 0, self, 'mercurial_verify') 562 0, 0, self, 'mercurial_verify')
565 )) 565 ))
566 self.hgVerifyAct.setWhatsThis(self.trUtf8( 566 self.hgVerifyAct.setWhatsThis(self.trUtf8(
567 """<b>Verify repository</b>""" 567 """<b>Verify repository</b>"""
568 """<p>This verifies the integrity of the repository.</p>""" 568 """<p>This verifies the integrity of the repository.</p>"""
569 )) 569 ))
570 self.hgVerifyAct.triggered.connect(self.__hgVerify) 570 self.hgVerifyAct.triggered[()].connect(self.__hgVerify)
571 self.actions.append(self.hgVerifyAct) 571 self.actions.append(self.hgVerifyAct)
572 572
573 self.hgRecoverAct = E5Action(self.trUtf8('Recover'), 573 self.hgRecoverAct = E5Action(self.trUtf8('Recover'),
574 self.trUtf8('Recover...'), 574 self.trUtf8('Recover...'),
575 0, 0, self, 'mercurial_recover') 575 0, 0, self, 'mercurial_recover')
578 )) 578 ))
579 self.hgRecoverAct.setWhatsThis(self.trUtf8( 579 self.hgRecoverAct.setWhatsThis(self.trUtf8(
580 """<b>Recover</b>""" 580 """<b>Recover</b>"""
581 """<p>This recovers from an interrupted transaction.</p>""" 581 """<p>This recovers from an interrupted transaction.</p>"""
582 )) 582 ))
583 self.hgRecoverAct.triggered.connect(self.__hgRecover) 583 self.hgRecoverAct.triggered[()].connect(self.__hgRecover)
584 self.actions.append(self.hgRecoverAct) 584 self.actions.append(self.hgRecoverAct)
585 585
586 self.hgIdentifyAct = E5Action(self.trUtf8('Identify'), 586 self.hgIdentifyAct = E5Action(self.trUtf8('Identify'),
587 self.trUtf8('Identify...'), 587 self.trUtf8('Identify...'),
588 0, 0, self, 'mercurial_identify') 588 0, 0, self, 'mercurial_identify')
591 )) 591 ))
592 self.hgIdentifyAct.setWhatsThis(self.trUtf8( 592 self.hgIdentifyAct.setWhatsThis(self.trUtf8(
593 """<b>Identify</b>""" 593 """<b>Identify</b>"""
594 """<p>This identifies the project directory.</p>""" 594 """<p>This identifies the project directory.</p>"""
595 )) 595 ))
596 self.hgIdentifyAct.triggered.connect(self.__hgIdentify) 596 self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify)
597 self.actions.append(self.hgIdentifyAct) 597 self.actions.append(self.hgIdentifyAct)
598 598
599 self.hgCreateIgnoreAct = E5Action(self.trUtf8('Create .hgignore'), 599 self.hgCreateIgnoreAct = E5Action(self.trUtf8('Create .hgignore'),
600 self.trUtf8('Create .hgignore'), 600 self.trUtf8('Create .hgignore'),
601 0, 0, self, 'mercurial_create ignore') 601 0, 0, self, 'mercurial_create ignore')
604 )) 604 ))
605 self.hgCreateIgnoreAct.setWhatsThis(self.trUtf8( 605 self.hgCreateIgnoreAct.setWhatsThis(self.trUtf8(
606 """<b>Create .hgignore</b>""" 606 """<b>Create .hgignore</b>"""
607 """<p>This creates a .hgignore file with default values.</p>""" 607 """<p>This creates a .hgignore file with default values.</p>"""
608 )) 608 ))
609 self.hgCreateIgnoreAct.triggered.connect(self.__hgCreateIgnore) 609 self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore)
610 self.actions.append(self.hgCreateIgnoreAct) 610 self.actions.append(self.hgCreateIgnoreAct)
611 611
612 self.hgBundleAct = E5Action(self.trUtf8('Create changegroup'), 612 self.hgBundleAct = E5Action(self.trUtf8('Create changegroup'),
613 self.trUtf8('Create changegroup...'), 613 self.trUtf8('Create changegroup...'),
614 0, 0, self, 'mercurial_bundle') 614 0, 0, self, 'mercurial_bundle')
618 self.hgBundleAct.setWhatsThis(self.trUtf8( 618 self.hgBundleAct.setWhatsThis(self.trUtf8(
619 """<b>Create changegroup</b>""" 619 """<b>Create changegroup</b>"""
620 """<p>This creates a changegroup file collecting selected changesets""" 620 """<p>This creates a changegroup file collecting selected changesets"""
621 """ (hg bundle).</p>""" 621 """ (hg bundle).</p>"""
622 )) 622 ))
623 self.hgBundleAct.triggered.connect(self.__hgBundle) 623 self.hgBundleAct.triggered[()].connect(self.__hgBundle)
624 self.actions.append(self.hgBundleAct) 624 self.actions.append(self.hgBundleAct)
625 625
626 self.hgPreviewBundleAct = E5Action(self.trUtf8('Preview changegroup'), 626 self.hgPreviewBundleAct = E5Action(self.trUtf8('Preview changegroup'),
627 self.trUtf8('Preview changegroup...'), 627 self.trUtf8('Preview changegroup...'),
628 0, 0, self, 'mercurial_preview_bundle') 628 0, 0, self, 'mercurial_preview_bundle')
632 self.hgPreviewBundleAct.setWhatsThis(self.trUtf8( 632 self.hgPreviewBundleAct.setWhatsThis(self.trUtf8(
633 """<b>Preview changegroup</b>""" 633 """<b>Preview changegroup</b>"""
634 """<p>This previews a changegroup file containing a collection of""" 634 """<p>This previews a changegroup file containing a collection of"""
635 """ changesets.</p>""" 635 """ changesets.</p>"""
636 )) 636 ))
637 self.hgPreviewBundleAct.triggered.connect(self.__hgPreviewBundle) 637 self.hgPreviewBundleAct.triggered[()].connect(self.__hgPreviewBundle)
638 self.actions.append(self.hgPreviewBundleAct) 638 self.actions.append(self.hgPreviewBundleAct)
639 639
640 self.hgIdentifyBundleAct = E5Action(self.trUtf8('Identify changegroup'), 640 self.hgIdentifyBundleAct = E5Action(self.trUtf8('Identify changegroup'),
641 self.trUtf8('Identify changegroup...'), 641 self.trUtf8('Identify changegroup...'),
642 0, 0, self, 'mercurial_identify_bundle') 642 0, 0, self, 'mercurial_identify_bundle')
646 self.hgIdentifyBundleAct.setWhatsThis(self.trUtf8( 646 self.hgIdentifyBundleAct.setWhatsThis(self.trUtf8(
647 """<b>Identify changegroup</b>""" 647 """<b>Identify changegroup</b>"""
648 """<p>This identifies a changegroup file containing a collection of""" 648 """<p>This identifies a changegroup file containing a collection of"""
649 """ changesets.</p>""" 649 """ changesets.</p>"""
650 )) 650 ))
651 self.hgIdentifyBundleAct.triggered.connect(self.__hgIdentifyBundle) 651 self.hgIdentifyBundleAct.triggered[()].connect(self.__hgIdentifyBundle)
652 self.actions.append(self.hgIdentifyBundleAct) 652 self.actions.append(self.hgIdentifyBundleAct)
653 653
654 self.hgUnbundleAct = E5Action(self.trUtf8('Apply changegroups'), 654 self.hgUnbundleAct = E5Action(self.trUtf8('Apply changegroups'),
655 self.trUtf8('Apply changegroups...'), 655 self.trUtf8('Apply changegroups...'),
656 0, 0, self, 'mercurial_unbundle') 656 0, 0, self, 'mercurial_unbundle')
660 self.hgUnbundleAct.setWhatsThis(self.trUtf8( 660 self.hgUnbundleAct.setWhatsThis(self.trUtf8(
661 """<b>Apply changegroups</b>""" 661 """<b>Apply changegroups</b>"""
662 """<p>This applies one or several changegroup files generated by""" 662 """<p>This applies one or several changegroup files generated by"""
663 """ the 'Create changegroup' action (hg unbundle).</p>""" 663 """ the 'Create changegroup' action (hg unbundle).</p>"""
664 )) 664 ))
665 self.hgUnbundleAct.triggered.connect(self.__hgUnbundle) 665 self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle)
666 self.actions.append(self.hgUnbundleAct) 666 self.actions.append(self.hgUnbundleAct)
667 667
668 self.hgBisectGoodAct = E5Action(self.trUtf8('Mark as "good"'), 668 self.hgBisectGoodAct = E5Action(self.trUtf8('Mark as "good"'),
669 self.trUtf8('Mark as "good"...'), 669 self.trUtf8('Mark as "good"...'),
670 0, 0, self, 'mercurial_bisect_good') 670 0, 0, self, 'mercurial_bisect_good')
673 )) 673 ))
674 self.hgBisectGoodAct.setWhatsThis(self.trUtf8( 674 self.hgBisectGoodAct.setWhatsThis(self.trUtf8(
675 """<b>Mark as good</b>""" 675 """<b>Mark as good</b>"""
676 """<p>This marks a selectable changeset as good.</p>""" 676 """<p>This marks a selectable changeset as good.</p>"""
677 )) 677 ))
678 self.hgBisectGoodAct.triggered.connect(self.__hgBisectGood) 678 self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood)
679 self.actions.append(self.hgBisectGoodAct) 679 self.actions.append(self.hgBisectGoodAct)
680 680
681 self.hgBisectBadAct = E5Action(self.trUtf8('Mark as "bad"'), 681 self.hgBisectBadAct = E5Action(self.trUtf8('Mark as "bad"'),
682 self.trUtf8('Mark as "bad"...'), 682 self.trUtf8('Mark as "bad"...'),
683 0, 0, self, 'mercurial_bisect_bad') 683 0, 0, self, 'mercurial_bisect_bad')
686 )) 686 ))
687 self.hgBisectBadAct.setWhatsThis(self.trUtf8( 687 self.hgBisectBadAct.setWhatsThis(self.trUtf8(
688 """<b>Mark as bad</b>""" 688 """<b>Mark as bad</b>"""
689 """<p>This marks a selectable changeset as bad.</p>""" 689 """<p>This marks a selectable changeset as bad.</p>"""
690 )) 690 ))
691 self.hgBisectBadAct.triggered.connect(self.__hgBisectBad) 691 self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad)
692 self.actions.append(self.hgBisectBadAct) 692 self.actions.append(self.hgBisectBadAct)
693 693
694 self.hgBisectSkipAct = E5Action(self.trUtf8('Skip'), 694 self.hgBisectSkipAct = E5Action(self.trUtf8('Skip'),
695 self.trUtf8('Skip'), 695 self.trUtf8('Skip'),
696 0, 0, self, 'mercurial_bisect_skip') 696 0, 0, self, 'mercurial_bisect_skip')
699 )) 699 ))
700 self.hgBisectSkipAct.setWhatsThis(self.trUtf8( 700 self.hgBisectSkipAct.setWhatsThis(self.trUtf8(
701 """<b>Skip</b>""" 701 """<b>Skip</b>"""
702 """<p>This skips the current changeset.</p>""" 702 """<p>This skips the current changeset.</p>"""
703 )) 703 ))
704 self.hgBisectSkipAct.triggered.connect(self.__hgBisectSkip) 704 self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip)
705 self.actions.append(self.hgBisectSkipAct) 705 self.actions.append(self.hgBisectSkipAct)
706 706
707 self.hgBisectResetAct = E5Action(self.trUtf8('Reset'), 707 self.hgBisectResetAct = E5Action(self.trUtf8('Reset'),
708 self.trUtf8('Reset'), 708 self.trUtf8('Reset'),
709 0, 0, self, 'mercurial_bisect_reset') 709 0, 0, self, 'mercurial_bisect_reset')
712 )) 712 ))
713 self.hgBisectResetAct.setWhatsThis(self.trUtf8( 713 self.hgBisectResetAct.setWhatsThis(self.trUtf8(
714 """<b>Reset</b>""" 714 """<b>Reset</b>"""
715 """<p>This resets the bisect search data.</p>""" 715 """<p>This resets the bisect search data.</p>"""
716 )) 716 ))
717 self.hgBisectResetAct.triggered.connect(self.__hgBisectReset) 717 self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset)
718 self.actions.append(self.hgBisectResetAct) 718 self.actions.append(self.hgBisectResetAct)
719 719
720 self.hgBackoutAct = E5Action(self.trUtf8('Back out changeset'), 720 self.hgBackoutAct = E5Action(self.trUtf8('Back out changeset'),
721 self.trUtf8('Back out changeset'), 721 self.trUtf8('Back out changeset'),
722 0, 0, self, 'mercurial_backout') 722 0, 0, self, 'mercurial_backout')
725 )) 725 ))
726 self.hgBackoutAct.setWhatsThis(self.trUtf8( 726 self.hgBackoutAct.setWhatsThis(self.trUtf8(
727 """<b>Back out changeset</b>""" 727 """<b>Back out changeset</b>"""
728 """<p>This backs out changes of an earlier changeset.</p>""" 728 """<p>This backs out changes of an earlier changeset.</p>"""
729 )) 729 ))
730 self.hgBackoutAct.triggered.connect(self.__hgBackout) 730 self.hgBackoutAct.triggered[()].connect(self.__hgBackout)
731 self.actions.append(self.hgBackoutAct) 731 self.actions.append(self.hgBackoutAct)
732 732
733 self.hgServeAct = E5Action(self.trUtf8('Serve project repository'), 733 self.hgServeAct = E5Action(self.trUtf8('Serve project repository'),
734 self.trUtf8('Serve project repository...'), 734 self.trUtf8('Serve project repository...'),
735 0, 0, self, 'mercurial_serve') 735 0, 0, self, 'mercurial_serve')
738 )) 738 ))
739 self.hgServeAct.setWhatsThis(self.trUtf8( 739 self.hgServeAct.setWhatsThis(self.trUtf8(
740 """<b>Serve project repository</b>""" 740 """<b>Serve project repository</b>"""
741 """<p>This serves the project repository.</p>""" 741 """<p>This serves the project repository.</p>"""
742 )) 742 ))
743 self.hgServeAct.triggered.connect(self.__hgServe) 743 self.hgServeAct.triggered[()].connect(self.__hgServe)
744 self.actions.append(self.hgServeAct) 744 self.actions.append(self.hgServeAct)
745 745
746 def initMenu(self, menu): 746 def initMenu(self, menu):
747 """ 747 """
748 Public method to generate the VCS menu. 748 Public method to generate the VCS menu.

eric ide

mercurial