178
178
verify_url(wc_dir, checkout_url)
180
180
#----------------------------------------------------------------------
181
@SkipUnless(svntest.main.is_ra_type_dav)
182
def redirected_externals(sbox):
183
"redirected externals"
187
sbox.simple_propset('svn:externals',
188
'^/A/B/E/alpha fileX\n'
194
wc_dir = sbox.add_wc_path("my")
195
co_url = sbox.redirected_root_url()
196
exit_code, out, err = svntest.main.run_svn(None, 'co', co_url, wc_dir)
198
raise svntest.Failure
199
if not redirect_regex.match(out[0]):
200
raise svntest.Failure
202
verify_url(wc_dir, sbox.repo_url)
203
verify_url(sbox.ospath('A/C/fileX'), sbox.repo_url + '/A/B/E/alpha',
204
wc_path_is_file=True)
205
verify_url(sbox.ospath('A/C/dirX'), sbox.repo_url + '/A/B/F')
207
#----------------------------------------------------------------------
208
@SkipUnless(svntest.main.is_ra_type_dav)
209
def redirected_copy(sbox):
212
sbox.build(create_wc=False)
214
# E170011 = SVN_ERR_RA_SESSION_URL_MISMATCH
215
expected_error = "svn: E170011: Repository moved permanently"
217
# This tests the actual copy handling
218
svntest.actions.run_and_verify_svn(None, expected_error,
219
'cp', '-m', 'failed copy',
220
sbox.redirected_root_url() + '/A',
221
sbox.redirected_root_url() + '/A_copied')
223
# This tests the cmdline handling of '^/copy-of-A'
224
svntest.actions.run_and_verify_svn(None, expected_error,
225
'cp', '-m', 'failed copy',
226
sbox.redirected_root_url() + '/A',
229
# E170011 = SVN_ERR_RA_SESSION_URL_MISMATCH
230
expected_error = "svn: E170011: Repository moved temporarily"
232
# This tests the actual copy handling
233
svntest.actions.run_and_verify_svn(None, expected_error,
234
'cp', '-m', 'failed copy',
235
sbox.redirected_root_url(temporary=True) + '/A',
236
sbox.redirected_root_url(temporary=True) + '/A_copied')
238
# This tests the cmdline handling of '^/copy-of-A'
239
svntest.actions.run_and_verify_svn(None, expected_error,
240
'cp', '-m', 'failed copy',
241
sbox.redirected_root_url(temporary=True) + '/A',
243
#----------------------------------------------------------------------
244
@SkipUnless(svntest.main.is_ra_type_dav)
245
def redirected_commands(sbox):
246
"redirected commands"
248
sbox.build(create_wc=False)
250
svntest.actions.run_and_verify_svn(None, [],
252
sbox.redirected_root_url() + '/A')
254
svntest.actions.run_and_verify_svn(None, [],
256
sbox.redirected_root_url() + '/A')
258
svntest.actions.run_and_verify_svn(None, [],
260
sbox.redirected_root_url() + '/A')
262
#----------------------------------------------------------------------
182
264
########################################################################