eric5.Plugins.VcsPlugins.vcsMercurial.ProjectBrowserHelper

Module implementing the VCS project browser helper for Mercurial.

Global Attributes

None

Classes

HgProjectBrowserHelper Class implementing the VCS project browser helper for Mercurial.

Functions

None


HgProjectBrowserHelper

Class implementing the VCS project browser helper for Mercurial.

Derived from

VcsProjectBrowserHelper

Class Attributes

None

Class Methods

None

Methods

HgProjectBrowserHelper Constructor
__HgAnnotate Private slot called by the context menu to show the annotations of a file.
__HgCopy Private slot called by the context menu to copy the selected file.
__HgExtendedDiff Private slot called by the context menu to show the difference of a file to the repository.
__HgForget Private slot called by the context menu to remove the selected file from the Mercurial repository leaving a copy in the project directory.
__HgLogBrowser Private slot called by the context menu to show the log browser for a file.
__HgMove Private slot called by the context menu to move the selected file.
__HgResolve Private slot called by the context menu to resolve conflicts of a file.
__HgRevert Protected slot called by the context menu to revert changes made.
_addVCSMenu Protected method used to add the VCS menu to all project browsers.
_addVCSMenuBack Protected method used to add the VCS menu to all project browsers.
_addVCSMenuDir Protected method used to add the VCS menu to all project browsers.
_addVCSMenuDirMulti Protected method used to add the VCS menu to all project browsers.
_addVCSMenuMulti Protected method used to add the VCS menu for multi selection to all project browsers.
showContextMenu Slot called before the context menu is shown.
showContextMenuDir Slot called before the context menu is shown.
showContextMenuDirMulti Slot called before the context menu is shown.
showContextMenuMulti Slot called before the context menu (multiple selections) is shown.

Static Methods

None

HgProjectBrowserHelper (Constructor)

HgProjectBrowserHelper(vcsObject, browserObject, projectObject, isTranslationsBrowser, parent=None, name=None)

Constructor

vcsObject
reference to the vcs object
browserObject
reference to the project browser object
projectObject
reference to the project object
isTranslationsBrowser
flag indicating, the helper is requested for the translations browser (this needs some special treatment)
parent
parent widget (QWidget)
name
name of this object (string)

HgProjectBrowserHelper.__HgAnnotate

__HgAnnotate()

Private slot called by the context menu to show the annotations of a file.

HgProjectBrowserHelper.__HgCopy

__HgCopy()

Private slot called by the context menu to copy the selected file.

HgProjectBrowserHelper.__HgExtendedDiff

__HgExtendedDiff()

Private slot called by the context menu to show the difference of a file to the repository.

This gives the chance to enter the revisions to compare.

HgProjectBrowserHelper.__HgForget

__HgForget()

Private slot called by the context menu to remove the selected file from the Mercurial repository leaving a copy in the project directory.

HgProjectBrowserHelper.__HgLogBrowser

__HgLogBrowser()

Private slot called by the context menu to show the log browser for a file.

HgProjectBrowserHelper.__HgMove

__HgMove()

Private slot called by the context menu to move the selected file.

HgProjectBrowserHelper.__HgResolve

__HgResolve()

Private slot called by the context menu to resolve conflicts of a file.

HgProjectBrowserHelper.__HgRevert

__HgRevert()

Protected slot called by the context menu to revert changes made.

HgProjectBrowserHelper._addVCSMenu

_addVCSMenu(mainMenu)

Protected method used to add the VCS menu to all project browsers.

mainMenu
reference to the menu to be amended

HgProjectBrowserHelper._addVCSMenuBack

_addVCSMenuBack(mainMenu)

Protected method used to add the VCS menu to all project browsers.

mainMenu
reference to the menu to be amended

HgProjectBrowserHelper._addVCSMenuDir

_addVCSMenuDir(mainMenu)

Protected method used to add the VCS menu to all project browsers.

mainMenu
reference to the menu to be amended

HgProjectBrowserHelper._addVCSMenuDirMulti

_addVCSMenuDirMulti(mainMenu)

Protected method used to add the VCS menu to all project browsers.

mainMenu
reference to the menu to be amended

HgProjectBrowserHelper._addVCSMenuMulti

_addVCSMenuMulti(mainMenu)

Protected method used to add the VCS menu for multi selection to all project browsers.

mainMenu
reference to the menu to be amended

HgProjectBrowserHelper.showContextMenu

showContextMenu(menu, standardItems)

Slot called before the context menu is shown.

It enables/disables the VCS menu entries depending on the overall VCS status and the file status.

menu
reference to the menu to be shown
standardItems
array of standard items that need activation/deactivation depending on the overall VCS status

HgProjectBrowserHelper.showContextMenuDir

showContextMenuDir(menu, standardItems)

Slot called before the context menu is shown.

It enables/disables the VCS menu entries depending on the overall VCS status and the directory status.

menu
reference to the menu to be shown
standardItems
array of standard items that need activation/deactivation depending on the overall VCS status

HgProjectBrowserHelper.showContextMenuDirMulti

showContextMenuDirMulti(menu, standardItems)

Slot called before the context menu is shown.

It enables/disables the VCS menu entries depending on the overall VCS status and the directory status.

menu
reference to the menu to be shown
standardItems
array of standard items that need activation/deactivation depending on the overall VCS status

HgProjectBrowserHelper.showContextMenuMulti

showContextMenuMulti(menu, standardItems)

Slot called before the context menu (multiple selections) is shown.

It enables/disables the VCS menu entries depending on the overall VCS status and the files status.

menu
reference to the menu to be shown
standardItems
array of standard items that need activation/deactivation depending on the overall VCS status
Up