Plugins/VcsPlugins/vcsPySvn/SvnUrlSelectionDialog.py

changeset 3020
542e97d4ecb3
parent 3009
bf5ae5d7477d
child 3024
17c01303a239
equal deleted inserted replaced
3019:7912530a33e2 3020:542e97d4ecb3
48 self.typeCombo1.addItems(["trunk/", "tags/", "branches/"]) 48 self.typeCombo1.addItems(["trunk/", "tags/", "branches/"])
49 self.typeCombo2.addItems(["trunk/", "tags/", "branches/"]) 49 self.typeCombo2.addItems(["trunk/", "tags/", "branches/"])
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(self, 53 E5MessageBox.critical(
54 self,
54 self.trUtf8("Subversion Error"), 55 self.trUtf8("Subversion Error"),
55 self.trUtf8( 56 self.trUtf8(
56 """The URL of the project repository could not be""" 57 """The URL of the project repository could not be"""
57 """ retrieved from the working copy. The operation will""" 58 """ retrieved from the working copy. The operation will"""
58 """ be aborted""")) 59 """ be aborted"""))
61 62
62 if self.vcs.otherData["standardLayout"]: 63 if self.vcs.otherData["standardLayout"]:
63 # determine the base path of the project in the repository 64 # determine the base path of the project in the repository
64 rx_base = QRegExp('(.+/)(trunk|tags|branches).*') 65 rx_base = QRegExp('(.+/)(trunk|tags|branches).*')
65 if not rx_base.exactMatch(reposURL): 66 if not rx_base.exactMatch(reposURL):
66 E5MessageBox.critical(self, 67 E5MessageBox.critical(
68 self,
67 self.trUtf8("Subversion Error"), 69 self.trUtf8("Subversion Error"),
68 self.trUtf8("""The URL of the project repository has an""" 70 self.trUtf8("""The URL of the project repository has an"""
69 """ invalid format. The operation will""" 71 """ invalid format. The operation will"""
70 """ be aborted""")) 72 """ be aborted"""))
71 self.reject() 73 self.reject()

eric ide

mercurial