Lines 289-301
Link Here
|
289 |
einfo " old repository: ${ESVN_WC_URL}@${ESVN_WC_REVISION}" |
289 |
einfo " old repository: ${ESVN_WC_URL}@${ESVN_WC_REVISION}" |
290 |
einfo " new repository: ${repo_uri}${revision:+@}${revision}" |
290 |
einfo " new repository: ${repo_uri}${revision:+@}${revision}" |
291 |
|
291 |
|
292 |
debug-print "${FUNCNAME}: ${ESVN_SWITCH_CMD} ${options} ${repo_uri}" |
292 |
debug-print "${FUNCNAME}: ${ESVN_SWITCH_CMD} ${options} --relocate ${ESVN_WC_URL} ${repo_uri}" |
293 |
|
293 |
|
294 |
cd "${wc_path}" || die "${ESVN}: can't chdir to ${wc_path}" |
294 |
cd "${wc_path}" || die "${ESVN}: can't chdir to ${wc_path}" |
295 |
if [[ -n "${ESVN_USER}" ]]; then |
295 |
if [[ -n "${ESVN_USER}" ]]; then |
296 |
${ESVN_SWITCH_CMD} ${options} --username "${ESVN_USER}" --password "${ESVN_PASSWORD}" ${repo_uri} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." |
296 |
${ESVN_SWITCH_CMD} ${options} --username "${ESVN_USER}" --password "${ESVN_PASSWORD}" --relocate ${ESVN_WC_URL} ${repo_uri} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." |
297 |
else |
297 |
else |
298 |
${ESVN_SWITCH_CMD} ${options} ${repo_uri} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." |
298 |
${ESVN_SWITCH_CMD} ${options} --relocate ${ESVN_WC_URL} ${repo_uri} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." |
299 |
fi |
299 |
fi |
300 |
else |
300 |
else |
301 |
# update working copy |
301 |
# update working copy |