--- ./subversion.eclass.orig 2009-05-10 22:36:06.000000000 +0200 +++ ./subversion.eclass 2009-09-17 12:10:21.427847072 +0200 @@ -289,13 +289,13 @@ einfo " old repository: ${ESVN_WC_URL}@${ESVN_WC_REVISION}" einfo " new repository: ${repo_uri}${revision:+@}${revision}" - debug-print "${FUNCNAME}: ${ESVN_SWITCH_CMD} ${options} ${repo_uri}" + debug-print "${FUNCNAME}: ${ESVN_SWITCH_CMD} ${options} --relocate ${ESVN_WC_URL} ${repo_uri}" cd "${wc_path}" || die "${ESVN}: can't chdir to ${wc_path}" if [[ -n "${ESVN_USER}" ]]; then - ${ESVN_SWITCH_CMD} ${options} --username "${ESVN_USER}" --password "${ESVN_PASSWORD}" ${repo_uri} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." + ${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}." else - ${ESVN_SWITCH_CMD} ${options} ${repo_uri} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." + ${ESVN_SWITCH_CMD} ${options} --relocate ${ESVN_WC_URL} ${repo_uri} || die "${ESVN}: can't update ${wc_path} from ${repo_uri}." fi else # update working copy