Plugins/VcsPlugins/vcsMercurial/ProjectHelper.py

changeset 3190
a9a94491c4fd
parent 3160
209a07d7e401
child 3277
b7d9c75223e3
equal deleted inserted replaced
3189:9a21c547de5f 3190:a9a94491c4fd
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( 99 self.vcsNewAct = E5Action(
100 self.trUtf8('New from repository'), 100 self.tr('New from repository'),
101 UI.PixmapCache.getIcon("vcsCheckout.png"), 101 UI.PixmapCache.getIcon("vcsCheckout.png"),
102 self.trUtf8('&New from repository...'), 0, 0, 102 self.tr('&New from repository...'), 0, 0,
103 self, 'mercurial_new') 103 self, 'mercurial_new')
104 self.vcsNewAct.setStatusTip(self.trUtf8( 104 self.vcsNewAct.setStatusTip(self.tr(
105 'Create (clone) a new project from a Mercurial repository' 105 'Create (clone) a new project from a Mercurial repository'
106 )) 106 ))
107 self.vcsNewAct.setWhatsThis(self.trUtf8( 107 self.vcsNewAct.setWhatsThis(self.tr(
108 """<b>New from repository</b>""" 108 """<b>New from repository</b>"""
109 """<p>This creates (clones) a new local project from """ 109 """<p>This creates (clones) a new local project from """
110 """a Mercurial repository.</p>""" 110 """a Mercurial repository.</p>"""
111 )) 111 ))
112 self.vcsNewAct.triggered[()].connect(self._vcsCheckout) 112 self.vcsNewAct.triggered[()].connect(self._vcsCheckout)
113 self.actions.append(self.vcsNewAct) 113 self.actions.append(self.vcsNewAct)
114 114
115 self.hgIncomingAct = E5Action( 115 self.hgIncomingAct = E5Action(
116 self.trUtf8('Show incoming log'), 116 self.tr('Show incoming log'),
117 UI.PixmapCache.getIcon("vcsUpdate.png"), 117 UI.PixmapCache.getIcon("vcsUpdate.png"),
118 self.trUtf8('Show incoming log'), 118 self.tr('Show incoming log'),
119 0, 0, self, 'mercurial_incoming') 119 0, 0, self, 'mercurial_incoming')
120 self.hgIncomingAct.setStatusTip(self.trUtf8( 120 self.hgIncomingAct.setStatusTip(self.tr(
121 'Show the log of incoming changes' 121 'Show the log of incoming changes'
122 )) 122 ))
123 self.hgIncomingAct.setWhatsThis(self.trUtf8( 123 self.hgIncomingAct.setWhatsThis(self.tr(
124 """<b>Show incoming log</b>""" 124 """<b>Show incoming log</b>"""
125 """<p>This shows the log of changes coming into the""" 125 """<p>This shows the log of changes coming into the"""
126 """ repository.</p>""" 126 """ repository.</p>"""
127 )) 127 ))
128 self.hgIncomingAct.triggered[()].connect(self.__hgIncoming) 128 self.hgIncomingAct.triggered[()].connect(self.__hgIncoming)
129 self.actions.append(self.hgIncomingAct) 129 self.actions.append(self.hgIncomingAct)
130 130
131 self.hgPullAct = E5Action( 131 self.hgPullAct = E5Action(
132 self.trUtf8('Pull changes'), 132 self.tr('Pull changes'),
133 UI.PixmapCache.getIcon("vcsUpdate.png"), 133 UI.PixmapCache.getIcon("vcsUpdate.png"),
134 self.trUtf8('Pull changes'), 134 self.tr('Pull changes'),
135 0, 0, self, 'mercurial_pull') 135 0, 0, self, 'mercurial_pull')
136 self.hgPullAct.setStatusTip(self.trUtf8( 136 self.hgPullAct.setStatusTip(self.tr(
137 'Pull changes from a remote repository' 137 'Pull changes from a remote repository'
138 )) 138 ))
139 self.hgPullAct.setWhatsThis(self.trUtf8( 139 self.hgPullAct.setWhatsThis(self.tr(
140 """<b>Pull changes</b>""" 140 """<b>Pull changes</b>"""
141 """<p>This pulls changes from a remote repository into the """ 141 """<p>This pulls changes from a remote repository into the """
142 """local repository.</p>""" 142 """local repository.</p>"""
143 )) 143 ))
144 self.hgPullAct.triggered[()].connect(self.__hgPull) 144 self.hgPullAct.triggered[()].connect(self.__hgPull)
145 self.actions.append(self.hgPullAct) 145 self.actions.append(self.hgPullAct)
146 146
147 self.vcsUpdateAct = E5Action( 147 self.vcsUpdateAct = E5Action(
148 self.trUtf8('Update from repository'), 148 self.tr('Update from repository'),
149 UI.PixmapCache.getIcon("vcsUpdate.png"), 149 UI.PixmapCache.getIcon("vcsUpdate.png"),
150 self.trUtf8('&Update from repository'), 0, 0, self, 150 self.tr('&Update from repository'), 0, 0, self,
151 'mercurial_update') 151 'mercurial_update')
152 self.vcsUpdateAct.setStatusTip(self.trUtf8( 152 self.vcsUpdateAct.setStatusTip(self.tr(
153 'Update the local project from the Mercurial repository' 153 'Update the local project from the Mercurial repository'
154 )) 154 ))
155 self.vcsUpdateAct.setWhatsThis(self.trUtf8( 155 self.vcsUpdateAct.setWhatsThis(self.tr(
156 """<b>Update from repository</b>""" 156 """<b>Update from repository</b>"""
157 """<p>This updates the local project from the Mercurial""" 157 """<p>This updates the local project from the Mercurial"""
158 """ repository.</p>""" 158 """ repository.</p>"""
159 )) 159 ))
160 self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate) 160 self.vcsUpdateAct.triggered[()].connect(self._vcsUpdate)
161 self.actions.append(self.vcsUpdateAct) 161 self.actions.append(self.vcsUpdateAct)
162 162
163 self.vcsCommitAct = E5Action( 163 self.vcsCommitAct = E5Action(
164 self.trUtf8('Commit changes to repository'), 164 self.tr('Commit changes to repository'),
165 UI.PixmapCache.getIcon("vcsCommit.png"), 165 UI.PixmapCache.getIcon("vcsCommit.png"),
166 self.trUtf8('&Commit changes to repository...'), 0, 0, self, 166 self.tr('&Commit changes to repository...'), 0, 0, self,
167 'mercurial_commit') 167 'mercurial_commit')
168 self.vcsCommitAct.setStatusTip(self.trUtf8( 168 self.vcsCommitAct.setStatusTip(self.tr(
169 'Commit changes to the local project to the Mercurial repository' 169 'Commit changes to the local project to the Mercurial repository'
170 )) 170 ))
171 self.vcsCommitAct.setWhatsThis(self.trUtf8( 171 self.vcsCommitAct.setWhatsThis(self.tr(
172 """<b>Commit changes to repository</b>""" 172 """<b>Commit changes to repository</b>"""
173 """<p>This commits changes to the local project to the """ 173 """<p>This commits changes to the local project to the """
174 """Mercurial repository.</p>""" 174 """Mercurial repository.</p>"""
175 )) 175 ))
176 self.vcsCommitAct.triggered[()].connect(self._vcsCommit) 176 self.vcsCommitAct.triggered[()].connect(self._vcsCommit)
177 self.actions.append(self.vcsCommitAct) 177 self.actions.append(self.vcsCommitAct)
178 178
179 self.hgOutgoingAct = E5Action( 179 self.hgOutgoingAct = E5Action(
180 self.trUtf8('Show outgoing log'), 180 self.tr('Show outgoing log'),
181 UI.PixmapCache.getIcon("vcsCommit.png"), 181 UI.PixmapCache.getIcon("vcsCommit.png"),
182 self.trUtf8('Show outgoing log'), 182 self.tr('Show outgoing log'),
183 0, 0, self, 'mercurial_outgoing') 183 0, 0, self, 'mercurial_outgoing')
184 self.hgOutgoingAct.setStatusTip(self.trUtf8( 184 self.hgOutgoingAct.setStatusTip(self.tr(
185 'Show the log of outgoing changes' 185 'Show the log of outgoing changes'
186 )) 186 ))
187 self.hgOutgoingAct.setWhatsThis(self.trUtf8( 187 self.hgOutgoingAct.setWhatsThis(self.tr(
188 """<b>Show outgoing log</b>""" 188 """<b>Show outgoing log</b>"""
189 """<p>This shows the log of changes outgoing out of the""" 189 """<p>This shows the log of changes outgoing out of the"""
190 """ repository.</p>""" 190 """ repository.</p>"""
191 )) 191 ))
192 self.hgOutgoingAct.triggered[()].connect(self.__hgOutgoing) 192 self.hgOutgoingAct.triggered[()].connect(self.__hgOutgoing)
193 self.actions.append(self.hgOutgoingAct) 193 self.actions.append(self.hgOutgoingAct)
194 194
195 self.hgPushAct = E5Action( 195 self.hgPushAct = E5Action(
196 self.trUtf8('Push changes'), 196 self.tr('Push changes'),
197 UI.PixmapCache.getIcon("vcsCommit.png"), 197 UI.PixmapCache.getIcon("vcsCommit.png"),
198 self.trUtf8('Push changes'), 198 self.tr('Push changes'),
199 0, 0, self, 'mercurial_push') 199 0, 0, self, 'mercurial_push')
200 self.hgPushAct.setStatusTip(self.trUtf8( 200 self.hgPushAct.setStatusTip(self.tr(
201 'Push changes to a remote repository' 201 'Push changes to a remote repository'
202 )) 202 ))
203 self.hgPushAct.setWhatsThis(self.trUtf8( 203 self.hgPushAct.setWhatsThis(self.tr(
204 """<b>Push changes</b>""" 204 """<b>Push changes</b>"""
205 """<p>This pushes changes from the local repository to a """ 205 """<p>This pushes changes from the local repository to a """
206 """remote repository.</p>""" 206 """remote repository.</p>"""
207 )) 207 ))
208 self.hgPushAct.triggered[()].connect(self.__hgPush) 208 self.hgPushAct.triggered[()].connect(self.__hgPush)
209 self.actions.append(self.hgPushAct) 209 self.actions.append(self.hgPushAct)
210 210
211 self.hgPushForcedAct = E5Action( 211 self.hgPushForcedAct = E5Action(
212 self.trUtf8('Push changes (force)'), 212 self.tr('Push changes (force)'),
213 UI.PixmapCache.getIcon("vcsCommit.png"), 213 UI.PixmapCache.getIcon("vcsCommit.png"),
214 self.trUtf8('Push changes (force)'), 214 self.tr('Push changes (force)'),
215 0, 0, self, 'mercurial_push_forced') 215 0, 0, self, 'mercurial_push_forced')
216 self.hgPushForcedAct.setStatusTip(self.trUtf8( 216 self.hgPushForcedAct.setStatusTip(self.tr(
217 'Push changes to a remote repository with force option' 217 'Push changes to a remote repository with force option'
218 )) 218 ))
219 self.hgPushForcedAct.setWhatsThis(self.trUtf8( 219 self.hgPushForcedAct.setWhatsThis(self.tr(
220 """<b>Push changes (force)</b>""" 220 """<b>Push changes (force)</b>"""
221 """<p>This pushes changes from the local repository to a """ 221 """<p>This pushes changes from the local repository to a """
222 """remote repository using the 'force' option.</p>""" 222 """remote repository using the 'force' option.</p>"""
223 )) 223 ))
224 self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced) 224 self.hgPushForcedAct.triggered[()].connect(self.__hgPushForced)
225 self.actions.append(self.hgPushForcedAct) 225 self.actions.append(self.hgPushForcedAct)
226 226
227 self.vcsExportAct = E5Action( 227 self.vcsExportAct = E5Action(
228 self.trUtf8('Export from repository'), 228 self.tr('Export from repository'),
229 UI.PixmapCache.getIcon("vcsExport.png"), 229 UI.PixmapCache.getIcon("vcsExport.png"),
230 self.trUtf8('&Export from repository...'), 230 self.tr('&Export from repository...'),
231 0, 0, self, 'mercurial_export_repo') 231 0, 0, self, 'mercurial_export_repo')
232 self.vcsExportAct.setStatusTip(self.trUtf8( 232 self.vcsExportAct.setStatusTip(self.tr(
233 'Export a project from the repository' 233 'Export a project from the repository'
234 )) 234 ))
235 self.vcsExportAct.setWhatsThis(self.trUtf8( 235 self.vcsExportAct.setWhatsThis(self.tr(
236 """<b>Export from repository</b>""" 236 """<b>Export from repository</b>"""
237 """<p>This exports a project from the repository.</p>""" 237 """<p>This exports a project from the repository.</p>"""
238 )) 238 ))
239 self.vcsExportAct.triggered[()].connect(self._vcsExport) 239 self.vcsExportAct.triggered[()].connect(self._vcsExport)
240 self.actions.append(self.vcsExportAct) 240 self.actions.append(self.vcsExportAct)
241 241
242 self.vcsLogAct = E5Action( 242 self.vcsLogAct = E5Action(
243 self.trUtf8('Show log'), 243 self.tr('Show log'),
244 UI.PixmapCache.getIcon("vcsLog.png"), 244 UI.PixmapCache.getIcon("vcsLog.png"),
245 self.trUtf8('Show &log'), 245 self.tr('Show &log'),
246 0, 0, self, 'mercurial_log') 246 0, 0, self, 'mercurial_log')
247 self.vcsLogAct.setStatusTip(self.trUtf8( 247 self.vcsLogAct.setStatusTip(self.tr(
248 'Show the log of the local project' 248 'Show the log of the local project'
249 )) 249 ))
250 self.vcsLogAct.setWhatsThis(self.trUtf8( 250 self.vcsLogAct.setWhatsThis(self.tr(
251 """<b>Show log</b>""" 251 """<b>Show log</b>"""
252 """<p>This shows the log of the local project.</p>""" 252 """<p>This shows the log of the local project.</p>"""
253 )) 253 ))
254 self.vcsLogAct.triggered[()].connect(self._vcsLog) 254 self.vcsLogAct.triggered[()].connect(self._vcsLog)
255 self.actions.append(self.vcsLogAct) 255 self.actions.append(self.vcsLogAct)
256 256
257 self.hgLogBrowserAct = E5Action( 257 self.hgLogBrowserAct = E5Action(
258 self.trUtf8('Show log browser'), 258 self.tr('Show log browser'),
259 UI.PixmapCache.getIcon("vcsLog.png"), 259 UI.PixmapCache.getIcon("vcsLog.png"),
260 self.trUtf8('Show log browser'), 260 self.tr('Show log browser'),
261 0, 0, self, 'mercurial_log_browser') 261 0, 0, self, 'mercurial_log_browser')
262 self.hgLogBrowserAct.setStatusTip(self.trUtf8( 262 self.hgLogBrowserAct.setStatusTip(self.tr(
263 'Show a dialog to browse the log of the local project' 263 'Show a dialog to browse the log of the local project'
264 )) 264 ))
265 self.hgLogBrowserAct.setWhatsThis(self.trUtf8( 265 self.hgLogBrowserAct.setWhatsThis(self.tr(
266 """<b>Show log browser</b>""" 266 """<b>Show log browser</b>"""
267 """<p>This shows a dialog to browse the log of the local""" 267 """<p>This shows a dialog to browse the log of the local"""
268 """ project. A limited number of entries is shown first.""" 268 """ project. A limited number of entries is shown first."""
269 """ More can be retrieved later on.</p>""" 269 """ More can be retrieved later on.</p>"""
270 )) 270 ))
271 self.hgLogBrowserAct.triggered[()].connect(self.__hgLogBrowser) 271 self.hgLogBrowserAct.triggered[()].connect(self.__hgLogBrowser)
272 self.actions.append(self.hgLogBrowserAct) 272 self.actions.append(self.hgLogBrowserAct)
273 273
274 self.vcsDiffAct = E5Action( 274 self.vcsDiffAct = E5Action(
275 self.trUtf8('Show difference'), 275 self.tr('Show difference'),
276 UI.PixmapCache.getIcon("vcsDiff.png"), 276 UI.PixmapCache.getIcon("vcsDiff.png"),
277 self.trUtf8('Show &difference'), 277 self.tr('Show &difference'),
278 0, 0, self, 'mercurial_diff') 278 0, 0, self, 'mercurial_diff')
279 self.vcsDiffAct.setStatusTip(self.trUtf8( 279 self.vcsDiffAct.setStatusTip(self.tr(
280 'Show the difference of the local project to the repository' 280 'Show the difference of the local project to the repository'
281 )) 281 ))
282 self.vcsDiffAct.setWhatsThis(self.trUtf8( 282 self.vcsDiffAct.setWhatsThis(self.tr(
283 """<b>Show difference</b>""" 283 """<b>Show difference</b>"""
284 """<p>This shows the difference of the local project to the""" 284 """<p>This shows the difference of the local project to the"""
285 """ repository.</p>""" 285 """ repository.</p>"""
286 )) 286 ))
287 self.vcsDiffAct.triggered[()].connect(self._vcsDiff) 287 self.vcsDiffAct.triggered[()].connect(self._vcsDiff)
288 self.actions.append(self.vcsDiffAct) 288 self.actions.append(self.vcsDiffAct)
289 289
290 self.hgExtDiffAct = E5Action( 290 self.hgExtDiffAct = E5Action(
291 self.trUtf8('Show difference (extended)'), 291 self.tr('Show difference (extended)'),
292 UI.PixmapCache.getIcon("vcsDiff.png"), 292 UI.PixmapCache.getIcon("vcsDiff.png"),
293 self.trUtf8('Show difference (extended)'), 293 self.tr('Show difference (extended)'),
294 0, 0, self, 'mercurial_extendeddiff') 294 0, 0, self, 'mercurial_extendeddiff')
295 self.hgExtDiffAct.setStatusTip(self.trUtf8( 295 self.hgExtDiffAct.setStatusTip(self.tr(
296 'Show the difference of revisions of the project to the repository' 296 'Show the difference of revisions of the project to the repository'
297 )) 297 ))
298 self.hgExtDiffAct.setWhatsThis(self.trUtf8( 298 self.hgExtDiffAct.setWhatsThis(self.tr(
299 """<b>Show difference (extended)</b>""" 299 """<b>Show difference (extended)</b>"""
300 """<p>This shows the difference of selectable revisions of the""" 300 """<p>This shows the difference of selectable revisions of the"""
301 """ project.</p>""" 301 """ project.</p>"""
302 )) 302 ))
303 self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff) 303 self.hgExtDiffAct.triggered[()].connect(self.__hgExtendedDiff)
304 self.actions.append(self.hgExtDiffAct) 304 self.actions.append(self.hgExtDiffAct)
305 305
306 self.vcsStatusAct = E5Action( 306 self.vcsStatusAct = E5Action(
307 self.trUtf8('Show status'), 307 self.tr('Show status'),
308 UI.PixmapCache.getIcon("vcsStatus.png"), 308 UI.PixmapCache.getIcon("vcsStatus.png"),
309 self.trUtf8('Show &status...'), 309 self.tr('Show &status...'),
310 0, 0, self, 'mercurial_status') 310 0, 0, self, 'mercurial_status')
311 self.vcsStatusAct.setStatusTip(self.trUtf8( 311 self.vcsStatusAct.setStatusTip(self.tr(
312 'Show the status of the local project' 312 'Show the status of the local project'
313 )) 313 ))
314 self.vcsStatusAct.setWhatsThis(self.trUtf8( 314 self.vcsStatusAct.setWhatsThis(self.tr(
315 """<b>Show status</b>""" 315 """<b>Show status</b>"""
316 """<p>This shows the status of the local project.</p>""" 316 """<p>This shows the status of the local project.</p>"""
317 )) 317 ))
318 self.vcsStatusAct.triggered[()].connect(self._vcsStatus) 318 self.vcsStatusAct.triggered[()].connect(self._vcsStatus)
319 self.actions.append(self.vcsStatusAct) 319 self.actions.append(self.vcsStatusAct)
320 320
321 self.hgSummaryAct = E5Action( 321 self.hgSummaryAct = E5Action(
322 self.trUtf8('Show Summary'), 322 self.tr('Show Summary'),
323 UI.PixmapCache.getIcon("vcsSummary.png"), 323 UI.PixmapCache.getIcon("vcsSummary.png"),
324 self.trUtf8('Show summary...'), 324 self.tr('Show summary...'),
325 0, 0, self, 'mercurial_summary') 325 0, 0, self, 'mercurial_summary')
326 self.hgSummaryAct.setStatusTip(self.trUtf8( 326 self.hgSummaryAct.setStatusTip(self.tr(
327 'Show summary information of the working directory status' 327 'Show summary information of the working directory status'
328 )) 328 ))
329 self.hgSummaryAct.setWhatsThis(self.trUtf8( 329 self.hgSummaryAct.setWhatsThis(self.tr(
330 """<b>Show summary</b>""" 330 """<b>Show summary</b>"""
331 """<p>This shows some summary information of the working""" 331 """<p>This shows some summary information of the working"""
332 """ directory status.</p>""" 332 """ directory status.</p>"""
333 )) 333 ))
334 self.hgSummaryAct.triggered[()].connect(self.__hgSummary) 334 self.hgSummaryAct.triggered[()].connect(self.__hgSummary)
335 self.actions.append(self.hgSummaryAct) 335 self.actions.append(self.hgSummaryAct)
336 336
337 self.hgHeadsAct = E5Action( 337 self.hgHeadsAct = E5Action(
338 self.trUtf8('Show heads'), 338 self.tr('Show heads'),
339 self.trUtf8('Show heads'), 339 self.tr('Show heads'),
340 0, 0, self, 'mercurial_heads') 340 0, 0, self, 'mercurial_heads')
341 self.hgHeadsAct.setStatusTip(self.trUtf8( 341 self.hgHeadsAct.setStatusTip(self.tr(
342 'Show the heads of the repository' 342 'Show the heads of the repository'
343 )) 343 ))
344 self.hgHeadsAct.setWhatsThis(self.trUtf8( 344 self.hgHeadsAct.setWhatsThis(self.tr(
345 """<b>Show heads</b>""" 345 """<b>Show heads</b>"""
346 """<p>This shows the heads of the repository.</p>""" 346 """<p>This shows the heads of the repository.</p>"""
347 )) 347 ))
348 self.hgHeadsAct.triggered[()].connect(self.__hgHeads) 348 self.hgHeadsAct.triggered[()].connect(self.__hgHeads)
349 self.actions.append(self.hgHeadsAct) 349 self.actions.append(self.hgHeadsAct)
350 350
351 self.hgParentsAct = E5Action( 351 self.hgParentsAct = E5Action(
352 self.trUtf8('Show parents'), 352 self.tr('Show parents'),
353 self.trUtf8('Show parents'), 353 self.tr('Show parents'),
354 0, 0, self, 'mercurial_parents') 354 0, 0, self, 'mercurial_parents')
355 self.hgParentsAct.setStatusTip(self.trUtf8( 355 self.hgParentsAct.setStatusTip(self.tr(
356 'Show the parents of the repository' 356 'Show the parents of the repository'
357 )) 357 ))
358 self.hgParentsAct.setWhatsThis(self.trUtf8( 358 self.hgParentsAct.setWhatsThis(self.tr(
359 """<b>Show parents</b>""" 359 """<b>Show parents</b>"""
360 """<p>This shows the parents of the repository.</p>""" 360 """<p>This shows the parents of the repository.</p>"""
361 )) 361 ))
362 self.hgParentsAct.triggered[()].connect(self.__hgParents) 362 self.hgParentsAct.triggered[()].connect(self.__hgParents)
363 self.actions.append(self.hgParentsAct) 363 self.actions.append(self.hgParentsAct)
364 364
365 self.hgTipAct = E5Action( 365 self.hgTipAct = E5Action(
366 self.trUtf8('Show tip'), 366 self.tr('Show tip'),
367 self.trUtf8('Show tip'), 367 self.tr('Show tip'),
368 0, 0, self, 'mercurial_tip') 368 0, 0, self, 'mercurial_tip')
369 self.hgTipAct.setStatusTip(self.trUtf8( 369 self.hgTipAct.setStatusTip(self.tr(
370 'Show the tip of the repository' 370 'Show the tip of the repository'
371 )) 371 ))
372 self.hgTipAct.setWhatsThis(self.trUtf8( 372 self.hgTipAct.setWhatsThis(self.tr(
373 """<b>Show tip</b>""" 373 """<b>Show tip</b>"""
374 """<p>This shows the tip of the repository.</p>""" 374 """<p>This shows the tip of the repository.</p>"""
375 )) 375 ))
376 self.hgTipAct.triggered[()].connect(self.__hgTip) 376 self.hgTipAct.triggered[()].connect(self.__hgTip)
377 self.actions.append(self.hgTipAct) 377 self.actions.append(self.hgTipAct)
378 378
379 self.vcsRevertAct = E5Action( 379 self.vcsRevertAct = E5Action(
380 self.trUtf8('Revert changes'), 380 self.tr('Revert changes'),
381 UI.PixmapCache.getIcon("vcsRevert.png"), 381 UI.PixmapCache.getIcon("vcsRevert.png"),
382 self.trUtf8('Re&vert changes'), 382 self.tr('Re&vert changes'),
383 0, 0, self, 'mercurial_revert') 383 0, 0, self, 'mercurial_revert')
384 self.vcsRevertAct.setStatusTip(self.trUtf8( 384 self.vcsRevertAct.setStatusTip(self.tr(
385 'Revert all changes made to the local project' 385 'Revert all changes made to the local project'
386 )) 386 ))
387 self.vcsRevertAct.setWhatsThis(self.trUtf8( 387 self.vcsRevertAct.setWhatsThis(self.tr(
388 """<b>Revert changes</b>""" 388 """<b>Revert changes</b>"""
389 """<p>This reverts all changes made to the local project.</p>""" 389 """<p>This reverts all changes made to the local project.</p>"""
390 )) 390 ))
391 self.vcsRevertAct.triggered[()].connect(self.__hgRevert) 391 self.vcsRevertAct.triggered[()].connect(self.__hgRevert)
392 self.actions.append(self.vcsRevertAct) 392 self.actions.append(self.vcsRevertAct)
393 393
394 self.vcsMergeAct = E5Action( 394 self.vcsMergeAct = E5Action(
395 self.trUtf8('Merge'), 395 self.tr('Merge'),
396 UI.PixmapCache.getIcon("vcsMerge.png"), 396 UI.PixmapCache.getIcon("vcsMerge.png"),
397 self.trUtf8('Mer&ge changes...'), 397 self.tr('Mer&ge changes...'),
398 0, 0, self, 'mercurial_merge') 398 0, 0, self, 'mercurial_merge')
399 self.vcsMergeAct.setStatusTip(self.trUtf8( 399 self.vcsMergeAct.setStatusTip(self.tr(
400 'Merge changes of a revision into the local project' 400 'Merge changes of a revision into the local project'
401 )) 401 ))
402 self.vcsMergeAct.setWhatsThis(self.trUtf8( 402 self.vcsMergeAct.setWhatsThis(self.tr(
403 """<b>Merge</b>""" 403 """<b>Merge</b>"""
404 """<p>This merges changes of a revision into the local""" 404 """<p>This merges changes of a revision into the local"""
405 """ project.</p>""" 405 """ project.</p>"""
406 )) 406 ))
407 self.vcsMergeAct.triggered[()].connect(self._vcsMerge) 407 self.vcsMergeAct.triggered[()].connect(self._vcsMerge)
408 self.actions.append(self.vcsMergeAct) 408 self.actions.append(self.vcsMergeAct)
409 409
410 self.vcsResolveAct = E5Action( 410 self.vcsResolveAct = E5Action(
411 self.trUtf8('Conflicts resolved'), 411 self.tr('Conflicts resolved'),
412 self.trUtf8('Con&flicts resolved'), 412 self.tr('Con&flicts resolved'),
413 0, 0, self, 'mercurial_resolve') 413 0, 0, self, 'mercurial_resolve')
414 self.vcsResolveAct.setStatusTip(self.trUtf8( 414 self.vcsResolveAct.setStatusTip(self.tr(
415 'Mark all conflicts of the local project as resolved' 415 'Mark all conflicts of the local project as resolved'
416 )) 416 ))
417 self.vcsResolveAct.setWhatsThis(self.trUtf8( 417 self.vcsResolveAct.setWhatsThis(self.tr(
418 """<b>Conflicts resolved</b>""" 418 """<b>Conflicts resolved</b>"""
419 """<p>This marks all conflicts of the local project as""" 419 """<p>This marks all conflicts of the local project as"""
420 """ resolved.</p>""" 420 """ resolved.</p>"""
421 )) 421 ))
422 self.vcsResolveAct.triggered[()].connect(self.__hgResolve) 422 self.vcsResolveAct.triggered[()].connect(self.__hgResolve)
423 self.actions.append(self.vcsResolveAct) 423 self.actions.append(self.vcsResolveAct)
424 424
425 self.vcsTagAct = E5Action( 425 self.vcsTagAct = E5Action(
426 self.trUtf8('Tag in repository'), 426 self.tr('Tag in repository'),
427 UI.PixmapCache.getIcon("vcsTag.png"), 427 UI.PixmapCache.getIcon("vcsTag.png"),
428 self.trUtf8('&Tag in repository...'), 428 self.tr('&Tag in repository...'),
429 0, 0, self, 'mercurial_tag') 429 0, 0, self, 'mercurial_tag')
430 self.vcsTagAct.setStatusTip(self.trUtf8( 430 self.vcsTagAct.setStatusTip(self.tr(
431 'Tag the local project in the repository' 431 'Tag the local project in the repository'
432 )) 432 ))
433 self.vcsTagAct.setWhatsThis(self.trUtf8( 433 self.vcsTagAct.setWhatsThis(self.tr(
434 """<b>Tag in repository</b>""" 434 """<b>Tag in repository</b>"""
435 """<p>This tags the local project in the repository.</p>""" 435 """<p>This tags the local project in the repository.</p>"""
436 )) 436 ))
437 self.vcsTagAct.triggered[()].connect(self._vcsTag) 437 self.vcsTagAct.triggered[()].connect(self._vcsTag)
438 self.actions.append(self.vcsTagAct) 438 self.actions.append(self.vcsTagAct)
439 439
440 self.hgTagListAct = E5Action( 440 self.hgTagListAct = E5Action(
441 self.trUtf8('List tags'), 441 self.tr('List tags'),
442 self.trUtf8('List tags...'), 442 self.tr('List tags...'),
443 0, 0, self, 'mercurial_list_tags') 443 0, 0, self, 'mercurial_list_tags')
444 self.hgTagListAct.setStatusTip(self.trUtf8( 444 self.hgTagListAct.setStatusTip(self.tr(
445 'List tags of the project' 445 'List tags of the project'
446 )) 446 ))
447 self.hgTagListAct.setWhatsThis(self.trUtf8( 447 self.hgTagListAct.setWhatsThis(self.tr(
448 """<b>List tags</b>""" 448 """<b>List tags</b>"""
449 """<p>This lists the tags of the project.</p>""" 449 """<p>This lists the tags of the project.</p>"""
450 )) 450 ))
451 self.hgTagListAct.triggered[()].connect(self.__hgTagList) 451 self.hgTagListAct.triggered[()].connect(self.__hgTagList)
452 self.actions.append(self.hgTagListAct) 452 self.actions.append(self.hgTagListAct)
453 453
454 self.hgBranchListAct = E5Action( 454 self.hgBranchListAct = E5Action(
455 self.trUtf8('List branches'), 455 self.tr('List branches'),
456 self.trUtf8('List branches...'), 456 self.tr('List branches...'),
457 0, 0, self, 'mercurial_list_branches') 457 0, 0, self, 'mercurial_list_branches')
458 self.hgBranchListAct.setStatusTip(self.trUtf8( 458 self.hgBranchListAct.setStatusTip(self.tr(
459 'List branches of the project' 459 'List branches of the project'
460 )) 460 ))
461 self.hgBranchListAct.setWhatsThis(self.trUtf8( 461 self.hgBranchListAct.setWhatsThis(self.tr(
462 """<b>List branches</b>""" 462 """<b>List branches</b>"""
463 """<p>This lists the branches of the project.</p>""" 463 """<p>This lists the branches of the project.</p>"""
464 )) 464 ))
465 self.hgBranchListAct.triggered[()].connect(self.__hgBranchList) 465 self.hgBranchListAct.triggered[()].connect(self.__hgBranchList)
466 self.actions.append(self.hgBranchListAct) 466 self.actions.append(self.hgBranchListAct)
467 467
468 self.hgBranchAct = E5Action( 468 self.hgBranchAct = E5Action(
469 self.trUtf8('Create branch'), 469 self.tr('Create branch'),
470 UI.PixmapCache.getIcon("vcsBranch.png"), 470 UI.PixmapCache.getIcon("vcsBranch.png"),
471 self.trUtf8('Create &branch...'), 471 self.tr('Create &branch...'),
472 0, 0, self, 'mercurial_branch') 472 0, 0, self, 'mercurial_branch')
473 self.hgBranchAct.setStatusTip(self.trUtf8( 473 self.hgBranchAct.setStatusTip(self.tr(
474 'Create a new branch for the local project in the repository' 474 'Create a new branch for the local project in the repository'
475 )) 475 ))
476 self.hgBranchAct.setWhatsThis(self.trUtf8( 476 self.hgBranchAct.setWhatsThis(self.tr(
477 """<b>Create branch</b>""" 477 """<b>Create branch</b>"""
478 """<p>This creates a new branch for the local project """ 478 """<p>This creates a new branch for the local project """
479 """in the repository.</p>""" 479 """in the repository.</p>"""
480 )) 480 ))
481 self.hgBranchAct.triggered[()].connect(self.__hgBranch) 481 self.hgBranchAct.triggered[()].connect(self.__hgBranch)
482 self.actions.append(self.hgBranchAct) 482 self.actions.append(self.hgBranchAct)
483 483
484 self.hgPushBranchAct = E5Action( 484 self.hgPushBranchAct = E5Action(
485 self.trUtf8('Push new branch'), 485 self.tr('Push new branch'),
486 self.trUtf8('Push new branch'), 486 self.tr('Push new branch'),
487 0, 0, self, 'mercurial_push_branch') 487 0, 0, self, 'mercurial_push_branch')
488 self.hgPushBranchAct.setStatusTip(self.trUtf8( 488 self.hgPushBranchAct.setStatusTip(self.tr(
489 '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'
490 ' branch' 490 ' branch'
491 )) 491 ))
492 self.hgPushBranchAct.setWhatsThis(self.trUtf8( 492 self.hgPushBranchAct.setWhatsThis(self.tr(
493 """<b>Push new branch</b>""" 493 """<b>Push new branch</b>"""
494 """<p>This pushes the current branch of the local project""" 494 """<p>This pushes the current branch of the local project"""
495 """ as a new named branch.</p>""" 495 """ as a new named branch.</p>"""
496 )) 496 ))
497 self.hgPushBranchAct.triggered[()].connect(self.__hgPushNewBranch) 497 self.hgPushBranchAct.triggered[()].connect(self.__hgPushNewBranch)
498 self.actions.append(self.hgPushBranchAct) 498 self.actions.append(self.hgPushBranchAct)
499 499
500 self.hgCloseBranchAct = E5Action( 500 self.hgCloseBranchAct = E5Action(
501 self.trUtf8('Close branch'), 501 self.tr('Close branch'),
502 self.trUtf8('Close branch'), 502 self.tr('Close branch'),
503 0, 0, self, 'mercurial_close_branch') 503 0, 0, self, 'mercurial_close_branch')
504 self.hgCloseBranchAct.setStatusTip(self.trUtf8( 504 self.hgCloseBranchAct.setStatusTip(self.tr(
505 'Close the current branch of the local project' 505 'Close the current branch of the local project'
506 )) 506 ))
507 self.hgCloseBranchAct.setWhatsThis(self.trUtf8( 507 self.hgCloseBranchAct.setWhatsThis(self.tr(
508 """<b>Close branch</b>""" 508 """<b>Close branch</b>"""
509 """<p>This closes the current branch of the local project.</p>""" 509 """<p>This closes the current branch of the local project.</p>"""
510 )) 510 ))
511 self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch) 511 self.hgCloseBranchAct.triggered[()].connect(self.__hgCloseBranch)
512 self.actions.append(self.hgCloseBranchAct) 512 self.actions.append(self.hgCloseBranchAct)
513 513
514 self.hgShowBranchAct = E5Action( 514 self.hgShowBranchAct = E5Action(
515 self.trUtf8('Show current branch'), 515 self.tr('Show current branch'),
516 self.trUtf8('Show current branch'), 516 self.tr('Show current branch'),
517 0, 0, self, 'mercurial_show_branch') 517 0, 0, self, 'mercurial_show_branch')
518 self.hgShowBranchAct.setStatusTip(self.trUtf8( 518 self.hgShowBranchAct.setStatusTip(self.tr(
519 'Show the current branch of the project' 519 'Show the current branch of the project'
520 )) 520 ))
521 self.hgShowBranchAct.setWhatsThis(self.trUtf8( 521 self.hgShowBranchAct.setWhatsThis(self.tr(
522 """<b>Show current branch</b>""" 522 """<b>Show current branch</b>"""
523 """<p>This shows the current branch of the project.</p>""" 523 """<p>This shows the current branch of the project.</p>"""
524 )) 524 ))
525 self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch) 525 self.hgShowBranchAct.triggered[()].connect(self.__hgShowBranch)
526 self.actions.append(self.hgShowBranchAct) 526 self.actions.append(self.hgShowBranchAct)
527 527
528 self.vcsSwitchAct = E5Action( 528 self.vcsSwitchAct = E5Action(
529 self.trUtf8('Switch'), 529 self.tr('Switch'),
530 UI.PixmapCache.getIcon("vcsSwitch.png"), 530 UI.PixmapCache.getIcon("vcsSwitch.png"),
531 self.trUtf8('S&witch...'), 531 self.tr('S&witch...'),
532 0, 0, self, 'mercurial_switch') 532 0, 0, self, 'mercurial_switch')
533 self.vcsSwitchAct.setStatusTip(self.trUtf8( 533 self.vcsSwitchAct.setStatusTip(self.tr(
534 'Switch the working directory to another revision' 534 'Switch the working directory to another revision'
535 )) 535 ))
536 self.vcsSwitchAct.setWhatsThis(self.trUtf8( 536 self.vcsSwitchAct.setWhatsThis(self.tr(
537 """<b>Switch</b>""" 537 """<b>Switch</b>"""
538 """<p>This switches the working directory to another""" 538 """<p>This switches the working directory to another"""
539 """ revision.</p>""" 539 """ revision.</p>"""
540 )) 540 ))
541 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch) 541 self.vcsSwitchAct.triggered[()].connect(self._vcsSwitch)
542 self.actions.append(self.vcsSwitchAct) 542 self.actions.append(self.vcsSwitchAct)
543 543
544 self.vcsCleanupAct = E5Action( 544 self.vcsCleanupAct = E5Action(
545 self.trUtf8('Cleanup'), 545 self.tr('Cleanup'),
546 self.trUtf8('Cleanu&p'), 546 self.tr('Cleanu&p'),
547 0, 0, self, 'mercurial_cleanup') 547 0, 0, self, 'mercurial_cleanup')
548 self.vcsCleanupAct.setStatusTip(self.trUtf8( 548 self.vcsCleanupAct.setStatusTip(self.tr(
549 'Cleanup the local project' 549 'Cleanup the local project'
550 )) 550 ))
551 self.vcsCleanupAct.setWhatsThis(self.trUtf8( 551 self.vcsCleanupAct.setWhatsThis(self.tr(
552 """<b>Cleanup</b>""" 552 """<b>Cleanup</b>"""
553 """<p>This performs a cleanup of the local project.</p>""" 553 """<p>This performs a cleanup of the local project.</p>"""
554 )) 554 ))
555 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup) 555 self.vcsCleanupAct.triggered[()].connect(self._vcsCleanup)
556 self.actions.append(self.vcsCleanupAct) 556 self.actions.append(self.vcsCleanupAct)
557 557
558 self.vcsCommandAct = E5Action( 558 self.vcsCommandAct = E5Action(
559 self.trUtf8('Execute command'), 559 self.tr('Execute command'),
560 self.trUtf8('E&xecute command...'), 560 self.tr('E&xecute command...'),
561 0, 0, self, 'mercurial_command') 561 0, 0, self, 'mercurial_command')
562 self.vcsCommandAct.setStatusTip(self.trUtf8( 562 self.vcsCommandAct.setStatusTip(self.tr(
563 'Execute an arbitrary Mercurial command' 563 'Execute an arbitrary Mercurial command'
564 )) 564 ))
565 self.vcsCommandAct.setWhatsThis(self.trUtf8( 565 self.vcsCommandAct.setWhatsThis(self.tr(
566 """<b>Execute command</b>""" 566 """<b>Execute command</b>"""
567 """<p>This opens a dialog to enter an arbitrary Mercurial""" 567 """<p>This opens a dialog to enter an arbitrary Mercurial"""
568 """ command.</p>""" 568 """ command.</p>"""
569 )) 569 ))
570 self.vcsCommandAct.triggered[()].connect(self._vcsCommand) 570 self.vcsCommandAct.triggered[()].connect(self._vcsCommand)
571 self.actions.append(self.vcsCommandAct) 571 self.actions.append(self.vcsCommandAct)
572 572
573 self.vcsPropsAct = E5Action( 573 self.vcsPropsAct = E5Action(
574 self.trUtf8('Command options'), 574 self.tr('Command options'),
575 self.trUtf8('Command &options...'), 0, 0, self, 575 self.tr('Command &options...'), 0, 0, self,
576 'mercurial_options') 576 'mercurial_options')
577 self.vcsPropsAct.setStatusTip(self.trUtf8( 577 self.vcsPropsAct.setStatusTip(self.tr(
578 'Show the Mercurial command options')) 578 'Show the Mercurial command options'))
579 self.vcsPropsAct.setWhatsThis(self.trUtf8( 579 self.vcsPropsAct.setWhatsThis(self.tr(
580 """<b>Command options...</b>""" 580 """<b>Command options...</b>"""
581 """<p>This shows a dialog to edit the Mercurial command""" 581 """<p>This shows a dialog to edit the Mercurial command"""
582 """ options.</p>""" 582 """ options.</p>"""
583 )) 583 ))
584 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions) 584 self.vcsPropsAct.triggered[()].connect(self._vcsCommandOptions)
585 self.actions.append(self.vcsPropsAct) 585 self.actions.append(self.vcsPropsAct)
586 586
587 self.hgConfigAct = E5Action( 587 self.hgConfigAct = E5Action(
588 self.trUtf8('Configure'), 588 self.tr('Configure'),
589 self.trUtf8('Configure...'), 589 self.tr('Configure...'),
590 0, 0, self, 'mercurial_configure') 590 0, 0, self, 'mercurial_configure')
591 self.hgConfigAct.setStatusTip(self.trUtf8( 591 self.hgConfigAct.setStatusTip(self.tr(
592 'Show the configuration dialog with the Mercurial page selected' 592 'Show the configuration dialog with the Mercurial page selected'
593 )) 593 ))
594 self.hgConfigAct.setWhatsThis(self.trUtf8( 594 self.hgConfigAct.setWhatsThis(self.tr(
595 """<b>Configure</b>""" 595 """<b>Configure</b>"""
596 """<p>Show the configuration dialog with the Mercurial page""" 596 """<p>Show the configuration dialog with the Mercurial page"""
597 """ selected.</p>""" 597 """ selected.</p>"""
598 )) 598 ))
599 self.hgConfigAct.triggered[()].connect(self.__hgConfigure) 599 self.hgConfigAct.triggered[()].connect(self.__hgConfigure)
600 self.actions.append(self.hgConfigAct) 600 self.actions.append(self.hgConfigAct)
601 601
602 self.hgEditUserConfigAct = E5Action( 602 self.hgEditUserConfigAct = E5Action(
603 self.trUtf8('Edit user configuration'), 603 self.tr('Edit user configuration'),
604 self.trUtf8('Edit user configuration...'), 604 self.tr('Edit user configuration...'),
605 0, 0, self, 'mercurial_user_configure') 605 0, 0, self, 'mercurial_user_configure')
606 self.hgEditUserConfigAct.setStatusTip(self.trUtf8( 606 self.hgEditUserConfigAct.setStatusTip(self.tr(
607 'Show an editor to edit the user configuration file' 607 'Show an editor to edit the user configuration file'
608 )) 608 ))
609 self.hgEditUserConfigAct.setWhatsThis(self.trUtf8( 609 self.hgEditUserConfigAct.setWhatsThis(self.tr(
610 """<b>Edit user configuration</b>""" 610 """<b>Edit user configuration</b>"""
611 """<p>Show an editor to edit the user configuration file.</p>""" 611 """<p>Show an editor to edit the user configuration file.</p>"""
612 )) 612 ))
613 self.hgEditUserConfigAct.triggered[()].connect(self.__hgEditUserConfig) 613 self.hgEditUserConfigAct.triggered[()].connect(self.__hgEditUserConfig)
614 self.actions.append(self.hgEditUserConfigAct) 614 self.actions.append(self.hgEditUserConfigAct)
615 615
616 self.hgRepoConfigAct = E5Action( 616 self.hgRepoConfigAct = E5Action(
617 self.trUtf8('Edit repository configuration'), 617 self.tr('Edit repository configuration'),
618 self.trUtf8('Edit repository configuration...'), 618 self.tr('Edit repository configuration...'),
619 0, 0, self, 'mercurial_repo_configure') 619 0, 0, self, 'mercurial_repo_configure')
620 self.hgRepoConfigAct.setStatusTip(self.trUtf8( 620 self.hgRepoConfigAct.setStatusTip(self.tr(
621 'Show an editor to edit the repository configuration file' 621 'Show an editor to edit the repository configuration file'
622 )) 622 ))
623 self.hgRepoConfigAct.setWhatsThis(self.trUtf8( 623 self.hgRepoConfigAct.setWhatsThis(self.tr(
624 """<b>Edit repository configuration</b>""" 624 """<b>Edit repository configuration</b>"""
625 """<p>Show an editor to edit the repository configuration""" 625 """<p>Show an editor to edit the repository configuration"""
626 """ file.</p>""" 626 """ file.</p>"""
627 )) 627 ))
628 self.hgRepoConfigAct.triggered[()].connect(self.__hgEditRepoConfig) 628 self.hgRepoConfigAct.triggered[()].connect(self.__hgEditRepoConfig)
629 self.actions.append(self.hgRepoConfigAct) 629 self.actions.append(self.hgRepoConfigAct)
630 630
631 self.hgShowConfigAct = E5Action( 631 self.hgShowConfigAct = E5Action(
632 self.trUtf8('Show combined configuration settings'), 632 self.tr('Show combined configuration settings'),
633 self.trUtf8('Show combined configuration settings...'), 633 self.tr('Show combined configuration settings...'),
634 0, 0, self, 'mercurial_show_config') 634 0, 0, self, 'mercurial_show_config')
635 self.hgShowConfigAct.setStatusTip(self.trUtf8( 635 self.hgShowConfigAct.setStatusTip(self.tr(
636 'Show the combined configuration settings from all configuration' 636 'Show the combined configuration settings from all configuration'
637 ' files' 637 ' files'
638 )) 638 ))
639 self.hgShowConfigAct.setWhatsThis(self.trUtf8( 639 self.hgShowConfigAct.setWhatsThis(self.tr(
640 """<b>Show combined configuration settings</b>""" 640 """<b>Show combined configuration settings</b>"""
641 """<p>This shows the combined configuration settings""" 641 """<p>This shows the combined configuration settings"""
642 """ from all configuration files.</p>""" 642 """ from all configuration files.</p>"""
643 )) 643 ))
644 self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig) 644 self.hgShowConfigAct.triggered[()].connect(self.__hgShowConfig)
645 self.actions.append(self.hgShowConfigAct) 645 self.actions.append(self.hgShowConfigAct)
646 646
647 self.hgShowPathsAct = E5Action( 647 self.hgShowPathsAct = E5Action(
648 self.trUtf8('Show paths'), 648 self.tr('Show paths'),
649 self.trUtf8('Show paths...'), 649 self.tr('Show paths...'),
650 0, 0, self, 'mercurial_show_paths') 650 0, 0, self, 'mercurial_show_paths')
651 self.hgShowPathsAct.setStatusTip(self.trUtf8( 651 self.hgShowPathsAct.setStatusTip(self.tr(
652 'Show the aliases for remote repositories' 652 'Show the aliases for remote repositories'
653 )) 653 ))
654 self.hgShowPathsAct.setWhatsThis(self.trUtf8( 654 self.hgShowPathsAct.setWhatsThis(self.tr(
655 """<b>Show paths</b>""" 655 """<b>Show paths</b>"""
656 """<p>This shows the aliases for remote repositories.</p>""" 656 """<p>This shows the aliases for remote repositories.</p>"""
657 )) 657 ))
658 self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths) 658 self.hgShowPathsAct.triggered[()].connect(self.__hgShowPaths)
659 self.actions.append(self.hgShowPathsAct) 659 self.actions.append(self.hgShowPathsAct)
660 660
661 self.hgVerifyAct = E5Action( 661 self.hgVerifyAct = E5Action(
662 self.trUtf8('Verify repository'), 662 self.tr('Verify repository'),
663 self.trUtf8('Verify repository...'), 663 self.tr('Verify repository...'),
664 0, 0, self, 'mercurial_verify') 664 0, 0, self, 'mercurial_verify')
665 self.hgVerifyAct.setStatusTip(self.trUtf8( 665 self.hgVerifyAct.setStatusTip(self.tr(
666 'Verify the integrity of the repository' 666 'Verify the integrity of the repository'
667 )) 667 ))
668 self.hgVerifyAct.setWhatsThis(self.trUtf8( 668 self.hgVerifyAct.setWhatsThis(self.tr(
669 """<b>Verify repository</b>""" 669 """<b>Verify repository</b>"""
670 """<p>This verifies the integrity of the repository.</p>""" 670 """<p>This verifies the integrity of the repository.</p>"""
671 )) 671 ))
672 self.hgVerifyAct.triggered[()].connect(self.__hgVerify) 672 self.hgVerifyAct.triggered[()].connect(self.__hgVerify)
673 self.actions.append(self.hgVerifyAct) 673 self.actions.append(self.hgVerifyAct)
674 674
675 self.hgRecoverAct = E5Action( 675 self.hgRecoverAct = E5Action(
676 self.trUtf8('Recover'), 676 self.tr('Recover'),
677 self.trUtf8('Recover...'), 677 self.tr('Recover...'),
678 0, 0, self, 'mercurial_recover') 678 0, 0, self, 'mercurial_recover')
679 self.hgRecoverAct.setStatusTip(self.trUtf8( 679 self.hgRecoverAct.setStatusTip(self.tr(
680 'Recover from an interrupted transaction' 680 'Recover from an interrupted transaction'
681 )) 681 ))
682 self.hgRecoverAct.setWhatsThis(self.trUtf8( 682 self.hgRecoverAct.setWhatsThis(self.tr(
683 """<b>Recover</b>""" 683 """<b>Recover</b>"""
684 """<p>This recovers from an interrupted transaction.</p>""" 684 """<p>This recovers from an interrupted transaction.</p>"""
685 )) 685 ))
686 self.hgRecoverAct.triggered[()].connect(self.__hgRecover) 686 self.hgRecoverAct.triggered[()].connect(self.__hgRecover)
687 self.actions.append(self.hgRecoverAct) 687 self.actions.append(self.hgRecoverAct)
688 688
689 self.hgIdentifyAct = E5Action( 689 self.hgIdentifyAct = E5Action(
690 self.trUtf8('Identify'), 690 self.tr('Identify'),
691 self.trUtf8('Identify...'), 691 self.tr('Identify...'),
692 0, 0, self, 'mercurial_identify') 692 0, 0, self, 'mercurial_identify')
693 self.hgIdentifyAct.setStatusTip(self.trUtf8( 693 self.hgIdentifyAct.setStatusTip(self.tr(
694 'Identify the project directory' 694 'Identify the project directory'
695 )) 695 ))
696 self.hgIdentifyAct.setWhatsThis(self.trUtf8( 696 self.hgIdentifyAct.setWhatsThis(self.tr(
697 """<b>Identify</b>""" 697 """<b>Identify</b>"""
698 """<p>This identifies the project directory.</p>""" 698 """<p>This identifies the project directory.</p>"""
699 )) 699 ))
700 self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify) 700 self.hgIdentifyAct.triggered[()].connect(self.__hgIdentify)
701 self.actions.append(self.hgIdentifyAct) 701 self.actions.append(self.hgIdentifyAct)
702 702
703 self.hgCreateIgnoreAct = E5Action( 703 self.hgCreateIgnoreAct = E5Action(
704 self.trUtf8('Create .hgignore'), 704 self.tr('Create .hgignore'),
705 self.trUtf8('Create .hgignore'), 705 self.tr('Create .hgignore'),
706 0, 0, self, 'mercurial_create ignore') 706 0, 0, self, 'mercurial_create ignore')
707 self.hgCreateIgnoreAct.setStatusTip(self.trUtf8( 707 self.hgCreateIgnoreAct.setStatusTip(self.tr(
708 'Create a .hgignore file with default values' 708 'Create a .hgignore file with default values'
709 )) 709 ))
710 self.hgCreateIgnoreAct.setWhatsThis(self.trUtf8( 710 self.hgCreateIgnoreAct.setWhatsThis(self.tr(
711 """<b>Create .hgignore</b>""" 711 """<b>Create .hgignore</b>"""
712 """<p>This creates a .hgignore file with default values.</p>""" 712 """<p>This creates a .hgignore file with default values.</p>"""
713 )) 713 ))
714 self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore) 714 self.hgCreateIgnoreAct.triggered[()].connect(self.__hgCreateIgnore)
715 self.actions.append(self.hgCreateIgnoreAct) 715 self.actions.append(self.hgCreateIgnoreAct)
716 716
717 self.hgBundleAct = E5Action( 717 self.hgBundleAct = E5Action(
718 self.trUtf8('Create changegroup'), 718 self.tr('Create changegroup'),
719 self.trUtf8('Create changegroup...'), 719 self.tr('Create changegroup...'),
720 0, 0, self, 'mercurial_bundle') 720 0, 0, self, 'mercurial_bundle')
721 self.hgBundleAct.setStatusTip(self.trUtf8( 721 self.hgBundleAct.setStatusTip(self.tr(
722 'Create changegroup file collecting changesets' 722 'Create changegroup file collecting changesets'
723 )) 723 ))
724 self.hgBundleAct.setWhatsThis(self.trUtf8( 724 self.hgBundleAct.setWhatsThis(self.tr(
725 """<b>Create changegroup</b>""" 725 """<b>Create changegroup</b>"""
726 """<p>This creates a changegroup file collecting selected""" 726 """<p>This creates a changegroup file collecting selected"""
727 """ changesets (hg bundle).</p>""" 727 """ changesets (hg bundle).</p>"""
728 )) 728 ))
729 self.hgBundleAct.triggered[()].connect(self.__hgBundle) 729 self.hgBundleAct.triggered[()].connect(self.__hgBundle)
730 self.actions.append(self.hgBundleAct) 730 self.actions.append(self.hgBundleAct)
731 731
732 self.hgPreviewBundleAct = E5Action( 732 self.hgPreviewBundleAct = E5Action(
733 self.trUtf8('Preview changegroup'), 733 self.tr('Preview changegroup'),
734 self.trUtf8('Preview changegroup...'), 734 self.tr('Preview changegroup...'),
735 0, 0, self, 'mercurial_preview_bundle') 735 0, 0, self, 'mercurial_preview_bundle')
736 self.hgPreviewBundleAct.setStatusTip(self.trUtf8( 736 self.hgPreviewBundleAct.setStatusTip(self.tr(
737 'Preview a changegroup file containing a collection of changesets' 737 'Preview a changegroup file containing a collection of changesets'
738 )) 738 ))
739 self.hgPreviewBundleAct.setWhatsThis(self.trUtf8( 739 self.hgPreviewBundleAct.setWhatsThis(self.tr(
740 """<b>Preview changegroup</b>""" 740 """<b>Preview changegroup</b>"""
741 """<p>This previews a changegroup file containing a collection""" 741 """<p>This previews a changegroup file containing a collection"""
742 """ of changesets.</p>""" 742 """ of changesets.</p>"""
743 )) 743 ))
744 self.hgPreviewBundleAct.triggered[()].connect(self.__hgPreviewBundle) 744 self.hgPreviewBundleAct.triggered[()].connect(self.__hgPreviewBundle)
745 self.actions.append(self.hgPreviewBundleAct) 745 self.actions.append(self.hgPreviewBundleAct)
746 746
747 self.hgIdentifyBundleAct = E5Action( 747 self.hgIdentifyBundleAct = E5Action(
748 self.trUtf8('Identify changegroup'), 748 self.tr('Identify changegroup'),
749 self.trUtf8('Identify changegroup...'), 749 self.tr('Identify changegroup...'),
750 0, 0, self, 'mercurial_identify_bundle') 750 0, 0, self, 'mercurial_identify_bundle')
751 self.hgIdentifyBundleAct.setStatusTip(self.trUtf8( 751 self.hgIdentifyBundleAct.setStatusTip(self.tr(
752 'Identify a changegroup file containing a collection of changesets' 752 'Identify a changegroup file containing a collection of changesets'
753 )) 753 ))
754 self.hgIdentifyBundleAct.setWhatsThis(self.trUtf8( 754 self.hgIdentifyBundleAct.setWhatsThis(self.tr(
755 """<b>Identify changegroup</b>""" 755 """<b>Identify changegroup</b>"""
756 """<p>This identifies a changegroup file containing a""" 756 """<p>This identifies a changegroup file containing a"""
757 """ collection of changesets.</p>""" 757 """ collection of changesets.</p>"""
758 )) 758 ))
759 self.hgIdentifyBundleAct.triggered[()].connect(self.__hgIdentifyBundle) 759 self.hgIdentifyBundleAct.triggered[()].connect(self.__hgIdentifyBundle)
760 self.actions.append(self.hgIdentifyBundleAct) 760 self.actions.append(self.hgIdentifyBundleAct)
761 761
762 self.hgUnbundleAct = E5Action( 762 self.hgUnbundleAct = E5Action(
763 self.trUtf8('Apply changegroups'), 763 self.tr('Apply changegroups'),
764 self.trUtf8('Apply changegroups...'), 764 self.tr('Apply changegroups...'),
765 0, 0, self, 'mercurial_unbundle') 765 0, 0, self, 'mercurial_unbundle')
766 self.hgUnbundleAct.setStatusTip(self.trUtf8( 766 self.hgUnbundleAct.setStatusTip(self.tr(
767 'Apply one or several changegroup files' 767 'Apply one or several changegroup files'
768 )) 768 ))
769 self.hgUnbundleAct.setWhatsThis(self.trUtf8( 769 self.hgUnbundleAct.setWhatsThis(self.tr(
770 """<b>Apply changegroups</b>""" 770 """<b>Apply changegroups</b>"""
771 """<p>This applies one or several changegroup files generated by""" 771 """<p>This applies one or several changegroup files generated by"""
772 """ the 'Create changegroup' action (hg unbundle).</p>""" 772 """ the 'Create changegroup' action (hg unbundle).</p>"""
773 )) 773 ))
774 self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle) 774 self.hgUnbundleAct.triggered[()].connect(self.__hgUnbundle)
775 self.actions.append(self.hgUnbundleAct) 775 self.actions.append(self.hgUnbundleAct)
776 776
777 self.hgBisectGoodAct = E5Action( 777 self.hgBisectGoodAct = E5Action(
778 self.trUtf8('Mark as "good"'), 778 self.tr('Mark as "good"'),
779 self.trUtf8('Mark as "good"...'), 779 self.tr('Mark as "good"...'),
780 0, 0, self, 'mercurial_bisect_good') 780 0, 0, self, 'mercurial_bisect_good')
781 self.hgBisectGoodAct.setStatusTip(self.trUtf8( 781 self.hgBisectGoodAct.setStatusTip(self.tr(
782 'Mark a selectable changeset as good' 782 'Mark a selectable changeset as good'
783 )) 783 ))
784 self.hgBisectGoodAct.setWhatsThis(self.trUtf8( 784 self.hgBisectGoodAct.setWhatsThis(self.tr(
785 """<b>Mark as good</b>""" 785 """<b>Mark as good</b>"""
786 """<p>This marks a selectable changeset as good.</p>""" 786 """<p>This marks a selectable changeset as good.</p>"""
787 )) 787 ))
788 self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood) 788 self.hgBisectGoodAct.triggered[()].connect(self.__hgBisectGood)
789 self.actions.append(self.hgBisectGoodAct) 789 self.actions.append(self.hgBisectGoodAct)
790 790
791 self.hgBisectBadAct = E5Action( 791 self.hgBisectBadAct = E5Action(
792 self.trUtf8('Mark as "bad"'), 792 self.tr('Mark as "bad"'),
793 self.trUtf8('Mark as "bad"...'), 793 self.tr('Mark as "bad"...'),
794 0, 0, self, 'mercurial_bisect_bad') 794 0, 0, self, 'mercurial_bisect_bad')
795 self.hgBisectBadAct.setStatusTip(self.trUtf8( 795 self.hgBisectBadAct.setStatusTip(self.tr(
796 'Mark a selectable changeset as bad' 796 'Mark a selectable changeset as bad'
797 )) 797 ))
798 self.hgBisectBadAct.setWhatsThis(self.trUtf8( 798 self.hgBisectBadAct.setWhatsThis(self.tr(
799 """<b>Mark as bad</b>""" 799 """<b>Mark as bad</b>"""
800 """<p>This marks a selectable changeset as bad.</p>""" 800 """<p>This marks a selectable changeset as bad.</p>"""
801 )) 801 ))
802 self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad) 802 self.hgBisectBadAct.triggered[()].connect(self.__hgBisectBad)
803 self.actions.append(self.hgBisectBadAct) 803 self.actions.append(self.hgBisectBadAct)
804 804
805 self.hgBisectSkipAct = E5Action( 805 self.hgBisectSkipAct = E5Action(
806 self.trUtf8('Skip'), 806 self.tr('Skip'),
807 self.trUtf8('Skip...'), 807 self.tr('Skip...'),
808 0, 0, self, 'mercurial_bisect_skip') 808 0, 0, self, 'mercurial_bisect_skip')
809 self.hgBisectSkipAct.setStatusTip(self.trUtf8( 809 self.hgBisectSkipAct.setStatusTip(self.tr(
810 'Skip a selectable changeset' 810 'Skip a selectable changeset'
811 )) 811 ))
812 self.hgBisectSkipAct.setWhatsThis(self.trUtf8( 812 self.hgBisectSkipAct.setWhatsThis(self.tr(
813 """<b>Skip</b>""" 813 """<b>Skip</b>"""
814 """<p>This skips a selectable changeset.</p>""" 814 """<p>This skips a selectable changeset.</p>"""
815 )) 815 ))
816 self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip) 816 self.hgBisectSkipAct.triggered[()].connect(self.__hgBisectSkip)
817 self.actions.append(self.hgBisectSkipAct) 817 self.actions.append(self.hgBisectSkipAct)
818 818
819 self.hgBisectResetAct = E5Action( 819 self.hgBisectResetAct = E5Action(
820 self.trUtf8('Reset'), 820 self.tr('Reset'),
821 self.trUtf8('Reset'), 821 self.tr('Reset'),
822 0, 0, self, 'mercurial_bisect_reset') 822 0, 0, self, 'mercurial_bisect_reset')
823 self.hgBisectResetAct.setStatusTip(self.trUtf8( 823 self.hgBisectResetAct.setStatusTip(self.tr(
824 'Reset the bisect search data' 824 'Reset the bisect search data'
825 )) 825 ))
826 self.hgBisectResetAct.setWhatsThis(self.trUtf8( 826 self.hgBisectResetAct.setWhatsThis(self.tr(
827 """<b>Reset</b>""" 827 """<b>Reset</b>"""
828 """<p>This resets the bisect search data.</p>""" 828 """<p>This resets the bisect search data.</p>"""
829 )) 829 ))
830 self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset) 830 self.hgBisectResetAct.triggered[()].connect(self.__hgBisectReset)
831 self.actions.append(self.hgBisectResetAct) 831 self.actions.append(self.hgBisectResetAct)
832 832
833 self.hgBackoutAct = E5Action( 833 self.hgBackoutAct = E5Action(
834 self.trUtf8('Back out changeset'), 834 self.tr('Back out changeset'),
835 self.trUtf8('Back out changeset'), 835 self.tr('Back out changeset'),
836 0, 0, self, 'mercurial_backout') 836 0, 0, self, 'mercurial_backout')
837 self.hgBackoutAct.setStatusTip(self.trUtf8( 837 self.hgBackoutAct.setStatusTip(self.tr(
838 'Back out changes of an earlier changeset' 838 'Back out changes of an earlier changeset'
839 )) 839 ))
840 self.hgBackoutAct.setWhatsThis(self.trUtf8( 840 self.hgBackoutAct.setWhatsThis(self.tr(
841 """<b>Back out changeset</b>""" 841 """<b>Back out changeset</b>"""
842 """<p>This backs out changes of an earlier changeset.</p>""" 842 """<p>This backs out changes of an earlier changeset.</p>"""
843 )) 843 ))
844 self.hgBackoutAct.triggered[()].connect(self.__hgBackout) 844 self.hgBackoutAct.triggered[()].connect(self.__hgBackout)
845 self.actions.append(self.hgBackoutAct) 845 self.actions.append(self.hgBackoutAct)
846 846
847 self.hgRollbackAct = E5Action( 847 self.hgRollbackAct = E5Action(
848 self.trUtf8('Rollback last transaction'), 848 self.tr('Rollback last transaction'),
849 self.trUtf8('Rollback last transaction'), 849 self.tr('Rollback last transaction'),
850 0, 0, self, 'mercurial_rollback') 850 0, 0, self, 'mercurial_rollback')
851 self.hgRollbackAct.setStatusTip(self.trUtf8( 851 self.hgRollbackAct.setStatusTip(self.tr(
852 'Rollback the last transaction' 852 'Rollback the last transaction'
853 )) 853 ))
854 self.hgRollbackAct.setWhatsThis(self.trUtf8( 854 self.hgRollbackAct.setWhatsThis(self.tr(
855 """<b>Rollback last transaction</b>""" 855 """<b>Rollback last transaction</b>"""
856 """<p>This performs a rollback of the last transaction.""" 856 """<p>This performs a rollback of the last transaction."""
857 """ Transactions are used to encapsulate the effects of all""" 857 """ Transactions are used to encapsulate the effects of all"""
858 """ commands that create new changesets or propagate existing""" 858 """ commands that create new changesets or propagate existing"""
859 """ changesets into a repository. For example, the following""" 859 """ changesets into a repository. For example, the following"""
870 )) 870 ))
871 self.hgRollbackAct.triggered[()].connect(self.__hgRollback) 871 self.hgRollbackAct.triggered[()].connect(self.__hgRollback)
872 self.actions.append(self.hgRollbackAct) 872 self.actions.append(self.hgRollbackAct)
873 873
874 self.hgServeAct = E5Action( 874 self.hgServeAct = E5Action(
875 self.trUtf8('Serve project repository'), 875 self.tr('Serve project repository'),
876 self.trUtf8('Serve project repository...'), 876 self.tr('Serve project repository...'),
877 0, 0, self, 'mercurial_serve') 877 0, 0, self, 'mercurial_serve')
878 self.hgServeAct.setStatusTip(self.trUtf8( 878 self.hgServeAct.setStatusTip(self.tr(
879 'Serve the project repository' 879 'Serve the project repository'
880 )) 880 ))
881 self.hgServeAct.setWhatsThis(self.trUtf8( 881 self.hgServeAct.setWhatsThis(self.tr(
882 """<b>Serve project repository</b>""" 882 """<b>Serve project repository</b>"""
883 """<p>This serves the project repository.</p>""" 883 """<p>This serves the project repository.</p>"""
884 )) 884 ))
885 self.hgServeAct.triggered[()].connect(self.__hgServe) 885 self.hgServeAct.triggered[()].connect(self.__hgServe)
886 self.actions.append(self.hgServeAct) 886 self.actions.append(self.hgServeAct)
887 887
888 self.hgImportAct = E5Action( 888 self.hgImportAct = E5Action(
889 self.trUtf8('Import Patch'), 889 self.tr('Import Patch'),
890 self.trUtf8('Import Patch...'), 890 self.tr('Import Patch...'),
891 0, 0, self, 'mercurial_import') 891 0, 0, self, 'mercurial_import')
892 self.hgImportAct.setStatusTip(self.trUtf8( 892 self.hgImportAct.setStatusTip(self.tr(
893 'Import a patch from a patch file' 893 'Import a patch from a patch file'
894 )) 894 ))
895 self.hgImportAct.setWhatsThis(self.trUtf8( 895 self.hgImportAct.setWhatsThis(self.tr(
896 """<b>Import Patch</b>""" 896 """<b>Import Patch</b>"""
897 """<p>This imports a patch from a patch file into the""" 897 """<p>This imports a patch from a patch file into the"""
898 """ project.</p>""" 898 """ project.</p>"""
899 )) 899 ))
900 self.hgImportAct.triggered[()].connect(self.__hgImport) 900 self.hgImportAct.triggered[()].connect(self.__hgImport)
901 self.actions.append(self.hgImportAct) 901 self.actions.append(self.hgImportAct)
902 902
903 self.hgExportAct = E5Action( 903 self.hgExportAct = E5Action(
904 self.trUtf8('Export Patches'), 904 self.tr('Export Patches'),
905 self.trUtf8('Export Patches...'), 905 self.tr('Export Patches...'),
906 0, 0, self, 'mercurial_export') 906 0, 0, self, 'mercurial_export')
907 self.hgExportAct.setStatusTip(self.trUtf8( 907 self.hgExportAct.setStatusTip(self.tr(
908 'Export revisions to patch files' 908 'Export revisions to patch files'
909 )) 909 ))
910 self.hgExportAct.setWhatsThis(self.trUtf8( 910 self.hgExportAct.setWhatsThis(self.tr(
911 """<b>Export Patches</b>""" 911 """<b>Export Patches</b>"""
912 """<p>This exports revisions of the project to patch files.</p>""" 912 """<p>This exports revisions of the project to patch files.</p>"""
913 )) 913 ))
914 self.hgExportAct.triggered[()].connect(self.__hgExport) 914 self.hgExportAct.triggered[()].connect(self.__hgExport)
915 self.actions.append(self.hgExportAct) 915 self.actions.append(self.hgExportAct)
916 916
917 self.hgPhaseAct = E5Action( 917 self.hgPhaseAct = E5Action(
918 self.trUtf8('Change Phase'), 918 self.tr('Change Phase'),
919 self.trUtf8('Change Phase...'), 919 self.tr('Change Phase...'),
920 0, 0, self, 'mercurial_change_phase') 920 0, 0, self, 'mercurial_change_phase')
921 self.hgPhaseAct.setStatusTip(self.trUtf8( 921 self.hgPhaseAct.setStatusTip(self.tr(
922 'Change the phase of revisions' 922 'Change the phase of revisions'
923 )) 923 ))
924 self.hgPhaseAct.setWhatsThis(self.trUtf8( 924 self.hgPhaseAct.setWhatsThis(self.tr(
925 """<b>Change Phase</b>""" 925 """<b>Change Phase</b>"""
926 """<p>This changes the phase of revisions.</p>""" 926 """<p>This changes the phase of revisions.</p>"""
927 )) 927 ))
928 self.hgPhaseAct.triggered[()].connect(self.__hgPhase) 928 self.hgPhaseAct.triggered[()].connect(self.__hgPhase)
929 self.actions.append(self.hgPhaseAct) 929 self.actions.append(self.hgPhaseAct)
930 930
931 self.hgGraftAct = E5Action( 931 self.hgGraftAct = E5Action(
932 self.trUtf8('Copy Changesets'), 932 self.tr('Copy Changesets'),
933 UI.PixmapCache.getIcon("vcsGraft.png"), 933 UI.PixmapCache.getIcon("vcsGraft.png"),
934 self.trUtf8('Copy Changesets'), 934 self.tr('Copy Changesets'),
935 0, 0, self, 'mercurial_graft') 935 0, 0, self, 'mercurial_graft')
936 self.hgGraftAct.setStatusTip(self.trUtf8( 936 self.hgGraftAct.setStatusTip(self.tr(
937 'Copies changesets from another branch' 937 'Copies changesets from another branch'
938 )) 938 ))
939 self.hgGraftAct.setWhatsThis(self.trUtf8( 939 self.hgGraftAct.setWhatsThis(self.tr(
940 """<b>Copy Changesets</b>""" 940 """<b>Copy Changesets</b>"""
941 """<p>This copies changesets from another branch on top of the""" 941 """<p>This copies changesets from another branch on top of the"""
942 """ current working directory with the user, date and""" 942 """ current working directory with the user, date and"""
943 """ description of the original changeset.</p>""" 943 """ description of the original changeset.</p>"""
944 )) 944 ))
945 self.hgGraftAct.triggered[()].connect(self.__hgGraft) 945 self.hgGraftAct.triggered[()].connect(self.__hgGraft)
946 self.actions.append(self.hgGraftAct) 946 self.actions.append(self.hgGraftAct)
947 947
948 self.hgGraftContinueAct = E5Action( 948 self.hgGraftContinueAct = E5Action(
949 self.trUtf8('Continue Copying Session'), 949 self.tr('Continue Copying Session'),
950 self.trUtf8('Continue Copying Session'), 950 self.tr('Continue Copying Session'),
951 0, 0, self, 'mercurial_graft_continue') 951 0, 0, self, 'mercurial_graft_continue')
952 self.hgGraftContinueAct.setStatusTip(self.trUtf8( 952 self.hgGraftContinueAct.setStatusTip(self.tr(
953 'Continue the last copying session after conflicts were resolved' 953 'Continue the last copying session after conflicts were resolved'
954 )) 954 ))
955 self.hgGraftContinueAct.setWhatsThis(self.trUtf8( 955 self.hgGraftContinueAct.setWhatsThis(self.tr(
956 """<b>Continue Copying Session</b>""" 956 """<b>Continue Copying Session</b>"""
957 """<p>This continues the last copying session after conflicts""" 957 """<p>This continues the last copying session after conflicts"""
958 """ were resolved.</p>""" 958 """ were resolved.</p>"""
959 )) 959 ))
960 self.hgGraftContinueAct.triggered[()].connect(self.__hgGraftContinue) 960 self.hgGraftContinueAct.triggered[()].connect(self.__hgGraftContinue)
961 self.actions.append(self.hgGraftContinueAct) 961 self.actions.append(self.hgGraftContinueAct)
962 962
963 self.hgAddSubrepoAct = E5Action( 963 self.hgAddSubrepoAct = E5Action(
964 self.trUtf8('Add'), 964 self.tr('Add'),
965 UI.PixmapCache.getIcon("vcsAdd.png"), 965 UI.PixmapCache.getIcon("vcsAdd.png"),
966 self.trUtf8('Add...'), 966 self.tr('Add...'),
967 0, 0, self, 'mercurial_add_subrepo') 967 0, 0, self, 'mercurial_add_subrepo')
968 self.hgAddSubrepoAct.setStatusTip(self.trUtf8( 968 self.hgAddSubrepoAct.setStatusTip(self.tr(
969 'Add a sub-repository' 969 'Add a sub-repository'
970 )) 970 ))
971 self.hgAddSubrepoAct.setWhatsThis(self.trUtf8( 971 self.hgAddSubrepoAct.setWhatsThis(self.tr(
972 """<b>Add...</b>""" 972 """<b>Add...</b>"""
973 """<p>Add a sub-repository to the project.</p>""" 973 """<p>Add a sub-repository to the project.</p>"""
974 )) 974 ))
975 self.hgAddSubrepoAct.triggered[()].connect(self.__hgAddSubrepository) 975 self.hgAddSubrepoAct.triggered[()].connect(self.__hgAddSubrepository)
976 self.actions.append(self.hgAddSubrepoAct) 976 self.actions.append(self.hgAddSubrepoAct)
977 977
978 self.hgRemoveSubreposAct = E5Action( 978 self.hgRemoveSubreposAct = E5Action(
979 self.trUtf8('Remove'), 979 self.tr('Remove'),
980 UI.PixmapCache.getIcon("vcsRemove.png"), 980 UI.PixmapCache.getIcon("vcsRemove.png"),
981 self.trUtf8('Remove...'), 981 self.tr('Remove...'),
982 0, 0, self, 'mercurial_remove_subrepos') 982 0, 0, self, 'mercurial_remove_subrepos')
983 self.hgRemoveSubreposAct.setStatusTip(self.trUtf8( 983 self.hgRemoveSubreposAct.setStatusTip(self.tr(
984 'Remove sub-repositories' 984 'Remove sub-repositories'
985 )) 985 ))
986 self.hgRemoveSubreposAct.setWhatsThis(self.trUtf8( 986 self.hgRemoveSubreposAct.setWhatsThis(self.tr(
987 """<b>Remove...</b>""" 987 """<b>Remove...</b>"""
988 """<p>Remove sub-repositories from the project.</p>""" 988 """<p>Remove sub-repositories from the project.</p>"""
989 )) 989 ))
990 self.hgRemoveSubreposAct.triggered[()].connect( 990 self.hgRemoveSubreposAct.triggered[()].connect(
991 self.__hgRemoveSubrepositories) 991 self.__hgRemoveSubrepositories)
992 self.actions.append(self.hgRemoveSubreposAct) 992 self.actions.append(self.hgRemoveSubreposAct)
993 993
994 self.hgArchiveAct = E5Action( 994 self.hgArchiveAct = E5Action(
995 self.trUtf8('Create unversioned archive'), 995 self.tr('Create unversioned archive'),
996 UI.PixmapCache.getIcon("vcsExport.png"), 996 UI.PixmapCache.getIcon("vcsExport.png"),
997 self.trUtf8('Create unversioned archive...'), 997 self.tr('Create unversioned archive...'),
998 0, 0, self, 'mercurial_archive') 998 0, 0, self, 'mercurial_archive')
999 self.hgArchiveAct.setStatusTip(self.trUtf8( 999 self.hgArchiveAct.setStatusTip(self.tr(
1000 'Create an unversioned archive from the repository' 1000 'Create an unversioned archive from the repository'
1001 )) 1001 ))
1002 self.hgArchiveAct.setWhatsThis(self.trUtf8( 1002 self.hgArchiveAct.setWhatsThis(self.tr(
1003 """<b>Create unversioned archive...</b>""" 1003 """<b>Create unversioned archive...</b>"""
1004 """<p>This creates an unversioned archive from the""" 1004 """<p>This creates an unversioned archive from the"""
1005 """ repository.</p>""" 1005 """ repository.</p>"""
1006 )) 1006 ))
1007 self.hgArchiveAct.triggered[()].connect(self.__hgArchive) 1007 self.hgArchiveAct.triggered[()].connect(self.__hgArchive)
1015 """ 1015 """
1016 menu.clear() 1016 menu.clear()
1017 1017
1018 self.subMenus = [] 1018 self.subMenus = []
1019 1019
1020 adminMenu = QMenu(self.trUtf8("Repository Administration"), menu) 1020 adminMenu = QMenu(self.tr("Repository Administration"), menu)
1021 adminMenu.setTearOffEnabled(True) 1021 adminMenu.setTearOffEnabled(True)
1022 adminMenu.addAction(self.hgHeadsAct) 1022 adminMenu.addAction(self.hgHeadsAct)
1023 adminMenu.addAction(self.hgParentsAct) 1023 adminMenu.addAction(self.hgParentsAct)
1024 adminMenu.addAction(self.hgTipAct) 1024 adminMenu.addAction(self.hgTipAct)
1025 adminMenu.addAction(self.hgShowBranchAct) 1025 adminMenu.addAction(self.hgShowBranchAct)
1038 adminMenu.addAction(self.hgRollbackAct) 1038 adminMenu.addAction(self.hgRollbackAct)
1039 adminMenu.addSeparator() 1039 adminMenu.addSeparator()
1040 adminMenu.addAction(self.hgVerifyAct) 1040 adminMenu.addAction(self.hgVerifyAct)
1041 self.subMenus.append(adminMenu) 1041 self.subMenus.append(adminMenu)
1042 1042
1043 specialsMenu = QMenu(self.trUtf8("Specials"), menu) 1043 specialsMenu = QMenu(self.tr("Specials"), menu)
1044 specialsMenu.setTearOffEnabled(True) 1044 specialsMenu.setTearOffEnabled(True)
1045 specialsMenu.addAction(self.hgArchiveAct) 1045 specialsMenu.addAction(self.hgArchiveAct)
1046 specialsMenu.addSeparator() 1046 specialsMenu.addSeparator()
1047 specialsMenu.addAction(self.hgPushForcedAct) 1047 specialsMenu.addAction(self.hgPushForcedAct)
1048 specialsMenu.addSeparator() 1048 specialsMenu.addSeparator()
1049 specialsMenu.addAction(self.hgServeAct) 1049 specialsMenu.addAction(self.hgServeAct)
1050 self.subMenus.append(specialsMenu) 1050 self.subMenus.append(specialsMenu)
1051 1051
1052 bundleMenu = QMenu(self.trUtf8("Changegroup Management"), menu) 1052 bundleMenu = QMenu(self.tr("Changegroup Management"), menu)
1053 bundleMenu.setTearOffEnabled(True) 1053 bundleMenu.setTearOffEnabled(True)
1054 bundleMenu.addAction(self.hgBundleAct) 1054 bundleMenu.addAction(self.hgBundleAct)
1055 bundleMenu.addAction(self.hgIdentifyBundleAct) 1055 bundleMenu.addAction(self.hgIdentifyBundleAct)
1056 bundleMenu.addAction(self.hgPreviewBundleAct) 1056 bundleMenu.addAction(self.hgPreviewBundleAct)
1057 bundleMenu.addAction(self.hgUnbundleAct) 1057 bundleMenu.addAction(self.hgUnbundleAct)
1058 self.subMenus.append(bundleMenu) 1058 self.subMenus.append(bundleMenu)
1059 1059
1060 patchMenu = QMenu(self.trUtf8("Patch Management"), menu) 1060 patchMenu = QMenu(self.tr("Patch Management"), menu)
1061 patchMenu.setTearOffEnabled(True) 1061 patchMenu.setTearOffEnabled(True)
1062 patchMenu.addAction(self.hgImportAct) 1062 patchMenu.addAction(self.hgImportAct)
1063 patchMenu.addAction(self.hgExportAct) 1063 patchMenu.addAction(self.hgExportAct)
1064 self.subMenus.append(patchMenu) 1064 self.subMenus.append(patchMenu)
1065 1065
1066 bisectMenu = QMenu(self.trUtf8("Bisect"), menu) 1066 bisectMenu = QMenu(self.tr("Bisect"), menu)
1067 bisectMenu.setTearOffEnabled(True) 1067 bisectMenu.setTearOffEnabled(True)
1068 bisectMenu.addAction(self.hgBisectGoodAct) 1068 bisectMenu.addAction(self.hgBisectGoodAct)
1069 bisectMenu.addAction(self.hgBisectBadAct) 1069 bisectMenu.addAction(self.hgBisectBadAct)
1070 bisectMenu.addAction(self.hgBisectSkipAct) 1070 bisectMenu.addAction(self.hgBisectSkipAct)
1071 bisectMenu.addAction(self.hgBisectResetAct) 1071 bisectMenu.addAction(self.hgBisectResetAct)
1072 self.subMenus.append(bisectMenu) 1072 self.subMenus.append(bisectMenu)
1073 1073
1074 self.__extensionsMenu = QMenu(self.trUtf8("Extensions"), menu) 1074 self.__extensionsMenu = QMenu(self.tr("Extensions"), menu)
1075 self.__extensionsMenu.setTearOffEnabled(True) 1075 self.__extensionsMenu.setTearOffEnabled(True)
1076 self.__extensionsMenu.aboutToShow.connect(self.__showExtensionMenu) 1076 self.__extensionsMenu.aboutToShow.connect(self.__showExtensionMenu)
1077 self.extensionMenus = {} 1077 self.extensionMenus = {}
1078 for extensionMenuTitle in sorted(self.__extensionMenuTitles): 1078 for extensionMenuTitle in sorted(self.__extensionMenuTitles):
1079 extensionName = self.__extensionMenuTitles[extensionMenuTitle] 1079 extensionName = self.__extensionMenuTitles[extensionMenuTitle]
1081 self.__extensions[extensionName].initMenu( 1081 self.__extensions[extensionName].initMenu(
1082 self.__extensionsMenu)) 1082 self.__extensionsMenu))
1083 self.vcs.activeExtensionsChanged.connect(self.__showExtensionMenu) 1083 self.vcs.activeExtensionsChanged.connect(self.__showExtensionMenu)
1084 1084
1085 if self.vcs.version >= (2, 0): 1085 if self.vcs.version >= (2, 0):
1086 graftMenu = QMenu(self.trUtf8("Graft"), menu) 1086 graftMenu = QMenu(self.tr("Graft"), menu)
1087 graftMenu.setIcon(UI.PixmapCache.getIcon("vcsGraft.png")) 1087 graftMenu.setIcon(UI.PixmapCache.getIcon("vcsGraft.png"))
1088 graftMenu.setTearOffEnabled(True) 1088 graftMenu.setTearOffEnabled(True)
1089 graftMenu.addAction(self.hgGraftAct) 1089 graftMenu.addAction(self.hgGraftAct)
1090 graftMenu.addAction(self.hgGraftContinueAct) 1090 graftMenu.addAction(self.hgGraftContinueAct)
1091 else: 1091 else:
1092 graftMenu = None 1092 graftMenu = None
1093 1093
1094 if self.vcs.version >= (1, 8): 1094 if self.vcs.version >= (1, 8):
1095 subrepoMenu = QMenu(self.trUtf8("Sub-Repository"), menu) 1095 subrepoMenu = QMenu(self.tr("Sub-Repository"), menu)
1096 subrepoMenu.setTearOffEnabled(True) 1096 subrepoMenu.setTearOffEnabled(True)
1097 subrepoMenu.addAction(self.hgAddSubrepoAct) 1097 subrepoMenu.addAction(self.hgAddSubrepoAct)
1098 subrepoMenu.addAction(self.hgRemoveSubreposAct) 1098 subrepoMenu.addAction(self.hgRemoveSubreposAct)
1099 else: 1099 else:
1100 subrepoMenu = None 1100 subrepoMenu = None
1235 """ 1235 """
1236 shouldReopen = self.vcs.hgPull(self.project.ppath) 1236 shouldReopen = self.vcs.hgPull(self.project.ppath)
1237 if shouldReopen: 1237 if shouldReopen:
1238 res = E5MessageBox.yesNo( 1238 res = E5MessageBox.yesNo(
1239 self.parent(), 1239 self.parent(),
1240 self.trUtf8("Pull"), 1240 self.tr("Pull"),
1241 self.trUtf8("""The project should be reread. Do this now?"""), 1241 self.tr("""The project should be reread. Do this now?"""),
1242 yesDefault=True) 1242 yesDefault=True)
1243 if res: 1243 if res:
1244 self.project.reopenProject() 1244 self.project.reopenProject()
1245 1245
1246 def __hgPush(self): 1246 def __hgPush(self):
1398 """ 1398 """
1399 shouldReopen = self.vcs.hgUnbundle(self.project.ppath) 1399 shouldReopen = self.vcs.hgUnbundle(self.project.ppath)
1400 if shouldReopen: 1400 if shouldReopen:
1401 res = E5MessageBox.yesNo( 1401 res = E5MessageBox.yesNo(
1402 self.parent(), 1402 self.parent(),
1403 self.trUtf8("Apply changegroups"), 1403 self.tr("Apply changegroups"),
1404 self.trUtf8("""The project should be reread. Do this now?"""), 1404 self.tr("""The project should be reread. Do this now?"""),
1405 yesDefault=True) 1405 yesDefault=True)
1406 if res: 1406 if res:
1407 self.project.reopenProject() 1407 self.project.reopenProject()
1408 1408
1409 def __hgBisectGood(self): 1409 def __hgBisectGood(self):
1454 """ 1454 """
1455 shouldReopen = self.vcs.hgImport(self.project.ppath) 1455 shouldReopen = self.vcs.hgImport(self.project.ppath)
1456 if shouldReopen: 1456 if shouldReopen:
1457 res = E5MessageBox.yesNo( 1457 res = E5MessageBox.yesNo(
1458 self.parent(), 1458 self.parent(),
1459 self.trUtf8("Import Patch"), 1459 self.tr("Import Patch"),
1460 self.trUtf8("""The project should be reread. Do this now?"""), 1460 self.tr("""The project should be reread. Do this now?"""),
1461 yesDefault=True) 1461 yesDefault=True)
1462 if res: 1462 if res:
1463 self.project.reopenProject() 1463 self.project.reopenProject()
1464 1464
1465 def __hgExport(self): 1465 def __hgExport(self):
1474 """ 1474 """
1475 shouldReopen = self.vcs.hgRevert(self.project.ppath) 1475 shouldReopen = self.vcs.hgRevert(self.project.ppath)
1476 if shouldReopen: 1476 if shouldReopen:
1477 res = E5MessageBox.yesNo( 1477 res = E5MessageBox.yesNo(
1478 self.parent(), 1478 self.parent(),
1479 self.trUtf8("Revert Changes"), 1479 self.tr("Revert Changes"),
1480 self.trUtf8("""The project should be reread. Do this now?"""), 1480 self.tr("""The project should be reread. Do this now?"""),
1481 yesDefault=True) 1481 yesDefault=True)
1482 if res: 1482 if res:
1483 self.project.reopenProject() 1483 self.project.reopenProject()
1484 1484
1485 def __hgPhase(self): 1485 def __hgPhase(self):
1494 """ 1494 """
1495 shouldReopen = self.vcs.hgGraft(self.project.getProjectPath()) 1495 shouldReopen = self.vcs.hgGraft(self.project.getProjectPath())
1496 if shouldReopen: 1496 if shouldReopen:
1497 res = E5MessageBox.yesNo( 1497 res = E5MessageBox.yesNo(
1498 None, 1498 None,
1499 self.trUtf8("Copy Changesets"), 1499 self.tr("Copy Changesets"),
1500 self.trUtf8("""The project should be reread. Do this now?"""), 1500 self.tr("""The project should be reread. Do this now?"""),
1501 yesDefault=True) 1501 yesDefault=True)
1502 if res: 1502 if res:
1503 self.project.reopenProject() 1503 self.project.reopenProject()
1504 1504
1505 def __hgGraftContinue(self): 1505 def __hgGraftContinue(self):
1509 """ 1509 """
1510 shouldReopen = self.vcs.hgGraftContinue(self.project.getProjectPath()) 1510 shouldReopen = self.vcs.hgGraftContinue(self.project.getProjectPath())
1511 if shouldReopen: 1511 if shouldReopen:
1512 res = E5MessageBox.yesNo( 1512 res = E5MessageBox.yesNo(
1513 None, 1513 None,
1514 self.trUtf8("Copy Changesets (Continue)"), 1514 self.tr("Copy Changesets (Continue)"),
1515 self.trUtf8("""The project should be reread. Do this now?"""), 1515 self.tr("""The project should be reread. Do this now?"""),
1516 yesDefault=True) 1516 yesDefault=True)
1517 if res: 1517 if res:
1518 self.project.reopenProject() 1518 self.project.reopenProject()
1519 1519
1520 def __hgAddSubrepository(self): 1520 def __hgAddSubrepository(self):

eric ide

mercurial