# eric6.Plugins.VcsPlugins.vcsMercurial.HgRevisionsSelectionDialog

Module implementing a dialog to enter the revisions for the hg diff command.

### Global Attributes

None

### Classes

HgRevisionsSelectionDialog | Class implementing a dialog to enter the revisions for the hg diff command.

### Functions

None

## HgRevisionsSelectionDialog

Class implementing a dialog to enter the revisions for the hg diff command.

### Derived from

QDialog, Ui_HgRevisionsSelectionDialog

### Class Attributes

None

### Class Methods

None

### Methods

HgRevisionsSelectionDialog | Constructor
__getRevision | Private method to generate the revision.
__updateOK | Private slot to update the OK button.
getRevisions | Public method to get the revisions.
on_bookmark1Button_toggled | Private slot to handle changes of the Bookmark1 select button.
on_bookmark1Combo_editTextChanged | Private slot to handle changes of the Bookmark1 combo.
on_bookmark2Button_toggled | Private slot to handle changes of the Bookmark2 select button.
on_bookmark2Combo_editTextChanged | Private slot to handle changes of the Bookmark2 combo.
on_branch1Button_toggled | Private slot to handle changes of the Branch1 select button.
on_branch1Combo_editTextChanged | Private slot to handle changes of the Branch1 combo.
on_branch2Button_toggled | Private slot to handle changes of the Branch2 select button.
on_branch2Combo_editTextChanged | Private slot to handle changes of the Branch2 combo.
on_id1Button_toggled | Private slot to handle changes of the ID1 select button.
on_id1Edit_textChanged | Private slot to handle changes of the ID1 edit.
on_id2Button_toggled | Private slot to handle changes of the ID2 select button.
on_id2Edit_textChanged | Private slot to handle changes of the ID2 edit.
on_tag1Button_toggled | Private slot to handle changes of the Tag1 select button.
on_tag1Combo_editTextChanged | Private slot to handle changes of the Tag1 combo.
on_tag2Button_toggled | Private slot to handle changes of the Tag2 select button.
on_tag2Combo_editTextChanged | Private slot to handle changes of the Tag2 combo.

### Static Methods

None

#### HgRevisionsSelectionDialog (Constructor)

HgRevisionsSelectionDialog(tagsList, branchesList, bookmarksList=None, parent=None)

Constructor

tagsList
  list of tags (list of strings)
branchesList
  list of branches (list of strings)
bookmarksList
  list of bookmarks (list of strings)
parent
  parent widget of the dialog (QWidget)

#### HgRevisionsSelectionDialog.__getRevision

__getRevision(no)

Private method to generate the revision.

no
  revision number to generate (1 or 2)

Returns:
  revision (string)

#### HgRevisionsSelectionDialog.__updateOK

__updateOK()

Private slot to update the OK button.

#### HgRevisionsSelectionDialog.getRevisions

getRevisions()

Public method to get the revisions.

Returns:
  list two strings

#### HgRevisionsSelectionDialog.on_bookmark1Button_toggled

on_bookmark1Button_toggled(checked)

Private slot to handle changes of the Bookmark1 select button.

checked
  state of the button (boolean)

#### HgRevisionsSelectionDialog.on_bookmark1Combo_editTextChanged

on_bookmark1Combo_editTextChanged(txt)

Private slot to handle changes of the Bookmark1 combo.

txt
  text of the combo (string)

#### HgRevisionsSelectionDialog.on_bookmark2Button_toggled

on_bookmark2Button_toggled(checked)

Private slot to handle changes of the Bookmark2 select button.

checked
  state of the button (boolean)

#### HgRevisionsSelectionDialog.on_bookmark2Combo_editTextChanged

on_bookmark2Combo_editTextChanged(txt)

Private slot to handle changes of the Bookmark2 combo.

txt
  text of the combo (string)

#### HgRevisionsSelectionDialog.on_branch1Button_toggled

on_branch1Button_toggled(checked)

Private slot to handle changes of the Branch1 select button.

checked
  state of the button (boolean)

#### HgRevisionsSelectionDialog.on_branch1Combo_editTextChanged

on_branch1Combo_editTextChanged(txt)

Private slot to handle changes of the Branch1 combo.

txt
  text of the combo (string)

#### HgRevisionsSelectionDialog.on_branch2Button_toggled

on_branch2Button_toggled(checked)

Private slot to handle changes of the Branch2 select button.

checked
  state of the button (boolean)

#### HgRevisionsSelectionDialog.on_branch2Combo_editTextChanged

on_branch2Combo_editTextChanged(txt)

Private slot to handle changes of the Branch2 combo.

txt
  text of the combo (string)

#### HgRevisionsSelectionDialog.on_id1Button_toggled

on_id1Button_toggled(checked)

Private slot to handle changes of the ID1 select button.

checked
  state of the button (boolean)

#### HgRevisionsSelectionDialog.on_id1Edit_textChanged

on_id1Edit_textChanged(txt)

Private slot to handle changes of the ID1 edit.

txt
  text of the edit (string)

#### HgRevisionsSelectionDialog.on_id2Button_toggled

on_id2Button_toggled(checked)

Private slot to handle changes of the ID2 select button.

checked
  state of the button (boolean)

#### HgRevisionsSelectionDialog.on_id2Edit_textChanged

on_id2Edit_textChanged(txt)

Private slot to handle changes of the ID2 edit.

txt
  text of the edit (string)

#### HgRevisionsSelectionDialog.on_tag1Button_toggled

on_tag1Button_toggled(checked)

Private slot to handle changes of the Tag1 select button.

checked
  state of the button (boolean)

#### HgRevisionsSelectionDialog.on_tag1Combo_editTextChanged

on_tag1Combo_editTextChanged(txt)

Private slot to handle changes of the Tag1 combo.

txt
  text of the combo (string)

#### HgRevisionsSelectionDialog.on_tag2Button_toggled

on_tag2Button_toggled(checked)

Private slot to handle changes of the Tag2 select button.

checked
  state of the button (boolean)

#### HgRevisionsSelectionDialog.on_tag2Combo_editTextChanged

on_tag2Combo_editTextChanged(txt)

Private slot to handle changes of the Tag2 combo.

txt
  text of the combo (string)

Up