eric3.VCS.mercurialPackage.DiffDialog

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

Classes

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

Functions

None


HgDiffDialog

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

Derived from

LogForm, ui

Methods

HgDiffDialog Constructor
debug Public method to output a debug message.
edit Public method to enter some text.
handleSave Private slot to handle the Save button press.
note Public method to output a note.
prompt Public method to prompt the user for some input.
start Public slot to perform the diff command.
status Public method to output a status message.
warn Public method to output a warning message.
write Public method to write something to the output of the dialog.
write_err Public method to write something to the errors output of the dialog.

HgDiffDialog (Constructor)

HgDiffDialog(vcs, parent = None)

Constructor

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

HgDiffDialog.debug

debug(*msg)

Public method to output a debug message.

debug
messages to show (strings)

HgDiffDialog.edit

edit(text)

Public method to enter some text.

Raises RuntimeError:
not implemented

HgDiffDialog.handleSave

handleSave()

Private slot to handle the Save button press.

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

HgDiffDialog.note

note(*msg)

Public method to output a note.

notes
to show (strings)

HgDiffDialog.prompt

prompt(msg, pat, default = "y")

Public method to prompt the user for some input.

msg
prompt message to be shown (string)
pat
pattern of acceptable input (string)
default
default answer if we are in noninteractive mode (string)
Returns:
the entered text

HgDiffDialog.start

start(fn, versions=None)

Public slot to perform the diff command.

fn
filename to be diffed (string)
versions
list of versions to be diffed (list of up to 2 QString or None)

HgDiffDialog.status

status(*msg)

Public method to output a status message.

status
messages to show (strings)

HgDiffDialog.warn

warn(*msg)

Public method to output a warning message.

warning
messages to show (strings)

HgDiffDialog.write

write(*args)

Public method to write something to the output of the dialog.

*args
texts to be written

HgDiffDialog.write_err

write_err(*args)

Public method to write something to the errors output of the dialog.

*args
error texts to be written

Up