eric6/Documentation/Source/eric6.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog.html

changeset 6942
2602857055c5
parent 5449
7679d1d3671a
child 7273
391d6b7b1eff
equal deleted inserted replaced
6941:f99d60d6b59b 6942:2602857055c5
1 <!DOCTYPE html>
2 <html><head>
3 <title>eric6.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog</title>
4 <meta charset="UTF-8">
5 <style>
6 body {
7 background: #EDECE6;
8 margin: 0em 1em 10em 1em;
9 color: black;
10 }
11
12 h1 { color: white; background: #85774A; }
13 h2 { color: white; background: #85774A; }
14 h3 { color: white; background: #9D936E; }
15 h4 { color: white; background: #9D936E; }
16
17 a { color: #BA6D36; }
18
19 </style>
20 </head>
21 <body><a NAME="top" ID="top"></a>
22 <h1>eric6.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog</h1>
23 <p>
24 Module implementing a dialog to browse the log history.
25 </p>
26 <h3>Global Attributes</h3>
27 <table>
28 <tr><td>None</td></tr>
29 </table>
30 <h3>Classes</h3>
31 <table>
32 <tr>
33 <td><a href="#SvnLogBrowserDialog">SvnLogBrowserDialog</a></td>
34 <td>Class implementing a dialog to browse the log history.</td>
35 </tr>
36 </table>
37 <h3>Functions</h3>
38 <table>
39 <tr><td>None</td></tr>
40 </table>
41 <hr /><hr />
42 <a NAME="SvnLogBrowserDialog" ID="SvnLogBrowserDialog"></a>
43 <h2>SvnLogBrowserDialog</h2>
44 <p>
45 Class implementing a dialog to browse the log history.
46 </p>
47 <h3>Derived from</h3>
48 QWidget, SvnDialogMixin, Ui_SvnLogBrowserDialog
49 <h3>Class Attributes</h3>
50 <table>
51 <tr><td>None</td></tr>
52 </table>
53 <h3>Class Methods</h3>
54 <table>
55 <tr><td>None</td></tr>
56 </table>
57 <h3>Methods</h3>
58 <table>
59 <tr>
60 <td><a href="#SvnLogBrowserDialog.__init__">SvnLogBrowserDialog</a></td>
61 <td>Constructor</td>
62 </tr><tr>
63 <td><a href="#SvnLogBrowserDialog.__diffRevisions">__diffRevisions</a></td>
64 <td>Private method to do a diff of two revisions.</td>
65 </tr><tr>
66 <td><a href="#SvnLogBrowserDialog.__filterLogs">__filterLogs</a></td>
67 <td>Private method to filter the log entries.</td>
68 </tr><tr>
69 <td><a href="#SvnLogBrowserDialog.__finish">__finish</a></td>
70 <td>Private slot called when the user pressed the button.</td>
71 </tr><tr>
72 <td><a href="#SvnLogBrowserDialog.__generateFileItem">__generateFileItem</a></td>
73 <td>Private method to generate a changed files tree entry.</td>
74 </tr><tr>
75 <td><a href="#SvnLogBrowserDialog.__generateLogItem">__generateLogItem</a></td>
76 <td>Private method to generate a log tree entry.</td>
77 </tr><tr>
78 <td><a href="#SvnLogBrowserDialog.__getLogEntries">__getLogEntries</a></td>
79 <td>Private method to retrieve log entries from the repository.</td>
80 </tr><tr>
81 <td><a href="#SvnLogBrowserDialog.__initData">__initData</a></td>
82 <td>Private method to (re-)initialize some data.</td>
83 </tr><tr>
84 <td><a href="#SvnLogBrowserDialog.__resetUI">__resetUI</a></td>
85 <td>Private method to reset the user interface.</td>
86 </tr><tr>
87 <td><a href="#SvnLogBrowserDialog.__resizeColumnsFiles">__resizeColumnsFiles</a></td>
88 <td>Private method to resize the changed files tree columns.</td>
89 </tr><tr>
90 <td><a href="#SvnLogBrowserDialog.__resizeColumnsLog">__resizeColumnsLog</a></td>
91 <td>Private method to resize the log tree columns.</td>
92 </tr><tr>
93 <td><a href="#SvnLogBrowserDialog.__resortFiles">__resortFiles</a></td>
94 <td>Private method to resort the changed files tree.</td>
95 </tr><tr>
96 <td><a href="#SvnLogBrowserDialog.__resortLog">__resortLog</a></td>
97 <td>Private method to resort the log tree.</td>
98 </tr><tr>
99 <td><a href="#SvnLogBrowserDialog.__showError">__showError</a></td>
100 <td>Private slot to show an error message.</td>
101 </tr><tr>
102 <td><a href="#SvnLogBrowserDialog._reset">_reset</a></td>
103 <td>Protected method to reset the internal state of the dialog.</td>
104 </tr><tr>
105 <td><a href="#SvnLogBrowserDialog.closeEvent">closeEvent</a></td>
106 <td>Protected slot implementing a close event handler.</td>
107 </tr><tr>
108 <td><a href="#SvnLogBrowserDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td>
109 <td>Private slot called by a button of the button box clicked.</td>
110 </tr><tr>
111 <td><a href="#SvnLogBrowserDialog.on_diffPreviousButton_clicked">on_diffPreviousButton_clicked</a></td>
112 <td>Private slot to handle the Diff to Previous button.</td>
113 </tr><tr>
114 <td><a href="#SvnLogBrowserDialog.on_diffRevisionsButton_clicked">on_diffRevisionsButton_clicked</a></td>
115 <td>Private slot to handle the Compare Revisions button.</td>
116 </tr><tr>
117 <td><a href="#SvnLogBrowserDialog.on_downButton_clicked">on_downButton_clicked</a></td>
118 <td>Private slot to move the current item down one entry.</td>
119 </tr><tr>
120 <td><a href="#SvnLogBrowserDialog.on_fieldCombo_activated">on_fieldCombo_activated</a></td>
121 <td>Private slot called, when a new filter field is selected.</td>
122 </tr><tr>
123 <td><a href="#SvnLogBrowserDialog.on_fromDate_dateChanged">on_fromDate_dateChanged</a></td>
124 <td>Private slot called, when the from date changes.</td>
125 </tr><tr>
126 <td><a href="#SvnLogBrowserDialog.on_logTree_currentItemChanged">on_logTree_currentItemChanged</a></td>
127 <td>Private slot called, when the current item of the log tree changes.</td>
128 </tr><tr>
129 <td><a href="#SvnLogBrowserDialog.on_logTree_itemSelectionChanged">on_logTree_itemSelectionChanged</a></td>
130 <td>Private slot called, when the selection has changed.</td>
131 </tr><tr>
132 <td><a href="#SvnLogBrowserDialog.on_nextButton_clicked">on_nextButton_clicked</a></td>
133 <td>Private slot to handle the Next button.</td>
134 </tr><tr>
135 <td><a href="#SvnLogBrowserDialog.on_rxEdit_textChanged">on_rxEdit_textChanged</a></td>
136 <td>Private slot called, when a filter expression is entered.</td>
137 </tr><tr>
138 <td><a href="#SvnLogBrowserDialog.on_stopCheckBox_clicked">on_stopCheckBox_clicked</a></td>
139 <td>Private slot called, when the stop on copy/move checkbox is clicked.</td>
140 </tr><tr>
141 <td><a href="#SvnLogBrowserDialog.on_toDate_dateChanged">on_toDate_dateChanged</a></td>
142 <td>Private slot called, when the from date changes.</td>
143 </tr><tr>
144 <td><a href="#SvnLogBrowserDialog.on_upButton_clicked">on_upButton_clicked</a></td>
145 <td>Private slot to move the current item up one entry.</td>
146 </tr><tr>
147 <td><a href="#SvnLogBrowserDialog.show">show</a></td>
148 <td>Public slot to show the dialog.</td>
149 </tr><tr>
150 <td><a href="#SvnLogBrowserDialog.start">start</a></td>
151 <td>Public slot to start the svn log command.</td>
152 </tr>
153 </table>
154 <h3>Static Methods</h3>
155 <table>
156 <tr><td>None</td></tr>
157 </table>
158 <a NAME="SvnLogBrowserDialog.__init__" ID="SvnLogBrowserDialog.__init__"></a>
159 <h4>SvnLogBrowserDialog (Constructor)</h4>
160 <b>SvnLogBrowserDialog</b>(<i>vcs, parent=None</i>)
161 <p>
162 Constructor
163 </p><dl>
164 <dt><i>vcs</i></dt>
165 <dd>
166 reference to the vcs object
167 </dd><dt><i>parent</i></dt>
168 <dd>
169 parent widget (QWidget)
170 </dd>
171 </dl><a NAME="SvnLogBrowserDialog.__diffRevisions" ID="SvnLogBrowserDialog.__diffRevisions"></a>
172 <h4>SvnLogBrowserDialog.__diffRevisions</h4>
173 <b>__diffRevisions</b>(<i>rev1, rev2, peg_rev</i>)
174 <p>
175 Private method to do a diff of two revisions.
176 </p><dl>
177 <dt><i>rev1</i></dt>
178 <dd>
179 first revision number (integer)
180 </dd><dt><i>rev2</i></dt>
181 <dd>
182 second revision number (integer)
183 </dd><dt><i>peg_rev</i></dt>
184 <dd>
185 revision number to use as a reference (integer)
186 </dd>
187 </dl><a NAME="SvnLogBrowserDialog.__filterLogs" ID="SvnLogBrowserDialog.__filterLogs"></a>
188 <h4>SvnLogBrowserDialog.__filterLogs</h4>
189 <b>__filterLogs</b>(<i></i>)
190 <p>
191 Private method to filter the log entries.
192 </p><a NAME="SvnLogBrowserDialog.__finish" ID="SvnLogBrowserDialog.__finish"></a>
193 <h4>SvnLogBrowserDialog.__finish</h4>
194 <b>__finish</b>(<i></i>)
195 <p>
196 Private slot called when the user pressed the button.
197 </p><a NAME="SvnLogBrowserDialog.__generateFileItem" ID="SvnLogBrowserDialog.__generateFileItem"></a>
198 <h4>SvnLogBrowserDialog.__generateFileItem</h4>
199 <b>__generateFileItem</b>(<i>action, path, copyFrom, copyRev</i>)
200 <p>
201 Private method to generate a changed files tree entry.
202 </p><dl>
203 <dt><i>action</i></dt>
204 <dd>
205 indicator for the change action ("A", "D" or "M")
206 </dd><dt><i>path</i></dt>
207 <dd>
208 path of the file in the repository (string)
209 </dd><dt><i>copyFrom</i></dt>
210 <dd>
211 path the file was copied from (None, string)
212 </dd><dt><i>copyRev</i></dt>
213 <dd>
214 revision the file was copied from (None, string)
215 </dd>
216 </dl><dl>
217 <dt>Returns:</dt>
218 <dd>
219 reference to the generated item (QTreeWidgetItem)
220 </dd>
221 </dl><a NAME="SvnLogBrowserDialog.__generateLogItem" ID="SvnLogBrowserDialog.__generateLogItem"></a>
222 <h4>SvnLogBrowserDialog.__generateLogItem</h4>
223 <b>__generateLogItem</b>(<i>author, date, message, revision, changedPaths</i>)
224 <p>
225 Private method to generate a log tree entry.
226 </p><dl>
227 <dt><i>author</i></dt>
228 <dd>
229 author info (string)
230 </dd><dt><i>date</i></dt>
231 <dd>
232 date info (integer)
233 </dd><dt><i>message</i></dt>
234 <dd>
235 text of the log message (string)
236 </dd><dt><i>revision</i></dt>
237 <dd>
238 revision info (string or pysvn.opt_revision_kind)
239 </dd><dt><i>changedPaths</i></dt>
240 <dd>
241 list of pysvn dictionary like objects containing
242 info about the changed files/directories
243 </dd>
244 </dl><dl>
245 <dt>Returns:</dt>
246 <dd>
247 reference to the generated item (QTreeWidgetItem)
248 </dd>
249 </dl><a NAME="SvnLogBrowserDialog.__getLogEntries" ID="SvnLogBrowserDialog.__getLogEntries"></a>
250 <h4>SvnLogBrowserDialog.__getLogEntries</h4>
251 <b>__getLogEntries</b>(<i>startRev=None</i>)
252 <p>
253 Private method to retrieve log entries from the repository.
254 </p><dl>
255 <dt><i>startRev</i></dt>
256 <dd>
257 revision number to start from (integer, string)
258 </dd>
259 </dl><a NAME="SvnLogBrowserDialog.__initData" ID="SvnLogBrowserDialog.__initData"></a>
260 <h4>SvnLogBrowserDialog.__initData</h4>
261 <b>__initData</b>(<i></i>)
262 <p>
263 Private method to (re-)initialize some data.
264 </p><a NAME="SvnLogBrowserDialog.__resetUI" ID="SvnLogBrowserDialog.__resetUI"></a>
265 <h4>SvnLogBrowserDialog.__resetUI</h4>
266 <b>__resetUI</b>(<i></i>)
267 <p>
268 Private method to reset the user interface.
269 </p><a NAME="SvnLogBrowserDialog.__resizeColumnsFiles" ID="SvnLogBrowserDialog.__resizeColumnsFiles"></a>
270 <h4>SvnLogBrowserDialog.__resizeColumnsFiles</h4>
271 <b>__resizeColumnsFiles</b>(<i></i>)
272 <p>
273 Private method to resize the changed files tree columns.
274 </p><a NAME="SvnLogBrowserDialog.__resizeColumnsLog" ID="SvnLogBrowserDialog.__resizeColumnsLog"></a>
275 <h4>SvnLogBrowserDialog.__resizeColumnsLog</h4>
276 <b>__resizeColumnsLog</b>(<i></i>)
277 <p>
278 Private method to resize the log tree columns.
279 </p><a NAME="SvnLogBrowserDialog.__resortFiles" ID="SvnLogBrowserDialog.__resortFiles"></a>
280 <h4>SvnLogBrowserDialog.__resortFiles</h4>
281 <b>__resortFiles</b>(<i></i>)
282 <p>
283 Private method to resort the changed files tree.
284 </p><a NAME="SvnLogBrowserDialog.__resortLog" ID="SvnLogBrowserDialog.__resortLog"></a>
285 <h4>SvnLogBrowserDialog.__resortLog</h4>
286 <b>__resortLog</b>(<i></i>)
287 <p>
288 Private method to resort the log tree.
289 </p><a NAME="SvnLogBrowserDialog.__showError" ID="SvnLogBrowserDialog.__showError"></a>
290 <h4>SvnLogBrowserDialog.__showError</h4>
291 <b>__showError</b>(<i>msg</i>)
292 <p>
293 Private slot to show an error message.
294 </p><dl>
295 <dt><i>msg</i></dt>
296 <dd>
297 error message to show (string)
298 </dd>
299 </dl><a NAME="SvnLogBrowserDialog._reset" ID="SvnLogBrowserDialog._reset"></a>
300 <h4>SvnLogBrowserDialog._reset</h4>
301 <b>_reset</b>(<i></i>)
302 <p>
303 Protected method to reset the internal state of the dialog.
304 </p><a NAME="SvnLogBrowserDialog.closeEvent" ID="SvnLogBrowserDialog.closeEvent"></a>
305 <h4>SvnLogBrowserDialog.closeEvent</h4>
306 <b>closeEvent</b>(<i>e</i>)
307 <p>
308 Protected slot implementing a close event handler.
309 </p><dl>
310 <dt><i>e</i></dt>
311 <dd>
312 close event (QCloseEvent)
313 </dd>
314 </dl><a NAME="SvnLogBrowserDialog.on_buttonBox_clicked" ID="SvnLogBrowserDialog.on_buttonBox_clicked"></a>
315 <h4>SvnLogBrowserDialog.on_buttonBox_clicked</h4>
316 <b>on_buttonBox_clicked</b>(<i>button</i>)
317 <p>
318 Private slot called by a button of the button box clicked.
319 </p><dl>
320 <dt><i>button</i></dt>
321 <dd>
322 button that was clicked (QAbstractButton)
323 </dd>
324 </dl><a NAME="SvnLogBrowserDialog.on_diffPreviousButton_clicked" ID="SvnLogBrowserDialog.on_diffPreviousButton_clicked"></a>
325 <h4>SvnLogBrowserDialog.on_diffPreviousButton_clicked</h4>
326 <b>on_diffPreviousButton_clicked</b>(<i></i>)
327 <p>
328 Private slot to handle the Diff to Previous button.
329 </p><a NAME="SvnLogBrowserDialog.on_diffRevisionsButton_clicked" ID="SvnLogBrowserDialog.on_diffRevisionsButton_clicked"></a>
330 <h4>SvnLogBrowserDialog.on_diffRevisionsButton_clicked</h4>
331 <b>on_diffRevisionsButton_clicked</b>(<i></i>)
332 <p>
333 Private slot to handle the Compare Revisions button.
334 </p><a NAME="SvnLogBrowserDialog.on_downButton_clicked" ID="SvnLogBrowserDialog.on_downButton_clicked"></a>
335 <h4>SvnLogBrowserDialog.on_downButton_clicked</h4>
336 <b>on_downButton_clicked</b>(<i></i>)
337 <p>
338 Private slot to move the current item down one entry.
339 </p><a NAME="SvnLogBrowserDialog.on_fieldCombo_activated" ID="SvnLogBrowserDialog.on_fieldCombo_activated"></a>
340 <h4>SvnLogBrowserDialog.on_fieldCombo_activated</h4>
341 <b>on_fieldCombo_activated</b>(<i>txt</i>)
342 <p>
343 Private slot called, when a new filter field is selected.
344 </p><dl>
345 <dt><i>txt</i></dt>
346 <dd>
347 text of the selected field (string)
348 </dd>
349 </dl><a NAME="SvnLogBrowserDialog.on_fromDate_dateChanged" ID="SvnLogBrowserDialog.on_fromDate_dateChanged"></a>
350 <h4>SvnLogBrowserDialog.on_fromDate_dateChanged</h4>
351 <b>on_fromDate_dateChanged</b>(<i>date</i>)
352 <p>
353 Private slot called, when the from date changes.
354 </p><dl>
355 <dt><i>date</i></dt>
356 <dd>
357 new date (QDate)
358 </dd>
359 </dl><a NAME="SvnLogBrowserDialog.on_logTree_currentItemChanged" ID="SvnLogBrowserDialog.on_logTree_currentItemChanged"></a>
360 <h4>SvnLogBrowserDialog.on_logTree_currentItemChanged</h4>
361 <b>on_logTree_currentItemChanged</b>(<i>current, previous</i>)
362 <p>
363 Private slot called, when the current item of the log tree changes.
364 </p><dl>
365 <dt><i>current</i></dt>
366 <dd>
367 reference to the new current item (QTreeWidgetItem)
368 </dd><dt><i>previous</i></dt>
369 <dd>
370 reference to the old current item (QTreeWidgetItem)
371 </dd>
372 </dl><a NAME="SvnLogBrowserDialog.on_logTree_itemSelectionChanged" ID="SvnLogBrowserDialog.on_logTree_itemSelectionChanged"></a>
373 <h4>SvnLogBrowserDialog.on_logTree_itemSelectionChanged</h4>
374 <b>on_logTree_itemSelectionChanged</b>(<i></i>)
375 <p>
376 Private slot called, when the selection has changed.
377 </p><a NAME="SvnLogBrowserDialog.on_nextButton_clicked" ID="SvnLogBrowserDialog.on_nextButton_clicked"></a>
378 <h4>SvnLogBrowserDialog.on_nextButton_clicked</h4>
379 <b>on_nextButton_clicked</b>(<i></i>)
380 <p>
381 Private slot to handle the Next button.
382 </p><a NAME="SvnLogBrowserDialog.on_rxEdit_textChanged" ID="SvnLogBrowserDialog.on_rxEdit_textChanged"></a>
383 <h4>SvnLogBrowserDialog.on_rxEdit_textChanged</h4>
384 <b>on_rxEdit_textChanged</b>(<i>txt</i>)
385 <p>
386 Private slot called, when a filter expression is entered.
387 </p><dl>
388 <dt><i>txt</i></dt>
389 <dd>
390 filter expression (string)
391 </dd>
392 </dl><a NAME="SvnLogBrowserDialog.on_stopCheckBox_clicked" ID="SvnLogBrowserDialog.on_stopCheckBox_clicked"></a>
393 <h4>SvnLogBrowserDialog.on_stopCheckBox_clicked</h4>
394 <b>on_stopCheckBox_clicked</b>(<i>checked</i>)
395 <p>
396 Private slot called, when the stop on copy/move checkbox is clicked.
397 </p><dl>
398 <dt><i>checked</i></dt>
399 <dd>
400 flag indicating the check box state (boolean)
401 </dd>
402 </dl><a NAME="SvnLogBrowserDialog.on_toDate_dateChanged" ID="SvnLogBrowserDialog.on_toDate_dateChanged"></a>
403 <h4>SvnLogBrowserDialog.on_toDate_dateChanged</h4>
404 <b>on_toDate_dateChanged</b>(<i>date</i>)
405 <p>
406 Private slot called, when the from date changes.
407 </p><dl>
408 <dt><i>date</i></dt>
409 <dd>
410 new date (QDate)
411 </dd>
412 </dl><a NAME="SvnLogBrowserDialog.on_upButton_clicked" ID="SvnLogBrowserDialog.on_upButton_clicked"></a>
413 <h4>SvnLogBrowserDialog.on_upButton_clicked</h4>
414 <b>on_upButton_clicked</b>(<i></i>)
415 <p>
416 Private slot to move the current item up one entry.
417 </p><a NAME="SvnLogBrowserDialog.show" ID="SvnLogBrowserDialog.show"></a>
418 <h4>SvnLogBrowserDialog.show</h4>
419 <b>show</b>(<i></i>)
420 <p>
421 Public slot to show the dialog.
422 </p><a NAME="SvnLogBrowserDialog.start" ID="SvnLogBrowserDialog.start"></a>
423 <h4>SvnLogBrowserDialog.start</h4>
424 <b>start</b>(<i>fn, isFile=False</i>)
425 <p>
426 Public slot to start the svn log command.
427 </p><dl>
428 <dt><i>fn</i></dt>
429 <dd>
430 filename to show the log for (string)
431 </dd><dt><i>isFile=</i></dt>
432 <dd>
433 flag indicating log for a file is to be shown
434 (boolean)
435 </dd>
436 </dl>
437 <div align="right"><a href="#top">Up</a></div>
438 <hr />
439 </body></html>

eric ide

mercurial