--- a/Plugins/VcsPlugins/vcsMercurial/HgMergeDialog.py Sun Mar 30 22:00:14 2014 +0200 +++ b/Plugins/VcsPlugins/vcsMercurial/HgMergeDialog.py Thu Apr 03 23:05:31 2014 +0200 @@ -19,12 +19,11 @@ """ Class implementing a dialog to enter the data for a merge operation. """ - def __init__(self, force, tagsList, branchesList, bookmarksList=None, + def __init__(self, tagsList, branchesList, bookmarksList=None, parent=None): """ Constructor - @param force flag indicating a forced merge (boolean) @param tagsList list of tags (list of strings) @param branchesList list of branches (list of strings) @param bookmarksList list of bookmarks (list of strings) @@ -35,7 +34,6 @@ self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(False) - self.forceCheckBox.setChecked(force) self.tagCombo.addItems(sorted(tagsList)) self.branchCombo.addItems(["default"] + sorted(branchesList)) if bookmarksList is not None: @@ -43,6 +41,9 @@ else: self.bookmarkButton.setHidden(True) self.bookmarkCombo.setHidden(True) + + msh = self.minimumSizeHint() + self.resize(max(self.width(), msh.width()), msh.height()) def __updateOK(self): """ @@ -140,9 +141,9 @@ forced merge (string, boolean) """ if self.numberButton.isChecked(): - rev = str(self.numberSpinBox.value()) + rev = "rev({0})".format(self.numberSpinBox.value()) elif self.idButton.isChecked(): - rev = self.idEdit.text() + rev = "id({0})".format(self.idEdit.text()) elif self.tagButton.isChecked(): rev = self.tagCombo.currentText() elif self.branchButton.isChecked():