Plugins/VcsPlugins/vcsPySvn/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
52 52
53 reposURL = self.vcs.svnGetReposName(path) 53 reposURL = self.vcs.svnGetReposName(path)
54 if reposURL is None: 54 if reposURL is None:
55 E5MessageBox.critical( 55 E5MessageBox.critical(
56 self, 56 self,
57 self.trUtf8("Subversion Error"), 57 self.tr("Subversion Error"),
58 self.trUtf8( 58 self.tr(
59 """The URL of the project repository could not be""" 59 """The URL of the project repository could not be"""
60 """ retrieved from the working copy. The operation will""" 60 """ retrieved from the working copy. The operation will"""
61 """ be aborted""")) 61 """ be aborted"""))
62 self.reject() 62 self.reject()
63 return 63 return
66 # determine the base path of the project in the repository 66 # determine the base path of the project in the repository
67 rx_base = QRegExp('(.+/)(trunk|tags|branches).*') 67 rx_base = QRegExp('(.+/)(trunk|tags|branches).*')
68 if not rx_base.exactMatch(reposURL): 68 if not rx_base.exactMatch(reposURL):
69 E5MessageBox.critical( 69 E5MessageBox.critical(
70 self, 70 self,
71 self.trUtf8("Subversion Error"), 71 self.tr("Subversion Error"),
72 self.trUtf8( 72 self.tr(
73 """The URL of the project repository has an""" 73 """The URL of the project repository has an"""
74 """ invalid format. The operation will""" 74 """ invalid format. The operation will"""
75 """ be aborted""")) 75 """ be aborted"""))
76 self.reject() 76 self.reject()
77 return 77 return
91 self.labelCombo1.setEnabled(True) 91 self.labelCombo1.setEnabled(True)
92 self.repoRootLabel2.hide() 92 self.repoRootLabel2.hide()
93 self.typeCombo2.hide() 93 self.typeCombo2.hide()
94 self.labelCombo2.addItems([reposURL] + sorted(self.vcs.tagsList)) 94 self.labelCombo2.addItems([reposURL] + sorted(self.vcs.tagsList))
95 self.labelCombo2.setEnabled(True) 95 self.labelCombo2.setEnabled(True)
96
97 msh = self.minimumSizeHint()
98 self.resize(max(self.width(), msh.width()), msh.height())
96 99
97 def __changeLabelCombo(self, labelCombo, type_): 100 def __changeLabelCombo(self, labelCombo, type_):
98 """ 101 """
99 Private method used to change the label combo depending on the 102 Private method used to change the label combo depending on the
100 selected type. 103 selected type.

eric ide

mercurial