eric7.Plugins.VcsPlugins.vcsPySvn.SvnLogBrowserDialog

Module implementing a dialog to browse the log history.

Global Attributes

None

Classes

SvnLogBrowserDialog Class implementing a dialog to browse the log history.

Functions

None


SvnLogBrowserDialog

Class implementing a dialog to browse the log history.

Derived from

QWidget, SvnDialogMixin, Ui_SvnLogBrowserDialog

Class Attributes

None

Class Methods

None

Methods

SvnLogBrowserDialog Constructor
__diffRevisions Private method to do a diff of two revisions.
__filterLogs Private method to filter the log entries.
__finish Private slot called when the user pressed the button.
__generateFileItem Private method to generate a changed files tree entry.
__generateLogItem Private method to generate a log tree entry.
__getLogEntries Private method to retrieve log entries from the repository.
__initData Private method to (re-)initialize some data.
__resetUI Private method to reset the user interface.
__resizeColumnsFiles Private method to resize the changed files tree columns.
__resizeColumnsLog Private method to resize the log tree columns.
__resortFiles Private method to resort the changed files tree.
__resortLog Private method to resort the log tree.
__showError Private slot to show an error message.
_reset Protected method to reset the internal state of the dialog.
closeEvent Protected slot implementing a close event handler.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
on_diffPreviousButton_clicked Private slot to handle the Diff to Previous button.
on_diffRevisionsButton_clicked Private slot to handle the Compare Revisions button.
on_downButton_clicked Private slot to move the current item down one entry.
on_fieldCombo_activated Private slot called, when a new filter field is selected.
on_fromDate_dateChanged Private slot called, when the from date changes.
on_logTree_currentItemChanged Private slot called, when the current item of the log tree changes.
on_logTree_itemSelectionChanged Private slot called, when the selection has changed.
on_nextButton_clicked Private slot to handle the Next button.
on_rxEdit_textChanged Private slot called, when a filter expression is entered.
on_stopCheckBox_clicked Private slot called, when the stop on copy/move checkbox is clicked.
on_toDate_dateChanged Private slot called, when the from date changes.
on_upButton_clicked Private slot to move the current item up one entry.
show Public slot to show the dialog.
start Public slot to start the svn log command.

Static Methods

None

SvnLogBrowserDialog (Constructor)

SvnLogBrowserDialog(vcs, parent=None)

Constructor

vcs (Subversion)
reference to the vcs object
parent (QWidget)
parent widget

SvnLogBrowserDialog.__diffRevisions

__diffRevisions(rev1, rev2, peg_rev)

Private method to do a diff of two revisions.

rev1 (int)
first revision number
rev2 (int)
second revision number
peg_rev (int)
revision number to use as a reference

SvnLogBrowserDialog.__filterLogs

__filterLogs()

Private method to filter the log entries.

SvnLogBrowserDialog.__finish

__finish()

Private slot called when the user pressed the button.

SvnLogBrowserDialog.__generateFileItem

__generateFileItem(action, path, copyFrom, copyRev)

Private method to generate a changed files tree entry.

action (str)
indicator for the change action ("A", "D" or "M")
path (str)
path of the file in the repository
copyFrom (str)
path the file was copied from
copyRev (str)
revision the file was copied from
Return:
reference to the generated item
Return Type:
QTreeWidgetItem

SvnLogBrowserDialog.__generateLogItem

__generateLogItem(author, date, message, revision, changedPaths)

Private method to generate a log tree entry.

author (str)
author info
date (int)
date info
message (str)
text of the log message
revision (str or pysvn.opt_revision_kind)
revision info
changedPaths (dict like)
list of pysvn dictionary like objects containing info about the changed files/directories
Return:
reference to the generated item
Return Type:
QTreeWidgetItem

SvnLogBrowserDialog.__getLogEntries

__getLogEntries(startRev=None)

Private method to retrieve log entries from the repository.

startRev (tuple of (int, str))
revision number to start from

SvnLogBrowserDialog.__initData

__initData()

Private method to (re-)initialize some data.

SvnLogBrowserDialog.__resetUI

__resetUI()

Private method to reset the user interface.

SvnLogBrowserDialog.__resizeColumnsFiles

__resizeColumnsFiles()

Private method to resize the changed files tree columns.

SvnLogBrowserDialog.__resizeColumnsLog

__resizeColumnsLog()

Private method to resize the log tree columns.

SvnLogBrowserDialog.__resortFiles

__resortFiles()

Private method to resort the changed files tree.

SvnLogBrowserDialog.__resortLog

__resortLog()

Private method to resort the log tree.

SvnLogBrowserDialog.__showError

__showError(msg)

Private slot to show an error message.

msg (str)
error message to show

SvnLogBrowserDialog._reset

_reset()

Protected method to reset the internal state of the dialog.

SvnLogBrowserDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e (QCloseEvent)
close event

SvnLogBrowserDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

Private slot called by a button of the button box clicked.

button (QAbstractButton)
button that was clicked

SvnLogBrowserDialog.on_diffPreviousButton_clicked

on_diffPreviousButton_clicked()

Private slot to handle the Diff to Previous button.

SvnLogBrowserDialog.on_diffRevisionsButton_clicked

on_diffRevisionsButton_clicked()

Private slot to handle the Compare Revisions button.

SvnLogBrowserDialog.on_downButton_clicked

on_downButton_clicked()

Private slot to move the current item down one entry.

SvnLogBrowserDialog.on_fieldCombo_activated

on_fieldCombo_activated(_index)

Private slot called, when a new filter field is selected.

_index (int)
index of the selected entry (unused)

SvnLogBrowserDialog.on_fromDate_dateChanged

on_fromDate_dateChanged(_date)

Private slot called, when the from date changes.

_date (QDate)
new date (unused)

SvnLogBrowserDialog.on_logTree_currentItemChanged

on_logTree_currentItemChanged(current, previous)

Private slot called, when the current item of the log tree changes.

current (QTreeWidgetItem)
reference to the new current item
previous (QTreeWidgetItem)
reference to the old current item

SvnLogBrowserDialog.on_logTree_itemSelectionChanged

on_logTree_itemSelectionChanged()

Private slot called, when the selection has changed.

SvnLogBrowserDialog.on_nextButton_clicked

on_nextButton_clicked()

Private slot to handle the Next button.

SvnLogBrowserDialog.on_rxEdit_textChanged

on_rxEdit_textChanged(_txt)

Private slot called, when a filter expression is entered.

_txt (str)
filter expression (unused)

SvnLogBrowserDialog.on_stopCheckBox_clicked

on_stopCheckBox_clicked(_checked)

Private slot called, when the stop on copy/move checkbox is clicked.

_checked (bool)
flag indicating the check box state (unused)

SvnLogBrowserDialog.on_toDate_dateChanged

on_toDate_dateChanged(_date)

Private slot called, when the from date changes.

_date (QDate)
new date (unused)

SvnLogBrowserDialog.on_upButton_clicked

on_upButton_clicked()

Private slot to move the current item up one entry.

SvnLogBrowserDialog.show

show()

Public slot to show the dialog.

SvnLogBrowserDialog.start

start(fn, isFile=False)

Public slot to start the svn log command.

fn (str)
filename to show the log for
isFile (bool)
flag indicating log for a file is to be shown
Up