|
1 <?xml version="1.0" encoding="utf-8"?> |
|
2 <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' |
|
3 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'> |
|
4 <html><head> |
|
5 <title>eric5.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog</title> |
|
6 <style> |
|
7 b'body {\n background:white;\n margin: 0em 1em 10em 1em;\n color: black;\n}\n\nh1 { color: white; background: #4FA4FF; }\nh2 { color: white; background: #4FA4FF; }\nh3 { color: white; background: #00557F; }\nh4 { color: white; background: #00557F; }\n \na { color: #AA5500; }\n' |
|
8 </style> |
|
9 </head> |
|
10 <body><a NAME="top" ID="top"></a> |
|
11 <h1>eric5.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog</h1> |
|
12 <p> |
|
13 Module implementing a dialog to browse the log history. |
|
14 </p> |
|
15 <h3>Global Attributes</h3> |
|
16 <table> |
|
17 <tr><td>None</td></tr> |
|
18 </table> |
|
19 <h3>Classes</h3> |
|
20 <table> |
|
21 <tr> |
|
22 <td><a href="#SvnLogBrowserDialog">SvnLogBrowserDialog</a></td> |
|
23 <td>Class implementing a dialog to browse the log history.</td> |
|
24 </tr> |
|
25 </table> |
|
26 <h3>Functions</h3> |
|
27 <table> |
|
28 <tr><td>None</td></tr> |
|
29 </table> |
|
30 <hr /><hr /> |
|
31 <a NAME="SvnLogBrowserDialog" ID="SvnLogBrowserDialog"></a> |
|
32 <h2>SvnLogBrowserDialog</h2> |
|
33 <p> |
|
34 Class implementing a dialog to browse the log history. |
|
35 </p> |
|
36 <h3>Derived from</h3> |
|
37 QDialog, SvnDialogMixin, Ui_SvnLogBrowserDialog |
|
38 <h3>Class Attributes</h3> |
|
39 <table> |
|
40 <tr><td>None</td></tr> |
|
41 </table> |
|
42 <h3>Methods</h3> |
|
43 <table> |
|
44 <tr> |
|
45 <td><a href="#SvnLogBrowserDialog.__init__">SvnLogBrowserDialog</a></td> |
|
46 <td>Constructor</td> |
|
47 </tr><tr> |
|
48 <td><a href="#SvnLogBrowserDialog.__diffRevisions">__diffRevisions</a></td> |
|
49 <td>Private method to do a diff of two revisions.</td> |
|
50 </tr><tr> |
|
51 <td><a href="#SvnLogBrowserDialog.__filterLogs">__filterLogs</a></td> |
|
52 <td>Private method to filter the log entries.</td> |
|
53 </tr><tr> |
|
54 <td><a href="#SvnLogBrowserDialog.__finish">__finish</a></td> |
|
55 <td>Private slot called when the user pressed the button.</td> |
|
56 </tr><tr> |
|
57 <td><a href="#SvnLogBrowserDialog.__generateFileItem">__generateFileItem</a></td> |
|
58 <td>Private method to generate a changed files tree entry.</td> |
|
59 </tr><tr> |
|
60 <td><a href="#SvnLogBrowserDialog.__generateLogItem">__generateLogItem</a></td> |
|
61 <td>Private method to generate a log tree entry.</td> |
|
62 </tr><tr> |
|
63 <td><a href="#SvnLogBrowserDialog.__getLogEntries">__getLogEntries</a></td> |
|
64 <td>Private method to retrieve log entries from the repository.</td> |
|
65 </tr><tr> |
|
66 <td><a href="#SvnLogBrowserDialog.__resizeColumnsFiles">__resizeColumnsFiles</a></td> |
|
67 <td>Private method to resize the changed files tree columns.</td> |
|
68 </tr><tr> |
|
69 <td><a href="#SvnLogBrowserDialog.__resizeColumnsLog">__resizeColumnsLog</a></td> |
|
70 <td>Private method to resize the log tree columns.</td> |
|
71 </tr><tr> |
|
72 <td><a href="#SvnLogBrowserDialog.__resortFiles">__resortFiles</a></td> |
|
73 <td>Private method to resort the changed files tree.</td> |
|
74 </tr><tr> |
|
75 <td><a href="#SvnLogBrowserDialog.__resortLog">__resortLog</a></td> |
|
76 <td>Private method to resort the log tree.</td> |
|
77 </tr><tr> |
|
78 <td><a href="#SvnLogBrowserDialog.__showError">__showError</a></td> |
|
79 <td>Private slot to show an error message.</td> |
|
80 </tr><tr> |
|
81 <td><a href="#SvnLogBrowserDialog._reset">_reset</a></td> |
|
82 <td>Protected method to reset the internal state of the dialog.</td> |
|
83 </tr><tr> |
|
84 <td><a href="#SvnLogBrowserDialog.on_buttonBox_clicked">on_buttonBox_clicked</a></td> |
|
85 <td>Private slot called by a button of the button box clicked.</td> |
|
86 </tr><tr> |
|
87 <td><a href="#SvnLogBrowserDialog.on_clearRxEditButton_clicked">on_clearRxEditButton_clicked</a></td> |
|
88 <td>Private slot called by a click of the clear RX edit button.</td> |
|
89 </tr><tr> |
|
90 <td><a href="#SvnLogBrowserDialog.on_diffPreviousButton_clicked">on_diffPreviousButton_clicked</a></td> |
|
91 <td>Private slot to handle the Diff to Previous button.</td> |
|
92 </tr><tr> |
|
93 <td><a href="#SvnLogBrowserDialog.on_diffRevisionsButton_clicked">on_diffRevisionsButton_clicked</a></td> |
|
94 <td>Private slot to handle the Compare Revisions button.</td> |
|
95 </tr><tr> |
|
96 <td><a href="#SvnLogBrowserDialog.on_fieldCombo_activated">on_fieldCombo_activated</a></td> |
|
97 <td>Private slot called, when a new filter field is selected.</td> |
|
98 </tr><tr> |
|
99 <td><a href="#SvnLogBrowserDialog.on_fromDate_dateChanged">on_fromDate_dateChanged</a></td> |
|
100 <td>Private slot called, when the from date changes.</td> |
|
101 </tr><tr> |
|
102 <td><a href="#SvnLogBrowserDialog.on_logTree_currentItemChanged">on_logTree_currentItemChanged</a></td> |
|
103 <td>Private slot called, when the current item of the log tree changes.</td> |
|
104 </tr><tr> |
|
105 <td><a href="#SvnLogBrowserDialog.on_logTree_itemSelectionChanged">on_logTree_itemSelectionChanged</a></td> |
|
106 <td>Private slot called, when the selection has changed.</td> |
|
107 </tr><tr> |
|
108 <td><a href="#SvnLogBrowserDialog.on_nextButton_clicked">on_nextButton_clicked</a></td> |
|
109 <td>Private slot to handle the Next button.</td> |
|
110 </tr><tr> |
|
111 <td><a href="#SvnLogBrowserDialog.on_rxEdit_textChanged">on_rxEdit_textChanged</a></td> |
|
112 <td>Private slot called, when a filter expression is entered.</td> |
|
113 </tr><tr> |
|
114 <td><a href="#SvnLogBrowserDialog.on_stopCheckBox_clicked">on_stopCheckBox_clicked</a></td> |
|
115 <td>Private slot called, when the stop on copy/move checkbox is clicked</td> |
|
116 </tr><tr> |
|
117 <td><a href="#SvnLogBrowserDialog.on_toDate_dateChanged">on_toDate_dateChanged</a></td> |
|
118 <td>Private slot called, when the from date changes.</td> |
|
119 </tr><tr> |
|
120 <td><a href="#SvnLogBrowserDialog.start">start</a></td> |
|
121 <td>Public slot to start the svn log command.</td> |
|
122 </tr> |
|
123 </table> |
|
124 <a NAME="SvnLogBrowserDialog.__init__" ID="SvnLogBrowserDialog.__init__"></a> |
|
125 <h4>SvnLogBrowserDialog (Constructor)</h4> |
|
126 <b>SvnLogBrowserDialog</b>(<i>vcs, parent = None</i>) |
|
127 <p> |
|
128 Constructor |
|
129 </p><dl> |
|
130 <dt><i>vcs</i></dt> |
|
131 <dd> |
|
132 reference to the vcs object |
|
133 </dd><dt><i>parent</i></dt> |
|
134 <dd> |
|
135 parent widget (QWidget) |
|
136 </dd> |
|
137 </dl><a NAME="SvnLogBrowserDialog.__diffRevisions" ID="SvnLogBrowserDialog.__diffRevisions"></a> |
|
138 <h4>SvnLogBrowserDialog.__diffRevisions</h4> |
|
139 <b>__diffRevisions</b>(<i>rev1, rev2, peg_rev</i>) |
|
140 <p> |
|
141 Private method to do a diff of two revisions. |
|
142 </p><dl> |
|
143 <dt><i>rev1</i></dt> |
|
144 <dd> |
|
145 first revision number (integer) |
|
146 </dd><dt><i>rev2</i></dt> |
|
147 <dd> |
|
148 second revision number (integer) |
|
149 </dd><dt><i>peg_rev</i></dt> |
|
150 <dd> |
|
151 revision number to use as a reference (integer) |
|
152 </dd> |
|
153 </dl><a NAME="SvnLogBrowserDialog.__filterLogs" ID="SvnLogBrowserDialog.__filterLogs"></a> |
|
154 <h4>SvnLogBrowserDialog.__filterLogs</h4> |
|
155 <b>__filterLogs</b>(<i></i>) |
|
156 <p> |
|
157 Private method to filter the log entries. |
|
158 </p><a NAME="SvnLogBrowserDialog.__finish" ID="SvnLogBrowserDialog.__finish"></a> |
|
159 <h4>SvnLogBrowserDialog.__finish</h4> |
|
160 <b>__finish</b>(<i></i>) |
|
161 <p> |
|
162 Private slot called when the user pressed the button. |
|
163 </p><a NAME="SvnLogBrowserDialog.__generateFileItem" ID="SvnLogBrowserDialog.__generateFileItem"></a> |
|
164 <h4>SvnLogBrowserDialog.__generateFileItem</h4> |
|
165 <b>__generateFileItem</b>(<i>action, path, copyFrom, copyRev</i>) |
|
166 <p> |
|
167 Private method to generate a changed files tree entry. |
|
168 </p><dl> |
|
169 <dt><i>action</i></dt> |
|
170 <dd> |
|
171 indicator for the change action ("A", "D" or "M") |
|
172 </dd><dt><i>path</i></dt> |
|
173 <dd> |
|
174 path of the file in the repository (string) |
|
175 </dd><dt><i>copyFrom</i></dt> |
|
176 <dd> |
|
177 path the file was copied from (None, string) |
|
178 </dd><dt><i>copyRev</i></dt> |
|
179 <dd> |
|
180 revision the file was copied from (None, string) |
|
181 </dd> |
|
182 </dl><dl> |
|
183 <dt>Returns:</dt> |
|
184 <dd> |
|
185 reference to the generated item (QTreeWidgetItem) |
|
186 </dd> |
|
187 </dl><a NAME="SvnLogBrowserDialog.__generateLogItem" ID="SvnLogBrowserDialog.__generateLogItem"></a> |
|
188 <h4>SvnLogBrowserDialog.__generateLogItem</h4> |
|
189 <b>__generateLogItem</b>(<i>author, date, message, revision, changedPaths</i>) |
|
190 <p> |
|
191 Private method to generate a log tree entry. |
|
192 </p><dl> |
|
193 <dt><i>author</i></dt> |
|
194 <dd> |
|
195 author info (string) |
|
196 </dd><dt><i>date</i></dt> |
|
197 <dd> |
|
198 date info (integer) |
|
199 </dd><dt><i>message</i></dt> |
|
200 <dd> |
|
201 text of the log message (string) |
|
202 </dd><dt><i>revision</i></dt> |
|
203 <dd> |
|
204 revision info (string or pysvn.opt_revision_kind) |
|
205 </dd><dt><i>changedPaths</i></dt> |
|
206 <dd> |
|
207 list of pysvn dictionary like objects containing |
|
208 info about the changed files/directories |
|
209 </dd> |
|
210 </dl><dl> |
|
211 <dt>Returns:</dt> |
|
212 <dd> |
|
213 reference to the generated item (QTreeWidgetItem) |
|
214 </dd> |
|
215 </dl><a NAME="SvnLogBrowserDialog.__getLogEntries" ID="SvnLogBrowserDialog.__getLogEntries"></a> |
|
216 <h4>SvnLogBrowserDialog.__getLogEntries</h4> |
|
217 <b>__getLogEntries</b>(<i>startRev = None</i>) |
|
218 <p> |
|
219 Private method to retrieve log entries from the repository. |
|
220 </p><dl> |
|
221 <dt><i>startRev</i></dt> |
|
222 <dd> |
|
223 revision number to start from (integer, string) |
|
224 </dd> |
|
225 </dl><a NAME="SvnLogBrowserDialog.__resizeColumnsFiles" ID="SvnLogBrowserDialog.__resizeColumnsFiles"></a> |
|
226 <h4>SvnLogBrowserDialog.__resizeColumnsFiles</h4> |
|
227 <b>__resizeColumnsFiles</b>(<i></i>) |
|
228 <p> |
|
229 Private method to resize the changed files tree columns. |
|
230 </p><a NAME="SvnLogBrowserDialog.__resizeColumnsLog" ID="SvnLogBrowserDialog.__resizeColumnsLog"></a> |
|
231 <h4>SvnLogBrowserDialog.__resizeColumnsLog</h4> |
|
232 <b>__resizeColumnsLog</b>(<i></i>) |
|
233 <p> |
|
234 Private method to resize the log tree columns. |
|
235 </p><a NAME="SvnLogBrowserDialog.__resortFiles" ID="SvnLogBrowserDialog.__resortFiles"></a> |
|
236 <h4>SvnLogBrowserDialog.__resortFiles</h4> |
|
237 <b>__resortFiles</b>(<i></i>) |
|
238 <p> |
|
239 Private method to resort the changed files tree. |
|
240 </p><a NAME="SvnLogBrowserDialog.__resortLog" ID="SvnLogBrowserDialog.__resortLog"></a> |
|
241 <h4>SvnLogBrowserDialog.__resortLog</h4> |
|
242 <b>__resortLog</b>(<i></i>) |
|
243 <p> |
|
244 Private method to resort the log tree. |
|
245 </p><a NAME="SvnLogBrowserDialog.__showError" ID="SvnLogBrowserDialog.__showError"></a> |
|
246 <h4>SvnLogBrowserDialog.__showError</h4> |
|
247 <b>__showError</b>(<i>msg</i>) |
|
248 <p> |
|
249 Private slot to show an error message. |
|
250 </p><dl> |
|
251 <dt><i>msg</i></dt> |
|
252 <dd> |
|
253 error message to show (string) |
|
254 </dd> |
|
255 </dl><a NAME="SvnLogBrowserDialog._reset" ID="SvnLogBrowserDialog._reset"></a> |
|
256 <h4>SvnLogBrowserDialog._reset</h4> |
|
257 <b>_reset</b>(<i></i>) |
|
258 <p> |
|
259 Protected method to reset the internal state of the dialog. |
|
260 </p><a NAME="SvnLogBrowserDialog.on_buttonBox_clicked" ID="SvnLogBrowserDialog.on_buttonBox_clicked"></a> |
|
261 <h4>SvnLogBrowserDialog.on_buttonBox_clicked</h4> |
|
262 <b>on_buttonBox_clicked</b>(<i>button</i>) |
|
263 <p> |
|
264 Private slot called by a button of the button box clicked. |
|
265 </p><dl> |
|
266 <dt><i>button</i></dt> |
|
267 <dd> |
|
268 button that was clicked (QAbstractButton) |
|
269 </dd> |
|
270 </dl><a NAME="SvnLogBrowserDialog.on_clearRxEditButton_clicked" ID="SvnLogBrowserDialog.on_clearRxEditButton_clicked"></a> |
|
271 <h4>SvnLogBrowserDialog.on_clearRxEditButton_clicked</h4> |
|
272 <b>on_clearRxEditButton_clicked</b>(<i></i>) |
|
273 <p> |
|
274 Private slot called by a click of the clear RX edit button. |
|
275 </p><a NAME="SvnLogBrowserDialog.on_diffPreviousButton_clicked" ID="SvnLogBrowserDialog.on_diffPreviousButton_clicked"></a> |
|
276 <h4>SvnLogBrowserDialog.on_diffPreviousButton_clicked</h4> |
|
277 <b>on_diffPreviousButton_clicked</b>(<i></i>) |
|
278 <p> |
|
279 Private slot to handle the Diff to Previous button. |
|
280 </p><a NAME="SvnLogBrowserDialog.on_diffRevisionsButton_clicked" ID="SvnLogBrowserDialog.on_diffRevisionsButton_clicked"></a> |
|
281 <h4>SvnLogBrowserDialog.on_diffRevisionsButton_clicked</h4> |
|
282 <b>on_diffRevisionsButton_clicked</b>(<i></i>) |
|
283 <p> |
|
284 Private slot to handle the Compare Revisions button. |
|
285 </p><a NAME="SvnLogBrowserDialog.on_fieldCombo_activated" ID="SvnLogBrowserDialog.on_fieldCombo_activated"></a> |
|
286 <h4>SvnLogBrowserDialog.on_fieldCombo_activated</h4> |
|
287 <b>on_fieldCombo_activated</b>(<i>txt</i>) |
|
288 <p> |
|
289 Private slot called, when a new filter field is selected. |
|
290 </p><dl> |
|
291 <dt><i>txt</i></dt> |
|
292 <dd> |
|
293 text of the selected field (string) |
|
294 </dd> |
|
295 </dl><a NAME="SvnLogBrowserDialog.on_fromDate_dateChanged" ID="SvnLogBrowserDialog.on_fromDate_dateChanged"></a> |
|
296 <h4>SvnLogBrowserDialog.on_fromDate_dateChanged</h4> |
|
297 <b>on_fromDate_dateChanged</b>(<i>date</i>) |
|
298 <p> |
|
299 Private slot called, when the from date changes. |
|
300 </p><dl> |
|
301 <dt><i>date</i></dt> |
|
302 <dd> |
|
303 new date (QDate) |
|
304 </dd> |
|
305 </dl><a NAME="SvnLogBrowserDialog.on_logTree_currentItemChanged" ID="SvnLogBrowserDialog.on_logTree_currentItemChanged"></a> |
|
306 <h4>SvnLogBrowserDialog.on_logTree_currentItemChanged</h4> |
|
307 <b>on_logTree_currentItemChanged</b>(<i>current, previous</i>) |
|
308 <p> |
|
309 Private slot called, when the current item of the log tree changes. |
|
310 </p><dl> |
|
311 <dt><i>current</i></dt> |
|
312 <dd> |
|
313 reference to the new current item (QTreeWidgetItem) |
|
314 </dd><dt><i>previous</i></dt> |
|
315 <dd> |
|
316 reference to the old current item (QTreeWidgetItem) |
|
317 </dd> |
|
318 </dl><a NAME="SvnLogBrowserDialog.on_logTree_itemSelectionChanged" ID="SvnLogBrowserDialog.on_logTree_itemSelectionChanged"></a> |
|
319 <h4>SvnLogBrowserDialog.on_logTree_itemSelectionChanged</h4> |
|
320 <b>on_logTree_itemSelectionChanged</b>(<i></i>) |
|
321 <p> |
|
322 Private slot called, when the selection has changed. |
|
323 </p><a NAME="SvnLogBrowserDialog.on_nextButton_clicked" ID="SvnLogBrowserDialog.on_nextButton_clicked"></a> |
|
324 <h4>SvnLogBrowserDialog.on_nextButton_clicked</h4> |
|
325 <b>on_nextButton_clicked</b>(<i></i>) |
|
326 <p> |
|
327 Private slot to handle the Next button. |
|
328 </p><a NAME="SvnLogBrowserDialog.on_rxEdit_textChanged" ID="SvnLogBrowserDialog.on_rxEdit_textChanged"></a> |
|
329 <h4>SvnLogBrowserDialog.on_rxEdit_textChanged</h4> |
|
330 <b>on_rxEdit_textChanged</b>(<i>txt</i>) |
|
331 <p> |
|
332 Private slot called, when a filter expression is entered. |
|
333 </p><dl> |
|
334 <dt><i>txt</i></dt> |
|
335 <dd> |
|
336 filter expression (string) |
|
337 </dd> |
|
338 </dl><a NAME="SvnLogBrowserDialog.on_stopCheckBox_clicked" ID="SvnLogBrowserDialog.on_stopCheckBox_clicked"></a> |
|
339 <h4>SvnLogBrowserDialog.on_stopCheckBox_clicked</h4> |
|
340 <b>on_stopCheckBox_clicked</b>(<i>checked</i>) |
|
341 <p> |
|
342 Private slot called, when the stop on copy/move checkbox is clicked |
|
343 </p><a NAME="SvnLogBrowserDialog.on_toDate_dateChanged" ID="SvnLogBrowserDialog.on_toDate_dateChanged"></a> |
|
344 <h4>SvnLogBrowserDialog.on_toDate_dateChanged</h4> |
|
345 <b>on_toDate_dateChanged</b>(<i>date</i>) |
|
346 <p> |
|
347 Private slot called, when the from date changes. |
|
348 </p><dl> |
|
349 <dt><i>date</i></dt> |
|
350 <dd> |
|
351 new date (QDate) |
|
352 </dd> |
|
353 </dl><a NAME="SvnLogBrowserDialog.start" ID="SvnLogBrowserDialog.start"></a> |
|
354 <h4>SvnLogBrowserDialog.start</h4> |
|
355 <b>start</b>(<i>fn</i>) |
|
356 <p> |
|
357 Public slot to start the svn log command. |
|
358 </p><dl> |
|
359 <dt><i>fn</i></dt> |
|
360 <dd> |
|
361 filename to show the log for (string) |
|
362 </dd> |
|
363 </dl> |
|
364 <div align="right"><a href="#top">Up</a></div> |
|
365 <hr /> |
|
366 </body></html> |