eric5.Plugins.VcsPlugins.vcsMercurial.HgDiffDialog

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

Global Attributes

None

Classes

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

Functions

None


HgDiffDialog

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

Derived from

QWidget, Ui_HgDiffDialog

Class Attributes

None

Class Methods

None

Methods

HgDiffDialog 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.
__finish Private slot called when the process finished or the user pressed the button.
__getVersionArg Private method to get a hg 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.
__processOutputLine Private method to process the lines of output.
__readStderr Private slot to handle the readyReadStandardError signal.
__readStdout Private slot to handle the readyReadStandardOutput signal.
__showError Private slot to show some error.
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_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 hg diff command.

Static Methods

None

HgDiffDialog (Constructor)

HgDiffDialog(vcs, parent=None)

Constructor

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

HgDiffDialog.__appendText

__appendText(txt, format)

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

txt
text to insert (string)
format
text format to be used (QTextCharFormat)

HgDiffDialog.__extractFileName

__extractFileName(line)

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

line
line to be processed (string)
Returns:
extracted file name (string)

HgDiffDialog.__finish

__finish()

Private slot called when the process finished or the user pressed the button.

HgDiffDialog.__getVersionArg

__getVersionArg(version)

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

version
revision (integer or string)
Returns:
version argument (string)

HgDiffDialog.__procFinished

__procFinished(exitCode, exitStatus)

Private slot connected to the finished signal.

exitCode
exit code of the process (integer)
exitStatus
exit status of the process (QProcess.ExitStatus)

HgDiffDialog.__processFileLine

__processFileLine(line)

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

line
line to be processed (string)

HgDiffDialog.__processOutputLine

__processOutputLine(line)

Private method to process the lines of output.

line
output line to be processed (string)

HgDiffDialog.__readStderr

__readStderr()

Private slot to handle the readyReadStandardError signal.

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

HgDiffDialog.__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.

HgDiffDialog.__showError

__showError(out)

Private slot to show some error.

out
error to be shown (string)

HgDiffDialog.closeEvent

closeEvent(e)

Protected slot implementing a close event handler.

e
close event (QCloseEvent)

HgDiffDialog.keyPressEvent

keyPressEvent(evt)

Protected slot to handle a key press event.

evt
the key press event (QKeyEvent)

HgDiffDialog.on_buttonBox_clicked

on_buttonBox_clicked(button)

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

button
button that was clicked (QAbstractButton)

HgDiffDialog.on_filesCombo_activated

on_filesCombo_activated(index)

Private slot to handle the selection of a file.

index
activated row (integer)

HgDiffDialog.on_input_returnPressed

on_input_returnPressed()

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

HgDiffDialog.on_passwordCheckBox_toggled

on_passwordCheckBox_toggled(isOn)

Private slot to handle the password checkbox toggled.

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

HgDiffDialog.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.

HgDiffDialog.on_sendButton_clicked

on_sendButton_clicked()

Private slot to send the input to the subversion process.

HgDiffDialog.start

start(fn, versions=None, bundle=None, qdiff=False)

Public slot to start the hg diff command.

fn
filename to be diffed (string)
versions
list of versions to be diffed (list of up to 2 strings or None)
bundle
name of a bundle file (string)
qdiff
flag indicating qdiff command shall be used (boolean)
Up