Plugins/VcsPlugins/vcsSubversion/SvnUrlSelectionDialog.py

branch
Py2 comp.
changeset 3484
645c12de6b0c
parent 3178
f25fc1364c88
parent 3366
6084bb3c3911
child 3656
441956d8fce5
equal deleted inserted replaced
3456:96232974dcdb 3484:645c12de6b0c
50 50
51 reposURL = self.vcs.svnGetReposName(path) 51 reposURL = self.vcs.svnGetReposName(path)
52 if reposURL is None: 52 if reposURL is None:
53 E5MessageBox.critical( 53 E5MessageBox.critical(
54 self, 54 self,
55 self.trUtf8("Subversion Error"), 55 self.tr("Subversion Error"),
56 self.trUtf8( 56 self.tr(
57 """The URL of the project repository could not be""" 57 """The URL of the project repository could not be"""
58 """ retrieved from the working copy. The operation will""" 58 """ retrieved from the working copy. The operation will"""
59 """ be aborted""")) 59 """ be aborted"""))
60 self.reject() 60 self.reject()
61 return 61 return
64 # determine the base path of the project in the repository 64 # determine the base path of the project in the repository
65 rx_base = QRegExp('(.+/)(trunk|tags|branches).*') 65 rx_base = QRegExp('(.+/)(trunk|tags|branches).*')
66 if not rx_base.exactMatch(reposURL): 66 if not rx_base.exactMatch(reposURL):
67 E5MessageBox.critical( 67 E5MessageBox.critical(
68 self, 68 self,
69 self.trUtf8("Subversion Error"), 69 self.tr("Subversion Error"),
70 self.trUtf8( 70 self.tr(
71 """The URL of the project repository has an""" 71 """The URL of the project repository has an"""
72 """ invalid format. The list operation will""" 72 """ invalid format. The list operation will"""
73 """ be aborted""")) 73 """ be aborted"""))
74 self.reject() 74 self.reject()
75 return 75 return
89 self.labelCombo1.setEnabled(True) 89 self.labelCombo1.setEnabled(True)
90 self.repoRootLabel2.hide() 90 self.repoRootLabel2.hide()
91 self.typeCombo2.hide() 91 self.typeCombo2.hide()
92 self.labelCombo2.addItems([reposURL] + sorted(self.vcs.tagsList)) 92 self.labelCombo2.addItems([reposURL] + sorted(self.vcs.tagsList))
93 self.labelCombo2.setEnabled(True) 93 self.labelCombo2.setEnabled(True)
94
95 msh = self.minimumSizeHint()
96 self.resize(max(self.width(), msh.width()), msh.height())
94 97
95 def __changeLabelCombo(self, labelCombo, type_): 98 def __changeLabelCombo(self, labelCombo, type_):
96 """ 99 """
97 Private method used to change the label combo depending on the 100 Private method used to change the label combo depending on the
98 selected type. 101 selected type.

eric ide

mercurial