--- a/Plugins/VcsPlugins/vcsMercurial/HgRevisionSelectionDialog.py Wed Mar 19 18:42:09 2014 +0100 +++ b/Plugins/VcsPlugins/vcsMercurial/HgRevisionSelectionDialog.py Wed Mar 19 18:47:05 2014 +0100 @@ -18,15 +18,14 @@ Class implementing a dialog to select a revision. """ def __init__(self, tagsList, branchesList, bookmarksList=None, - showNone=False, parent=None): + noneLabel="", parent=None): """ Constructor @param tagsList list of tags (list of strings) @param branchesList list of branches (list of strings) @param bookmarksList list of bookmarks (list of strings) - @param showNone flag influencing the label of the 'None' selection - (boolean) + @param noneLabel labeltext for "no revision selected" (string) @param parent parent widget (QWidget) """ super().__init__(parent) @@ -42,10 +41,8 @@ self.bookmarkButton.setHidden(True) self.bookmarkCombo.setHidden(True) - if showNone: - self.tipButton.setText(self.tr("No revision selected")) - self.tipButton.setToolTip(self.tr( - "Select to not specify a specific revision")) + if noneLabel: + self.noneButton.setText(noneLabel) msh = self.minimumSizeHint() self.resize(max(self.width(), msh.width()), msh.height()) @@ -154,6 +151,8 @@ rev = self.branchCombo.currentText() elif self.bookmarkButton.isChecked(): rev = self.bookmarkCombo.currentText() + elif self.tipButton.isChecked(): + rev = "tip" else: rev = ""