##// END OF EJS Templates
vcs: Raise exception if unknown protocol specified for vcs server protocol.
Martin Bornhold -
r960:ebfb39d8 default
parent child Browse files
Show More
@@ -137,6 +137,8 b' def connect_vcs(server_and_port, protoco'
137 connect_pyro4(server_and_port)
137 connect_pyro4(server_and_port)
138 elif protocol == 'http':
138 elif protocol == 'http':
139 connect_http(server_and_port)
139 connect_http(server_and_port)
140 else:
141 raise Exception('Invalid vcs server protocol "{}"'.format(protocol))
140
142
141
143
142 # TODO: johbo: This function should be moved into our test suite, there is
144 # TODO: johbo: This function should be moved into our test suite, there is
@@ -150,6 +152,8 b' def start_vcs_server(server_and_port, pr'
150 return _start_http_vcs_server(server_and_port, log_level)
152 return _start_http_vcs_server(server_and_port, log_level)
151 elif protocol == 'pyro4':
153 elif protocol == 'pyro4':
152 return _start_pyro4_vcs_server(server_and_port, log_level)
154 return _start_pyro4_vcs_server(server_and_port, log_level)
155 else:
156 raise Exception('Invalid vcs server protocol "{}"'.format(protocol))
153
157
154
158
155 def _start_pyro4_vcs_server(server_and_port, log_level=None):
159 def _start_pyro4_vcs_server(server_and_port, log_level=None):
@@ -216,6 +220,8 b' def create_vcsserver_proxy(server_and_po'
216 return _create_vcsserver_proxy_pyro4(server_and_port)
220 return _create_vcsserver_proxy_pyro4(server_and_port)
217 elif protocol == 'http':
221 elif protocol == 'http':
218 return _create_vcsserver_proxy_http(server_and_port)
222 return _create_vcsserver_proxy_http(server_and_port)
223 else:
224 raise Exception('Invalid vcs server protocol "{}"'.format(protocol))
219
225
220
226
221 def _create_vcsserver_proxy_pyro4(server_and_port):
227 def _create_vcsserver_proxy_pyro4(server_and_port):
General Comments 0
You need to be logged in to leave comments. Login now