src/eric7/Plugins/VcsPlugins/vcsPySvn/ProjectHelper.py

branch
eric7
changeset 9221
bf71ee032bb4
parent 9209
b99e7fd55fd3
child 9413
80c06d472826
equal deleted inserted replaced
9220:e9e7eca7efee 9221:bf71ee032bb4
21 21
22 class PySvnProjectHelper(VcsProjectHelper): 22 class PySvnProjectHelper(VcsProjectHelper):
23 """ 23 """
24 Class implementing the VCS project helper for Subversion. 24 Class implementing the VCS project helper for Subversion.
25 """ 25 """
26
26 def __init__(self, vcsObject, projectObject, parent=None, name=None): 27 def __init__(self, vcsObject, projectObject, parent=None, name=None):
27 """ 28 """
28 Constructor 29 Constructor
29 30
30 @param vcsObject reference to the vcs object 31 @param vcsObject reference to the vcs object
31 @param projectObject reference to the project object 32 @param projectObject reference to the project object
32 @param parent parent widget (QWidget) 33 @param parent parent widget (QWidget)
33 @param name name of this object (string) 34 @param name name of this object (string)
34 """ 35 """
35 VcsProjectHelper.__init__(self, vcsObject, projectObject, parent, name) 36 VcsProjectHelper.__init__(self, vcsObject, projectObject, parent, name)
36 37
37 def getActions(self): 38 def getActions(self):
38 """ 39 """
39 Public method to get a list of all actions. 40 Public method to get a list of all actions.
40 41
41 @return list of all actions (list of EricAction) 42 @return list of all actions (list of EricAction)
42 """ 43 """
43 return self.actions[:] 44 return self.actions[:]
44 45
45 def initActions(self): 46 def initActions(self):
46 """ 47 """
47 Public method to generate the action objects. 48 Public method to generate the action objects.
48 """ 49 """
49 self.vcsNewAct = EricAction( 50 self.vcsNewAct = EricAction(
50 self.tr('New from repository'), 51 self.tr("New from repository"),
51 UI.PixmapCache.getIcon("vcsCheckout"), 52 UI.PixmapCache.getIcon("vcsCheckout"),
52 self.tr('&New from repository...'), 0, 0, self, 53 self.tr("&New from repository..."),
53 'pysvn_new') 54 0,
54 self.vcsNewAct.setStatusTip(self.tr( 55 0,
55 'Create a new project from the VCS repository' 56 self,
56 )) 57 "pysvn_new",
57 self.vcsNewAct.setWhatsThis(self.tr( 58 )
58 """<b>New from repository</b>""" 59 self.vcsNewAct.setStatusTip(
59 """<p>This creates a new local project from the VCS""" 60 self.tr("Create a new project from the VCS repository")
60 """ repository.</p>""" 61 )
61 )) 62 self.vcsNewAct.setWhatsThis(
63 self.tr(
64 """<b>New from repository</b>"""
65 """<p>This creates a new local project from the VCS"""
66 """ repository.</p>"""
67 )
68 )
62 self.vcsNewAct.triggered.connect(self._vcsCheckout) 69 self.vcsNewAct.triggered.connect(self._vcsCheckout)
63 self.actions.append(self.vcsNewAct) 70 self.actions.append(self.vcsNewAct)
64 71
65 self.vcsUpdateAct = EricAction( 72 self.vcsUpdateAct = EricAction(
66 self.tr('Update from repository'), 73 self.tr("Update from repository"),
67 UI.PixmapCache.getIcon("vcsUpdate"), 74 UI.PixmapCache.getIcon("vcsUpdate"),
68 self.tr('&Update from repository'), 0, 0, self, 75 self.tr("&Update from repository"),
69 'pysvn_update') 76 0,
70 self.vcsUpdateAct.setStatusTip(self.tr( 77 0,
71 'Update the local project from the VCS repository' 78 self,
72 )) 79 "pysvn_update",
73 self.vcsUpdateAct.setWhatsThis(self.tr( 80 )
74 """<b>Update from repository</b>""" 81 self.vcsUpdateAct.setStatusTip(
75 """<p>This updates the local project from the VCS""" 82 self.tr("Update the local project from the VCS repository")
76 """ repository.</p>""" 83 )
77 )) 84 self.vcsUpdateAct.setWhatsThis(
85 self.tr(
86 """<b>Update from repository</b>"""
87 """<p>This updates the local project from the VCS"""
88 """ repository.</p>"""
89 )
90 )
78 self.vcsUpdateAct.triggered.connect(self._vcsUpdate) 91 self.vcsUpdateAct.triggered.connect(self._vcsUpdate)
79 self.actions.append(self.vcsUpdateAct) 92 self.actions.append(self.vcsUpdateAct)
80 93
81 self.vcsCommitAct = EricAction( 94 self.vcsCommitAct = EricAction(
82 self.tr('Commit changes to repository'), 95 self.tr("Commit changes to repository"),
83 UI.PixmapCache.getIcon("vcsCommit"), 96 UI.PixmapCache.getIcon("vcsCommit"),
84 self.tr('&Commit changes to repository...'), 0, 0, self, 97 self.tr("&Commit changes to repository..."),
85 'pysvn_commit') 98 0,
86 self.vcsCommitAct.setStatusTip(self.tr( 99 0,
87 'Commit changes to the local project to the VCS repository' 100 self,
88 )) 101 "pysvn_commit",
89 self.vcsCommitAct.setWhatsThis(self.tr( 102 )
90 """<b>Commit changes to repository</b>""" 103 self.vcsCommitAct.setStatusTip(
91 """<p>This commits changes to the local project to the VCS""" 104 self.tr("Commit changes to the local project to the VCS repository")
92 """ repository.</p>""" 105 )
93 )) 106 self.vcsCommitAct.setWhatsThis(
107 self.tr(
108 """<b>Commit changes to repository</b>"""
109 """<p>This commits changes to the local project to the VCS"""
110 """ repository.</p>"""
111 )
112 )
94 self.vcsCommitAct.triggered.connect(self._vcsCommit) 113 self.vcsCommitAct.triggered.connect(self._vcsCommit)
95 self.actions.append(self.vcsCommitAct) 114 self.actions.append(self.vcsCommitAct)
96 115
97 self.svnLogBrowserAct = EricAction( 116 self.svnLogBrowserAct = EricAction(
98 self.tr('Show log browser'), 117 self.tr("Show log browser"),
99 UI.PixmapCache.getIcon("vcsLog"), 118 UI.PixmapCache.getIcon("vcsLog"),
100 self.tr('Show log browser'), 119 self.tr("Show log browser"),
101 0, 0, self, 'pysvn_log_browser') 120 0,
102 self.svnLogBrowserAct.setStatusTip(self.tr( 121 0,
103 'Show a dialog to browse the log of the local project' 122 self,
104 )) 123 "pysvn_log_browser",
105 self.svnLogBrowserAct.setWhatsThis(self.tr( 124 )
106 """<b>Show log browser</b>""" 125 self.svnLogBrowserAct.setStatusTip(
107 """<p>This shows a dialog to browse the log of the local""" 126 self.tr("Show a dialog to browse the log of the local project")
108 """ project. A limited number of entries is shown first. More""" 127 )
109 """ can be retrieved later on.</p>""" 128 self.svnLogBrowserAct.setWhatsThis(
110 )) 129 self.tr(
130 """<b>Show log browser</b>"""
131 """<p>This shows a dialog to browse the log of the local"""
132 """ project. A limited number of entries is shown first. More"""
133 """ can be retrieved later on.</p>"""
134 )
135 )
111 self.svnLogBrowserAct.triggered.connect(self._vcsLogBrowser) 136 self.svnLogBrowserAct.triggered.connect(self._vcsLogBrowser)
112 self.actions.append(self.svnLogBrowserAct) 137 self.actions.append(self.svnLogBrowserAct)
113 138
114 self.vcsDiffAct = EricAction( 139 self.vcsDiffAct = EricAction(
115 self.tr('Show differences'), 140 self.tr("Show differences"),
116 UI.PixmapCache.getIcon("vcsDiff"), 141 UI.PixmapCache.getIcon("vcsDiff"),
117 self.tr('Show &difference'), 142 self.tr("Show &difference"),
118 0, 0, self, 'pysvn_diff') 143 0,
119 self.vcsDiffAct.setStatusTip(self.tr( 144 0,
120 'Show the difference of the local project to the repository' 145 self,
121 )) 146 "pysvn_diff",
122 self.vcsDiffAct.setWhatsThis(self.tr( 147 )
123 """<b>Show differences</b>""" 148 self.vcsDiffAct.setStatusTip(
124 """<p>This shows differences of the local project to the""" 149 self.tr("Show the difference of the local project to the repository")
125 """ repository.</p>""" 150 )
126 )) 151 self.vcsDiffAct.setWhatsThis(
152 self.tr(
153 """<b>Show differences</b>"""
154 """<p>This shows differences of the local project to the"""
155 """ repository.</p>"""
156 )
157 )
127 self.vcsDiffAct.triggered.connect(self._vcsDiff) 158 self.vcsDiffAct.triggered.connect(self._vcsDiff)
128 self.actions.append(self.vcsDiffAct) 159 self.actions.append(self.vcsDiffAct)
129 160
130 self.svnExtDiffAct = EricAction( 161 self.svnExtDiffAct = EricAction(
131 self.tr('Show differences (extended)'), 162 self.tr("Show differences (extended)"),
132 UI.PixmapCache.getIcon("vcsDiff"), 163 UI.PixmapCache.getIcon("vcsDiff"),
133 self.tr('Show differences (extended)'), 164 self.tr("Show differences (extended)"),
134 0, 0, self, 'pysvn_extendeddiff') 165 0,
135 self.svnExtDiffAct.setStatusTip(self.tr( 166 0,
136 'Show the difference of revisions of the project to the repository' 167 self,
137 )) 168 "pysvn_extendeddiff",
138 self.svnExtDiffAct.setWhatsThis(self.tr( 169 )
139 """<b>Show differences (extended)</b>""" 170 self.svnExtDiffAct.setStatusTip(
140 """<p>This shows differences of selectable revisions of""" 171 self.tr("Show the difference of revisions of the project to the repository")
141 """ the project.</p>""" 172 )
142 )) 173 self.svnExtDiffAct.setWhatsThis(
174 self.tr(
175 """<b>Show differences (extended)</b>"""
176 """<p>This shows differences of selectable revisions of"""
177 """ the project.</p>"""
178 )
179 )
143 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff) 180 self.svnExtDiffAct.triggered.connect(self.__svnExtendedDiff)
144 self.actions.append(self.svnExtDiffAct) 181 self.actions.append(self.svnExtDiffAct)
145 182
146 self.svnUrlDiffAct = EricAction( 183 self.svnUrlDiffAct = EricAction(
147 self.tr('Show differences (URLs)'), 184 self.tr("Show differences (URLs)"),
148 UI.PixmapCache.getIcon("vcsDiff"), 185 UI.PixmapCache.getIcon("vcsDiff"),
149 self.tr('Show differences (URLs)'), 186 self.tr("Show differences (URLs)"),
150 0, 0, self, 'pysvn_urldiff') 187 0,
151 self.svnUrlDiffAct.setStatusTip(self.tr( 188 0,
152 'Show the difference of the project between two repository URLs' 189 self,
153 )) 190 "pysvn_urldiff",
154 self.svnUrlDiffAct.setWhatsThis(self.tr( 191 )
155 """<b>Show differences (URLs)</b>""" 192 self.svnUrlDiffAct.setStatusTip(
156 """<p>This shows differences of the project between""" 193 self.tr("Show the difference of the project between two repository URLs")
157 """ two repository URLs.</p>""" 194 )
158 )) 195 self.svnUrlDiffAct.setWhatsThis(
196 self.tr(
197 """<b>Show differences (URLs)</b>"""
198 """<p>This shows differences of the project between"""
199 """ two repository URLs.</p>"""
200 )
201 )
159 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff) 202 self.svnUrlDiffAct.triggered.connect(self.__svnUrlDiff)
160 self.actions.append(self.svnUrlDiffAct) 203 self.actions.append(self.svnUrlDiffAct)
161 204
162 self.vcsStatusAct = EricAction( 205 self.vcsStatusAct = EricAction(
163 self.tr('Show status'), 206 self.tr("Show status"),
164 UI.PixmapCache.getIcon("vcsStatus"), 207 UI.PixmapCache.getIcon("vcsStatus"),
165 self.tr('Show &status'), 208 self.tr("Show &status"),
166 0, 0, self, 'pysvn_status') 209 0,
167 self.vcsStatusAct.setStatusTip(self.tr( 210 0,
168 'Show the status of the local project' 211 self,
169 )) 212 "pysvn_status",
170 self.vcsStatusAct.setWhatsThis(self.tr( 213 )
171 """<b>Show status</b>""" 214 self.vcsStatusAct.setStatusTip(self.tr("Show the status of the local project"))
172 """<p>This shows the status of the local project.</p>""" 215 self.vcsStatusAct.setWhatsThis(
173 )) 216 self.tr(
217 """<b>Show status</b>"""
218 """<p>This shows the status of the local project.</p>"""
219 )
220 )
174 self.vcsStatusAct.triggered.connect(self._vcsStatus) 221 self.vcsStatusAct.triggered.connect(self._vcsStatus)
175 self.actions.append(self.vcsStatusAct) 222 self.actions.append(self.vcsStatusAct)
176 223
177 self.svnChangeListsAct = EricAction( 224 self.svnChangeListsAct = EricAction(
178 self.tr('Show change lists'), 225 self.tr("Show change lists"),
179 UI.PixmapCache.getIcon("vcsChangeLists"), 226 UI.PixmapCache.getIcon("vcsChangeLists"),
180 self.tr('Show change lists'), 227 self.tr("Show change lists"),
181 0, 0, self, 'pysvn_changelists') 228 0,
182 self.svnChangeListsAct.setStatusTip(self.tr( 229 0,
183 'Show the change lists and associated files of the local project' 230 self,
184 )) 231 "pysvn_changelists",
185 self.svnChangeListsAct.setWhatsThis(self.tr( 232 )
186 """<b>Show change lists</b>""" 233 self.svnChangeListsAct.setStatusTip(
187 """<p>This shows the change lists and associated files of the""" 234 self.tr("Show the change lists and associated files of the local project")
188 """ local project.</p>""" 235 )
189 )) 236 self.svnChangeListsAct.setWhatsThis(
237 self.tr(
238 """<b>Show change lists</b>"""
239 """<p>This shows the change lists and associated files of the"""
240 """ local project.</p>"""
241 )
242 )
190 self.svnChangeListsAct.triggered.connect(self.__svnChangeLists) 243 self.svnChangeListsAct.triggered.connect(self.__svnChangeLists)
191 self.actions.append(self.svnChangeListsAct) 244 self.actions.append(self.svnChangeListsAct)
192 245
193 self.svnRepoInfoAct = EricAction( 246 self.svnRepoInfoAct = EricAction(
194 self.tr('Show repository info'), 247 self.tr("Show repository info"),
195 UI.PixmapCache.getIcon("vcsRepo"), 248 UI.PixmapCache.getIcon("vcsRepo"),
196 self.tr('Show repository info'), 249 self.tr("Show repository info"),
197 0, 0, self, 'pysvn_repoinfo') 250 0,
198 self.svnRepoInfoAct.setStatusTip(self.tr( 251 0,
199 'Show some repository related information for the local project' 252 self,
200 )) 253 "pysvn_repoinfo",
201 self.svnRepoInfoAct.setWhatsThis(self.tr( 254 )
202 """<b>Show repository info</b>""" 255 self.svnRepoInfoAct.setStatusTip(
203 """<p>This shows some repository related information for""" 256 self.tr("Show some repository related information for the local project")
204 """ the local project.</p>""" 257 )
205 )) 258 self.svnRepoInfoAct.setWhatsThis(
259 self.tr(
260 """<b>Show repository info</b>"""
261 """<p>This shows some repository related information for"""
262 """ the local project.</p>"""
263 )
264 )
206 self.svnRepoInfoAct.triggered.connect(self.__svnInfo) 265 self.svnRepoInfoAct.triggered.connect(self.__svnInfo)
207 self.actions.append(self.svnRepoInfoAct) 266 self.actions.append(self.svnRepoInfoAct)
208 267
209 self.vcsTagAct = EricAction( 268 self.vcsTagAct = EricAction(
210 self.tr('Tag in repository'), 269 self.tr("Tag in repository"),
211 UI.PixmapCache.getIcon("vcsTag"), 270 UI.PixmapCache.getIcon("vcsTag"),
212 self.tr('&Tag in repository...'), 271 self.tr("&Tag in repository..."),
213 0, 0, self, 'pysvn_tag') 272 0,
214 self.vcsTagAct.setStatusTip(self.tr( 273 0,
215 'Tag the local project in the repository' 274 self,
216 )) 275 "pysvn_tag",
217 self.vcsTagAct.setWhatsThis(self.tr( 276 )
218 """<b>Tag in repository</b>""" 277 self.vcsTagAct.setStatusTip(self.tr("Tag the local project in the repository"))
219 """<p>This tags the local project in the repository.</p>""" 278 self.vcsTagAct.setWhatsThis(
220 )) 279 self.tr(
280 """<b>Tag in repository</b>"""
281 """<p>This tags the local project in the repository.</p>"""
282 )
283 )
221 self.vcsTagAct.triggered.connect(self._vcsTag) 284 self.vcsTagAct.triggered.connect(self._vcsTag)
222 self.actions.append(self.vcsTagAct) 285 self.actions.append(self.vcsTagAct)
223 286
224 self.vcsExportAct = EricAction( 287 self.vcsExportAct = EricAction(
225 self.tr('Export from repository'), 288 self.tr("Export from repository"),
226 UI.PixmapCache.getIcon("vcsExport"), 289 UI.PixmapCache.getIcon("vcsExport"),
227 self.tr('&Export from repository...'), 290 self.tr("&Export from repository..."),
228 0, 0, self, 'pysvn_export') 291 0,
229 self.vcsExportAct.setStatusTip(self.tr( 292 0,
230 'Export a project from the repository' 293 self,
231 )) 294 "pysvn_export",
232 self.vcsExportAct.setWhatsThis(self.tr( 295 )
233 """<b>Export from repository</b>""" 296 self.vcsExportAct.setStatusTip(self.tr("Export a project from the repository"))
234 """<p>This exports a project from the repository.</p>""" 297 self.vcsExportAct.setWhatsThis(
235 )) 298 self.tr(
299 """<b>Export from repository</b>"""
300 """<p>This exports a project from the repository.</p>"""
301 )
302 )
236 self.vcsExportAct.triggered.connect(self._vcsExport) 303 self.vcsExportAct.triggered.connect(self._vcsExport)
237 self.actions.append(self.vcsExportAct) 304 self.actions.append(self.vcsExportAct)
238 305
239 self.vcsPropsAct = EricAction( 306 self.vcsPropsAct = EricAction(
240 self.tr('Command options'), 307 self.tr("Command options"),
241 self.tr('Command &options...'), 0, 0, self, 308 self.tr("Command &options..."),
242 'pysvn_options') 309 0,
243 self.vcsPropsAct.setStatusTip(self.tr( 310 0,
244 'Show the VCS command options')) 311 self,
245 self.vcsPropsAct.setWhatsThis(self.tr( 312 "pysvn_options",
246 """<b>Command options...</b>""" 313 )
247 """<p>This shows a dialog to edit the VCS command options.</p>""" 314 self.vcsPropsAct.setStatusTip(self.tr("Show the VCS command options"))
248 )) 315 self.vcsPropsAct.setWhatsThis(
316 self.tr(
317 """<b>Command options...</b>"""
318 """<p>This shows a dialog to edit the VCS command options.</p>"""
319 )
320 )
249 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions) 321 self.vcsPropsAct.triggered.connect(self._vcsCommandOptions)
250 self.actions.append(self.vcsPropsAct) 322 self.actions.append(self.vcsPropsAct)
251 323
252 self.vcsRevertAct = EricAction( 324 self.vcsRevertAct = EricAction(
253 self.tr('Revert changes'), 325 self.tr("Revert changes"),
254 UI.PixmapCache.getIcon("vcsRevert"), 326 UI.PixmapCache.getIcon("vcsRevert"),
255 self.tr('Re&vert changes'), 327 self.tr("Re&vert changes"),
256 0, 0, self, 'pysvn_revert') 328 0,
257 self.vcsRevertAct.setStatusTip(self.tr( 329 0,
258 'Revert all changes made to the local project' 330 self,
259 )) 331 "pysvn_revert",
260 self.vcsRevertAct.setWhatsThis(self.tr( 332 )
261 """<b>Revert changes</b>""" 333 self.vcsRevertAct.setStatusTip(
262 """<p>This reverts all changes made to the local project.</p>""" 334 self.tr("Revert all changes made to the local project")
263 )) 335 )
336 self.vcsRevertAct.setWhatsThis(
337 self.tr(
338 """<b>Revert changes</b>"""
339 """<p>This reverts all changes made to the local project.</p>"""
340 )
341 )
264 self.vcsRevertAct.triggered.connect(self._vcsRevert) 342 self.vcsRevertAct.triggered.connect(self._vcsRevert)
265 self.actions.append(self.vcsRevertAct) 343 self.actions.append(self.vcsRevertAct)
266 344
267 self.vcsMergeAct = EricAction( 345 self.vcsMergeAct = EricAction(
268 self.tr('Merge'), 346 self.tr("Merge"),
269 UI.PixmapCache.getIcon("vcsMerge"), 347 UI.PixmapCache.getIcon("vcsMerge"),
270 self.tr('Mer&ge changes...'), 348 self.tr("Mer&ge changes..."),
271 0, 0, self, 'pysvn_merge') 349 0,
272 self.vcsMergeAct.setStatusTip(self.tr( 350 0,
273 'Merge changes of a tag/revision into the local project' 351 self,
274 )) 352 "pysvn_merge",
275 self.vcsMergeAct.setWhatsThis(self.tr( 353 )
276 """<b>Merge</b>""" 354 self.vcsMergeAct.setStatusTip(
277 """<p>This merges changes of a tag/revision into the local""" 355 self.tr("Merge changes of a tag/revision into the local project")
278 """ project.</p>""" 356 )
279 )) 357 self.vcsMergeAct.setWhatsThis(
358 self.tr(
359 """<b>Merge</b>"""
360 """<p>This merges changes of a tag/revision into the local"""
361 """ project.</p>"""
362 )
363 )
280 self.vcsMergeAct.triggered.connect(self._vcsMerge) 364 self.vcsMergeAct.triggered.connect(self._vcsMerge)
281 self.actions.append(self.vcsMergeAct) 365 self.actions.append(self.vcsMergeAct)
282 366
283 self.vcsSwitchAct = EricAction( 367 self.vcsSwitchAct = EricAction(
284 self.tr('Switch'), 368 self.tr("Switch"),
285 UI.PixmapCache.getIcon("vcsSwitch"), 369 UI.PixmapCache.getIcon("vcsSwitch"),
286 self.tr('S&witch...'), 370 self.tr("S&witch..."),
287 0, 0, self, 'pysvn_switch') 371 0,
288 self.vcsSwitchAct.setStatusTip(self.tr( 372 0,
289 'Switch the local copy to another tag/branch' 373 self,
290 )) 374 "pysvn_switch",
291 self.vcsSwitchAct.setWhatsThis(self.tr( 375 )
292 """<b>Switch</b>""" 376 self.vcsSwitchAct.setStatusTip(
293 """<p>This switches the local copy to another tag/branch.</p>""" 377 self.tr("Switch the local copy to another tag/branch")
294 )) 378 )
379 self.vcsSwitchAct.setWhatsThis(
380 self.tr(
381 """<b>Switch</b>"""
382 """<p>This switches the local copy to another tag/branch.</p>"""
383 )
384 )
295 self.vcsSwitchAct.triggered.connect(self._vcsSwitch) 385 self.vcsSwitchAct.triggered.connect(self._vcsSwitch)
296 self.actions.append(self.vcsSwitchAct) 386 self.actions.append(self.vcsSwitchAct)
297 387
298 self.vcsResolveAct = EricAction( 388 self.vcsResolveAct = EricAction(
299 self.tr('Conflicts resolved'), 389 self.tr("Conflicts resolved"),
300 self.tr('Con&flicts resolved'), 390 self.tr("Con&flicts resolved"),
301 0, 0, self, 'pysvn_resolve') 391 0,
302 self.vcsResolveAct.setStatusTip(self.tr( 392 0,
303 'Mark all conflicts of the local project as resolved' 393 self,
304 )) 394 "pysvn_resolve",
305 self.vcsResolveAct.setWhatsThis(self.tr( 395 )
306 """<b>Conflicts resolved</b>""" 396 self.vcsResolveAct.setStatusTip(
307 """<p>This marks all conflicts of the local project as""" 397 self.tr("Mark all conflicts of the local project as resolved")
308 """ resolved.</p>""" 398 )
309 )) 399 self.vcsResolveAct.setWhatsThis(
400 self.tr(
401 """<b>Conflicts resolved</b>"""
402 """<p>This marks all conflicts of the local project as"""
403 """ resolved.</p>"""
404 )
405 )
310 self.vcsResolveAct.triggered.connect(self.__svnResolve) 406 self.vcsResolveAct.triggered.connect(self.__svnResolve)
311 self.actions.append(self.vcsResolveAct) 407 self.actions.append(self.vcsResolveAct)
312 408
313 self.vcsCleanupAct = EricAction( 409 self.vcsCleanupAct = EricAction(
314 self.tr('Cleanup'), 410 self.tr("Cleanup"), self.tr("Cleanu&p"), 0, 0, self, "pysvn_cleanup"
315 self.tr('Cleanu&p'), 411 )
316 0, 0, self, 'pysvn_cleanup') 412 self.vcsCleanupAct.setStatusTip(self.tr("Cleanup the local project"))
317 self.vcsCleanupAct.setStatusTip(self.tr( 413 self.vcsCleanupAct.setWhatsThis(
318 'Cleanup the local project' 414 self.tr(
319 )) 415 """<b>Cleanup</b>"""
320 self.vcsCleanupAct.setWhatsThis(self.tr( 416 """<p>This performs a cleanup of the local project.</p>"""
321 """<b>Cleanup</b>""" 417 )
322 """<p>This performs a cleanup of the local project.</p>""" 418 )
323 ))
324 self.vcsCleanupAct.triggered.connect(self._vcsCleanup) 419 self.vcsCleanupAct.triggered.connect(self._vcsCleanup)
325 self.actions.append(self.vcsCleanupAct) 420 self.actions.append(self.vcsCleanupAct)
326 421
327 self.vcsCommandAct = EricAction( 422 self.vcsCommandAct = EricAction(
328 self.tr('Execute command'), 423 self.tr("Execute command"),
329 self.tr('E&xecute command...'), 424 self.tr("E&xecute command..."),
330 0, 0, self, 'pysvn_command') 425 0,
331 self.vcsCommandAct.setStatusTip(self.tr( 426 0,
332 'Execute an arbitrary VCS command' 427 self,
333 )) 428 "pysvn_command",
334 self.vcsCommandAct.setWhatsThis(self.tr( 429 )
335 """<b>Execute command</b>""" 430 self.vcsCommandAct.setStatusTip(self.tr("Execute an arbitrary VCS command"))
336 """<p>This opens a dialog to enter an arbitrary VCS command.</p>""" 431 self.vcsCommandAct.setWhatsThis(
337 )) 432 self.tr(
433 """<b>Execute command</b>"""
434 """<p>This opens a dialog to enter an arbitrary VCS command.</p>"""
435 )
436 )
338 self.vcsCommandAct.triggered.connect(self._vcsCommand) 437 self.vcsCommandAct.triggered.connect(self._vcsCommand)
339 self.actions.append(self.vcsCommandAct) 438 self.actions.append(self.vcsCommandAct)
340 439
341 self.svnTagListAct = EricAction( 440 self.svnTagListAct = EricAction(
342 self.tr('List tags'), 441 self.tr("List tags"), self.tr("List tags..."), 0, 0, self, "pysvn_list_tags"
343 self.tr('List tags...'), 442 )
344 0, 0, self, 'pysvn_list_tags') 443 self.svnTagListAct.setStatusTip(self.tr("List tags of the project"))
345 self.svnTagListAct.setStatusTip(self.tr( 444 self.svnTagListAct.setWhatsThis(
346 'List tags of the project' 445 self.tr(
347 )) 446 """<b>List tags</b>""" """<p>This lists the tags of the project.</p>"""
348 self.svnTagListAct.setWhatsThis(self.tr( 447 )
349 """<b>List tags</b>""" 448 )
350 """<p>This lists the tags of the project.</p>"""
351 ))
352 self.svnTagListAct.triggered.connect(self.__svnTagList) 449 self.svnTagListAct.triggered.connect(self.__svnTagList)
353 self.actions.append(self.svnTagListAct) 450 self.actions.append(self.svnTagListAct)
354 451
355 self.svnBranchListAct = EricAction( 452 self.svnBranchListAct = EricAction(
356 self.tr('List branches'), 453 self.tr("List branches"),
357 self.tr('List branches...'), 454 self.tr("List branches..."),
358 0, 0, self, 'pysvn_list_branches') 455 0,
359 self.svnBranchListAct.setStatusTip(self.tr( 456 0,
360 'List branches of the project' 457 self,
361 )) 458 "pysvn_list_branches",
362 self.svnBranchListAct.setWhatsThis(self.tr( 459 )
363 """<b>List branches</b>""" 460 self.svnBranchListAct.setStatusTip(self.tr("List branches of the project"))
364 """<p>This lists the branches of the project.</p>""" 461 self.svnBranchListAct.setWhatsThis(
365 )) 462 self.tr(
463 """<b>List branches</b>"""
464 """<p>This lists the branches of the project.</p>"""
465 )
466 )
366 self.svnBranchListAct.triggered.connect(self.__svnBranchList) 467 self.svnBranchListAct.triggered.connect(self.__svnBranchList)
367 self.actions.append(self.svnBranchListAct) 468 self.actions.append(self.svnBranchListAct)
368 469
369 self.svnListAct = EricAction( 470 self.svnListAct = EricAction(
370 self.tr('List repository contents'), 471 self.tr("List repository contents"),
371 self.tr('List repository contents...'), 472 self.tr("List repository contents..."),
372 0, 0, self, 'pysvn_contents') 473 0,
373 self.svnListAct.setStatusTip(self.tr( 474 0,
374 'Lists the contents of the repository' 475 self,
375 )) 476 "pysvn_contents",
376 self.svnListAct.setWhatsThis(self.tr( 477 )
377 """<b>List repository contents</b>""" 478 self.svnListAct.setStatusTip(self.tr("Lists the contents of the repository"))
378 """<p>This lists the contents of the repository.</p>""" 479 self.svnListAct.setWhatsThis(
379 )) 480 self.tr(
481 """<b>List repository contents</b>"""
482 """<p>This lists the contents of the repository.</p>"""
483 )
484 )
380 self.svnListAct.triggered.connect(self.__svnTagList) 485 self.svnListAct.triggered.connect(self.__svnTagList)
381 self.actions.append(self.svnListAct) 486 self.actions.append(self.svnListAct)
382 487
383 self.svnPropSetAct = EricAction( 488 self.svnPropSetAct = EricAction(
384 self.tr('Set Property'), 489 self.tr("Set Property"),
385 self.tr('Set Property...'), 490 self.tr("Set Property..."),
386 0, 0, self, 'pysvn_property_set') 491 0,
387 self.svnPropSetAct.setStatusTip(self.tr( 492 0,
388 'Set a property for the project files' 493 self,
389 )) 494 "pysvn_property_set",
390 self.svnPropSetAct.setWhatsThis(self.tr( 495 )
391 """<b>Set Property</b>""" 496 self.svnPropSetAct.setStatusTip(self.tr("Set a property for the project files"))
392 """<p>This sets a property for the project files.</p>""" 497 self.svnPropSetAct.setWhatsThis(
393 )) 498 self.tr(
499 """<b>Set Property</b>"""
500 """<p>This sets a property for the project files.</p>"""
501 )
502 )
394 self.svnPropSetAct.triggered.connect(self.__svnPropSet) 503 self.svnPropSetAct.triggered.connect(self.__svnPropSet)
395 self.actions.append(self.svnPropSetAct) 504 self.actions.append(self.svnPropSetAct)
396 505
397 self.svnPropListAct = EricAction( 506 self.svnPropListAct = EricAction(
398 self.tr('List Properties'), 507 self.tr("List Properties"),
399 self.tr('List Properties...'), 508 self.tr("List Properties..."),
400 0, 0, self, 'pysvn_property_list') 509 0,
401 self.svnPropListAct.setStatusTip(self.tr( 510 0,
402 'List properties of the project files' 511 self,
403 )) 512 "pysvn_property_list",
404 self.svnPropListAct.setWhatsThis(self.tr( 513 )
405 """<b>List Properties</b>""" 514 self.svnPropListAct.setStatusTip(
406 """<p>This lists the properties of the project files.</p>""" 515 self.tr("List properties of the project files")
407 )) 516 )
517 self.svnPropListAct.setWhatsThis(
518 self.tr(
519 """<b>List Properties</b>"""
520 """<p>This lists the properties of the project files.</p>"""
521 )
522 )
408 self.svnPropListAct.triggered.connect(self.__svnPropList) 523 self.svnPropListAct.triggered.connect(self.__svnPropList)
409 self.actions.append(self.svnPropListAct) 524 self.actions.append(self.svnPropListAct)
410 525
411 self.svnPropDelAct = EricAction( 526 self.svnPropDelAct = EricAction(
412 self.tr('Delete Property'), 527 self.tr("Delete Property"),
413 self.tr('Delete Property...'), 528 self.tr("Delete Property..."),
414 0, 0, self, 'pysvn_property_delete') 529 0,
415 self.svnPropDelAct.setStatusTip(self.tr( 530 0,
416 'Delete a property for the project files' 531 self,
417 )) 532 "pysvn_property_delete",
418 self.svnPropDelAct.setWhatsThis(self.tr( 533 )
419 """<b>Delete Property</b>""" 534 self.svnPropDelAct.setStatusTip(
420 """<p>This deletes a property for the project files.</p>""" 535 self.tr("Delete a property for the project files")
421 )) 536 )
537 self.svnPropDelAct.setWhatsThis(
538 self.tr(
539 """<b>Delete Property</b>"""
540 """<p>This deletes a property for the project files.</p>"""
541 )
542 )
422 self.svnPropDelAct.triggered.connect(self.__svnPropDel) 543 self.svnPropDelAct.triggered.connect(self.__svnPropDel)
423 self.actions.append(self.svnPropDelAct) 544 self.actions.append(self.svnPropDelAct)
424 545
425 self.svnRelocateAct = EricAction( 546 self.svnRelocateAct = EricAction(
426 self.tr('Relocate'), 547 self.tr("Relocate"),
427 UI.PixmapCache.getIcon("vcsSwitch"), 548 UI.PixmapCache.getIcon("vcsSwitch"),
428 self.tr('Relocate...'), 549 self.tr("Relocate..."),
429 0, 0, self, 'pysvn_relocate') 550 0,
430 self.svnRelocateAct.setStatusTip(self.tr( 551 0,
431 'Relocate the working copy to a new repository URL' 552 self,
432 )) 553 "pysvn_relocate",
433 self.svnRelocateAct.setWhatsThis(self.tr( 554 )
434 """<b>Relocate</b>""" 555 self.svnRelocateAct.setStatusTip(
435 """<p>This relocates the working copy to a new repository""" 556 self.tr("Relocate the working copy to a new repository URL")
436 """ URL.</p>""" 557 )
437 )) 558 self.svnRelocateAct.setWhatsThis(
559 self.tr(
560 """<b>Relocate</b>"""
561 """<p>This relocates the working copy to a new repository"""
562 """ URL.</p>"""
563 )
564 )
438 self.svnRelocateAct.triggered.connect(self.__svnRelocate) 565 self.svnRelocateAct.triggered.connect(self.__svnRelocate)
439 self.actions.append(self.svnRelocateAct) 566 self.actions.append(self.svnRelocateAct)
440 567
441 self.svnRepoBrowserAct = EricAction( 568 self.svnRepoBrowserAct = EricAction(
442 self.tr('Repository Browser'), 569 self.tr("Repository Browser"),
443 UI.PixmapCache.getIcon("vcsRepoBrowser"), 570 UI.PixmapCache.getIcon("vcsRepoBrowser"),
444 self.tr('Repository Browser...'), 571 self.tr("Repository Browser..."),
445 0, 0, self, 'pysvn_repo_browser') 572 0,
446 self.svnRepoBrowserAct.setStatusTip(self.tr( 573 0,
447 'Show the Repository Browser dialog' 574 self,
448 )) 575 "pysvn_repo_browser",
449 self.svnRepoBrowserAct.setWhatsThis(self.tr( 576 )
450 """<b>Repository Browser</b>""" 577 self.svnRepoBrowserAct.setStatusTip(
451 """<p>This shows the Repository Browser dialog.</p>""" 578 self.tr("Show the Repository Browser dialog")
452 )) 579 )
580 self.svnRepoBrowserAct.setWhatsThis(
581 self.tr(
582 """<b>Repository Browser</b>"""
583 """<p>This shows the Repository Browser dialog.</p>"""
584 )
585 )
453 self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser) 586 self.svnRepoBrowserAct.triggered.connect(self.__svnRepoBrowser)
454 self.actions.append(self.svnRepoBrowserAct) 587 self.actions.append(self.svnRepoBrowserAct)
455 588
456 self.svnConfigAct = EricAction( 589 self.svnConfigAct = EricAction(
457 self.tr('Configure'), 590 self.tr("Configure"), self.tr("Configure..."), 0, 0, self, "pysvn_configure"
458 self.tr('Configure...'), 591 )
459 0, 0, self, 'pysvn_configure') 592 self.svnConfigAct.setStatusTip(
460 self.svnConfigAct.setStatusTip(self.tr( 593 self.tr("Show the configuration dialog with the Subversion page selected")
461 'Show the configuration dialog with the Subversion page selected' 594 )
462 )) 595 self.svnConfigAct.setWhatsThis(
463 self.svnConfigAct.setWhatsThis(self.tr( 596 self.tr(
464 """<b>Configure</b>""" 597 """<b>Configure</b>"""
465 """<p>Show the configuration dialog with the Subversion page""" 598 """<p>Show the configuration dialog with the Subversion page"""
466 """ selected.</p>""" 599 """ selected.</p>"""
467 )) 600 )
601 )
468 self.svnConfigAct.triggered.connect(self.__svnConfigure) 602 self.svnConfigAct.triggered.connect(self.__svnConfigure)
469 self.actions.append(self.svnConfigAct) 603 self.actions.append(self.svnConfigAct)
470 604
471 self.svnUpgradeAct = EricAction( 605 self.svnUpgradeAct = EricAction(
472 self.tr('Upgrade'), 606 self.tr("Upgrade"), self.tr("Upgrade..."), 0, 0, self, "pysvn_upgrade"
473 self.tr('Upgrade...'), 607 )
474 0, 0, self, 'pysvn_upgrade') 608 self.svnUpgradeAct.setStatusTip(
475 self.svnUpgradeAct.setStatusTip(self.tr( 609 self.tr("Upgrade the working copy to the current format")
476 'Upgrade the working copy to the current format' 610 )
477 )) 611 self.svnUpgradeAct.setWhatsThis(
478 self.svnUpgradeAct.setWhatsThis(self.tr( 612 self.tr(
479 """<b>Upgrade</b>""" 613 """<b>Upgrade</b>"""
480 """<p>Upgrades the working copy to the current format.</p>""" 614 """<p>Upgrades the working copy to the current format.</p>"""
481 )) 615 )
616 )
482 self.svnUpgradeAct.triggered.connect(self.__svnUpgrade) 617 self.svnUpgradeAct.triggered.connect(self.__svnUpgrade)
483 self.actions.append(self.svnUpgradeAct) 618 self.actions.append(self.svnUpgradeAct)
484 619
485 def initMenu(self, menu): 620 def initMenu(self, menu):
486 """ 621 """
487 Public method to generate the VCS menu. 622 Public method to generate the VCS menu.
488 623
489 @param menu reference to the menu to be populated (QMenu) 624 @param menu reference to the menu to be populated (QMenu)
490 """ 625 """
491 menu.clear() 626 menu.clear()
492 627
493 act = menu.addAction( 628 act = menu.addAction(
494 UI.PixmapCache.getIcon( 629 UI.PixmapCache.getIcon(
495 os.path.join("VcsPlugins", "vcsPySvn", "icons", "pysvn.svg")), 630 os.path.join("VcsPlugins", "vcsPySvn", "icons", "pysvn.svg")
496 self.vcs.vcsName(), self._vcsInfoDisplay) 631 ),
632 self.vcs.vcsName(),
633 self._vcsInfoDisplay,
634 )
497 font = act.font() 635 font = act.font()
498 font.setBold(True) 636 font.setBold(True)
499 act.setFont(font) 637 act.setFont(font)
500 menu.addSeparator() 638 menu.addSeparator()
501 639
502 menu.addAction(self.vcsUpdateAct) 640 menu.addAction(self.vcsUpdateAct)
503 menu.addAction(self.vcsCommitAct) 641 menu.addAction(self.vcsCommitAct)
504 menu.addSeparator() 642 menu.addSeparator()
505 menu.addAction(self.vcsTagAct) 643 menu.addAction(self.vcsTagAct)
506 if self.vcs.otherData["standardLayout"]: 644 if self.vcs.otherData["standardLayout"]:
540 menu.addSeparator() 678 menu.addSeparator()
541 menu.addAction(self.svnConfigAct) 679 menu.addAction(self.svnConfigAct)
542 menu.addSeparator() 680 menu.addSeparator()
543 menu.addAction(self.vcsNewAct) 681 menu.addAction(self.vcsNewAct)
544 menu.addAction(self.vcsExportAct) 682 menu.addAction(self.vcsExportAct)
545 683
546 def initToolbar(self, ui, toolbarManager): 684 def initToolbar(self, ui, toolbarManager):
547 """ 685 """
548 Public slot to initialize the VCS toolbar. 686 Public slot to initialize the VCS toolbar.
549 687
550 @param ui reference to the main window (UserInterface) 688 @param ui reference to the main window (UserInterface)
551 @param toolbarManager reference to a toolbar manager object 689 @param toolbarManager reference to a toolbar manager object
552 (EricToolBarManager) 690 (EricToolBarManager)
553 """ 691 """
554 self.__toolbar = QToolBar(self.tr("Subversion (pysvn)"), ui) 692 self.__toolbar = QToolBar(self.tr("Subversion (pysvn)"), ui)
555 self.__toolbar.setIconSize(UI.Config.ToolBarIconSize) 693 self.__toolbar.setIconSize(UI.Config.ToolBarIconSize)
556 self.__toolbar.setObjectName("PySvnToolbar") 694 self.__toolbar.setObjectName("PySvnToolbar")
557 self.__toolbar.setToolTip(self.tr('Subversion (pysvn)')) 695 self.__toolbar.setToolTip(self.tr("Subversion (pysvn)"))
558 696
559 self.__toolbar.addAction(self.svnLogBrowserAct) 697 self.__toolbar.addAction(self.svnLogBrowserAct)
560 self.__toolbar.addAction(self.vcsStatusAct) 698 self.__toolbar.addAction(self.vcsStatusAct)
561 self.__toolbar.addSeparator() 699 self.__toolbar.addSeparator()
562 self.__toolbar.addAction(self.vcsDiffAct) 700 self.__toolbar.addAction(self.vcsDiffAct)
563 self.__toolbar.addSeparator() 701 self.__toolbar.addSeparator()
564 self.__toolbar.addAction(self.svnRepoBrowserAct) 702 self.__toolbar.addAction(self.svnRepoBrowserAct)
565 self.__toolbar.addAction(self.vcsNewAct) 703 self.__toolbar.addAction(self.vcsNewAct)
566 self.__toolbar.addAction(self.vcsExportAct) 704 self.__toolbar.addAction(self.vcsExportAct)
567 self.__toolbar.addSeparator() 705 self.__toolbar.addSeparator()
568 706
569 title = self.__toolbar.windowTitle() 707 title = self.__toolbar.windowTitle()
570 toolbarManager.addToolBar(self.__toolbar, title) 708 toolbarManager.addToolBar(self.__toolbar, title)
571 toolbarManager.addAction(self.vcsUpdateAct, title) 709 toolbarManager.addAction(self.vcsUpdateAct, title)
572 toolbarManager.addAction(self.vcsCommitAct, title) 710 toolbarManager.addAction(self.vcsCommitAct, title)
573 toolbarManager.addAction(self.svnExtDiffAct, title) 711 toolbarManager.addAction(self.svnExtDiffAct, title)
577 toolbarManager.addAction(self.vcsTagAct, title) 715 toolbarManager.addAction(self.vcsTagAct, title)
578 toolbarManager.addAction(self.vcsRevertAct, title) 716 toolbarManager.addAction(self.vcsRevertAct, title)
579 toolbarManager.addAction(self.vcsMergeAct, title) 717 toolbarManager.addAction(self.vcsMergeAct, title)
580 toolbarManager.addAction(self.vcsSwitchAct, title) 718 toolbarManager.addAction(self.vcsSwitchAct, title)
581 toolbarManager.addAction(self.svnRelocateAct, title) 719 toolbarManager.addAction(self.svnRelocateAct, title)
582 720
583 self.__toolbar.setEnabled(False) 721 self.__toolbar.setEnabled(False)
584 self.__toolbar.setVisible(False) 722 self.__toolbar.setVisible(False)
585 723
586 ui.registerToolbar("pysvn", self.__toolbar.windowTitle(), 724 ui.registerToolbar("pysvn", self.__toolbar.windowTitle(), self.__toolbar, "vcs")
587 self.__toolbar, "vcs")
588 ui.addToolBar(self.__toolbar) 725 ui.addToolBar(self.__toolbar)
589 726
590 def removeToolbar(self, ui, toolbarManager): 727 def removeToolbar(self, ui, toolbarManager):
591 """ 728 """
592 Public method to remove a toolbar created by initToolbar(). 729 Public method to remove a toolbar created by initToolbar().
593 730
594 @param ui reference to the main window (UserInterface) 731 @param ui reference to the main window (UserInterface)
595 @param toolbarManager reference to a toolbar manager object 732 @param toolbarManager reference to a toolbar manager object
596 (EricToolBarManager) 733 (EricToolBarManager)
597 """ 734 """
598 ui.removeToolBar(self.__toolbar) 735 ui.removeToolBar(self.__toolbar)
599 ui.unregisterToolbar("pysvn") 736 ui.unregisterToolbar("pysvn")
600 737
601 title = self.__toolbar.windowTitle() 738 title = self.__toolbar.windowTitle()
602 toolbarManager.removeCategoryActions(title) 739 toolbarManager.removeCategoryActions(title)
603 toolbarManager.removeToolBar(self.__toolbar) 740 toolbarManager.removeToolBar(self.__toolbar)
604 741
605 self.__toolbar.deleteLater() 742 self.__toolbar.deleteLater()
606 self.__toolbar = None 743 self.__toolbar = None
607 744
608 def __svnResolve(self): 745 def __svnResolve(self):
609 """ 746 """
610 Private slot used to resolve conflicts of the local project. 747 Private slot used to resolve conflicts of the local project.
611 """ 748 """
612 self.vcs.vcsResolved(self.project.ppath) 749 self.vcs.vcsResolved(self.project.ppath)
613 750
614 def __svnPropList(self): 751 def __svnPropList(self):
615 """ 752 """
616 Private slot used to list the properties of the project files. 753 Private slot used to list the properties of the project files.
617 """ 754 """
618 self.vcs.svnListProps(self.project.ppath, True) 755 self.vcs.svnListProps(self.project.ppath, True)
619 756
620 def __svnPropSet(self): 757 def __svnPropSet(self):
621 """ 758 """
622 Private slot used to set a property for the project files. 759 Private slot used to set a property for the project files.
623 """ 760 """
624 self.vcs.svnSetProp(self.project.ppath, True) 761 self.vcs.svnSetProp(self.project.ppath, True)
625 762
626 def __svnPropDel(self): 763 def __svnPropDel(self):
627 """ 764 """
628 Private slot used to delete a property for the project files. 765 Private slot used to delete a property for the project files.
629 """ 766 """
630 self.vcs.svnDelProp(self.project.ppath, True) 767 self.vcs.svnDelProp(self.project.ppath, True)
631 768
632 def __svnTagList(self): 769 def __svnTagList(self):
633 """ 770 """
634 Private slot used to list the tags of the project. 771 Private slot used to list the tags of the project.
635 """ 772 """
636 self.vcs.svnListTagBranch(self.project.ppath, True) 773 self.vcs.svnListTagBranch(self.project.ppath, True)
637 774
638 def __svnBranchList(self): 775 def __svnBranchList(self):
639 """ 776 """
640 Private slot used to list the branches of the project. 777 Private slot used to list the branches of the project.
641 """ 778 """
642 self.vcs.svnListTagBranch(self.project.ppath, False) 779 self.vcs.svnListTagBranch(self.project.ppath, False)
643 780
644 def __svnExtendedDiff(self): 781 def __svnExtendedDiff(self):
645 """ 782 """
646 Private slot used to perform a svn diff with the selection of 783 Private slot used to perform a svn diff with the selection of
647 revisions. 784 revisions.
648 """ 785 """
649 self.vcs.svnExtendedDiff(self.project.ppath) 786 self.vcs.svnExtendedDiff(self.project.ppath)
650 787
651 def __svnUrlDiff(self): 788 def __svnUrlDiff(self):
652 """ 789 """
653 Private slot used to perform a svn diff with the selection of 790 Private slot used to perform a svn diff with the selection of
654 repository URLs. 791 repository URLs.
655 """ 792 """
656 self.vcs.svnUrlDiff(self.project.ppath) 793 self.vcs.svnUrlDiff(self.project.ppath)
657 794
658 def __svnInfo(self): 795 def __svnInfo(self):
659 """ 796 """
660 Private slot used to show repository information for the local project. 797 Private slot used to show repository information for the local project.
661 """ 798 """
662 self.vcs.svnInfo(self.project.ppath, ".") 799 self.vcs.svnInfo(self.project.ppath, ".")
663 800
664 def __svnRelocate(self): 801 def __svnRelocate(self):
665 """ 802 """
666 Private slot used to relocate the working copy to a new repository URL. 803 Private slot used to relocate the working copy to a new repository URL.
667 """ 804 """
668 self.vcs.svnRelocate(self.project.ppath) 805 self.vcs.svnRelocate(self.project.ppath)
669 806
670 def __svnRepoBrowser(self): 807 def __svnRepoBrowser(self):
671 """ 808 """
672 Private slot to open the repository browser. 809 Private slot to open the repository browser.
673 """ 810 """
674 self.vcs.svnRepoBrowser(projectPath=self.project.ppath) 811 self.vcs.svnRepoBrowser(projectPath=self.project.ppath)
675 812
676 def __svnConfigure(self): 813 def __svnConfigure(self):
677 """ 814 """
678 Private slot to open the configuration dialog. 815 Private slot to open the configuration dialog.
679 """ 816 """
680 ericApp().getObject("UserInterface").showPreferences( 817 ericApp().getObject("UserInterface").showPreferences("zzz_subversionPage")
681 "zzz_subversionPage") 818
682
683 def __svnChangeLists(self): 819 def __svnChangeLists(self):
684 """ 820 """
685 Private slot used to show a list of change lists. 821 Private slot used to show a list of change lists.
686 """ 822 """
687 self.vcs.svnShowChangelists(self.project.ppath) 823 self.vcs.svnShowChangelists(self.project.ppath)
688 824
689 def __svnUpgrade(self): 825 def __svnUpgrade(self):
690 """ 826 """
691 Private slot used to upgrade the working copy format. 827 Private slot used to upgrade the working copy format.
692 """ 828 """
693 self.vcs.svnUpgrade(self.project.ppath) 829 self.vcs.svnUpgrade(self.project.ppath)

eric ide

mercurial