140
140
verify_url(wc_dir, sbox.repo_url)
142
142
#----------------------------------------------------------------------
143
@SkipUnless(svntest.main.is_ra_type_dav)
144
def redirected_nonroot_update(sbox):
145
"redirected update of non-repos-root wc"
147
sbox.build(create_wc=False)
149
checkout_url = sbox.repo_url + '/A'
150
relocate_url = sbox.redirected_root_url() + '/A'
152
# Checkout a subdir of the repository root.
153
exit_code, out, err = svntest.main.run_svn(None, 'co',
154
checkout_url, wc_dir)
156
raise svntest.Failure
158
# Relocate (by cheating) the working copy to the redirect URL. When
159
# we then update, we'll expect to find ourselves automagically back
160
# to the original URL. (This is because we can't easily introduce a
161
# redirect to the Apache configuration from the test suite here.)
162
svntest.actions.no_relocate_validation()
163
exit_code, out, err = svntest.main.run_svn(None, 'sw', '--relocate',
164
checkout_url, relocate_url,
166
svntest.actions.do_relocate_validation()
168
# Now update the working copy.
169
exit_code, out, err = svntest.main.run_svn(None, 'up', wc_dir)
171
raise svntest.Failure
172
if not re.match("^Updating '.*':", out[0]):
173
raise svntest.Failure
174
if not redirect_regex.match(out[1]):
175
raise svntest.Failure
177
# Verify that we have the expected URL.
178
verify_url(wc_dir, checkout_url)
180
#----------------------------------------------------------------------
144
182
########################################################################