eric3.VCS.mercurialPackage.StatusDialog

Module implementing a dialog to show the output of the Mercurial status command.

Classes

HgStatusDialog Module implementing a dialog to show the output of the Mercurial status command.

Functions

None


HgStatusDialog

Module implementing a dialog to show the output of the Mercurial status command.

Derived from

StatusForm, ui

Methods

HgStatusDialog Constructor
debug Public method to output a debug message.
edit Public method to enter some text.
getAddedItems Private method to retrieve all entries, that have an adedd status.
getModifiedItems Private method to retrieve all entries, that have a modified status.
getUnversionedItems Private method to retrieve all entries, that have an unversioned status.
handleAdd Private slot to handle the Add context menu entry.
handleCommit Private slot to handle the Commit context menu entry.
handleContextMenu Private slot to show the context menu of the listview.
handleForget Private slot to handle the Forget context menu entry.
note Public method to output a note.
prompt Public method to prompt the user for some input.
refreshStatus Private slot to refresh the status display.
start Public slot to start the hg status 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.

HgStatusDialog (Constructor)

HgStatusDialog(vcs, parent = None)

Constructor

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

HgStatusDialog.debug

debug(*msg)

Public method to output a debug message.

debug
messages to show (strings)

HgStatusDialog.edit

edit(text)

Public method to enter some text.

Raises RuntimeError:
not implemented

HgStatusDialog.getAddedItems

getAddedItems()

Private method to retrieve all entries, that have an adedd status.

Returns:
list of all items with a modified status

HgStatusDialog.getModifiedItems

getModifiedItems()

Private method to retrieve all entries, that have a modified status.

Returns:
list of all items with a modified status

HgStatusDialog.getUnversionedItems

getUnversionedItems()

Private method to retrieve all entries, that have an unversioned status.

Returns:
list of all items with a modified status

HgStatusDialog.handleAdd

handleAdd()

Private slot to handle the Add context menu entry.

HgStatusDialog.handleCommit

handleCommit()

Private slot to handle the Commit context menu entry.

HgStatusDialog.handleContextMenu

handleContextMenu(itm, coord, col)

Private slot to show the context menu of the listview.

itm
the selected listview item (QListViewItem)
coord
the position of the mouse pointer (QPoint)
col
the column of the mouse pointer (int)

HgStatusDialog.handleForget

handleForget()

Private slot to handle the Forget context menu entry.

HgStatusDialog.note

note(*msg)

Public method to output a note.

notes
to show (strings)

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

HgStatusDialog.refreshStatus

refreshStatus()

Private slot to refresh the status display.

HgStatusDialog.start

start(fn)

Public slot to start the hg status command.

fn
filename(s) to show the status of (string or list of strings)

HgStatusDialog.status

status(*msg)

Public method to output a status message.

status
messages to show (strings)

HgStatusDialog.warn

warn(*msg)

Public method to output a warning message.

warning
messages to show (strings)

HgStatusDialog.write

write(*args)

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

*args
texts to be written

HgStatusDialog.write_err

write_err(*args)

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

*args
error texts to be written

Up