eric7.Plugins.VcsPlugins.vcsSubversion.SvnDiffDialog

Module implementing a dialog to show the output of the svn diff command process.

Global Attributes

None

Classes

SvnDiffDialog Class implementing a dialog to show the output of the svn diff command process.

Functions

None


SvnDiffDialog

Class implementing a dialog to show the output of the svn diff command process.

Derived from

QWidget, Ui_SvnDiffDialog

Class Attributes

None

Class Methods

None

Methods

SvnDiffDialog Constructor
__appendText Private method to append text to the end of the contents pane.
__extractFileName Private method to extract the file name out of a file separator line.
__getVersionArg Private method to get a svn revision argument for the given revision.
__procFinished Private slot connected to the finished signal.
__processFileLine Private slot to process a line giving the old/new file.
__readStderr Private slot to handle the readyReadStandardError signal.
__readStdout Private slot to handle the readyReadStandardOutput signal.
closeEvent Protected slot implementing a close event handler.
keyPressEvent Protected slot to handle a key press event.
on_buttonBox_clicked Private slot called by a button of the button box clicked.
on_filesCombo_activated Private slot to handle the selection of a file.
on_input_returnPressed Private slot to handle the press of the return key in the input field.
on_passwordCheckBox_toggled Private slot to handle the password checkbox toggled.
on_refreshButton_clicked Private slot to refresh the display.
on_saveButton_clicked Private slot to handle the Save button press.
on_sendButton_clicked Private slot to send the input to the subversion process.
start Public slot to start the svn diff command.

Static Methods

None

SvnDiffDialog (Constructor)

SvnDiffDialog(vcs, parent=None)

Constructor

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

SvnDiffDialog.__appendText

__appendText(txt)

Private method to append text to the end of the contents pane.

txt (str)
text to insert

SvnDiffDialog.__extractFileName

__extractFileName(line)

Private method to extract the file name out of a file separator line.

line (str)
line to be processed
Return:
extracted file name
Return Type:
str

SvnDiffDialog.__getVersionArg

__getVersionArg(version)

Private method to get a svn revision argument for the given revision.

version (int or str)
revision
Return:
version argument
Return Type:
str

SvnDiffDialog.__procFinished

__procFinished(_exitCode, _exitStatus)

Private slot connected to the finished signal.

_exitCode (int)
exit code of the process (unused)
_exitStatus (QProcess.ExitStatus)
exit status of the process (unused)

SvnDiffDialog.__processFileLine

__processFileLine(line)

Private slot to process a line giving the old/new file.

line (str)
line to be processed

SvnDiffDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStandardError signal.

It reads the error output of the process and inserts it into the error pane.

SvnDiffDialog.__readStdout

__readStdout()

Private slot to handle the readyReadStandardOutput signal.

It reads the output of the process, formats it and inserts it into the contents pane.

SvnDiffDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e (QCloseEvent)
close event

SvnDiffDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt (QKeyEvent)
the key press event

SvnDiffDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

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

button (QAbstractButton)
button that was clicked

SvnDiffDialog.on_filesCombo_activated

on_filesCombo_activated(index)

Private slot to handle the selection of a file.

index (int)
activated row

SvnDiffDialog.on_input_returnPressed

on_input_returnPressed()

Private slot to handle the press of the return key in the input field.

SvnDiffDialog.on_passwordCheckBox_toggled

on_passwordCheckBox_toggled(isOn)

Private slot to handle the password checkbox toggled.

isOn (bool)
flag indicating the status of the check box

SvnDiffDialog.on_refreshButton_clicked

on_refreshButton_clicked()

Private slot to refresh the display.

SvnDiffDialog.on_saveButton_clicked

on_saveButton_clicked()

Private slot to handle the Save button press.

It saves the diff shown in the dialog to a file in the local filesystem.

SvnDiffDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the subversion process.

SvnDiffDialog.start

start(fn, versions=None, urls=None, summary=False, refreshable=False)

Public slot to start the svn diff command.

fn (str)
filename to be diffed
versions (list of up to 2 str or None)
list of versions to be diffed
urls (list of [str, str])
list of repository URLs
summary (bool)
flag indicating a summarizing diff (only valid for URL diffs)
refreshable (bool)
flag indicating a refreshable diff
Up