aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-03-20 18:26:03 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-03-20 18:26:03 +0000
commitedb238fcd23455460b8011da94290c0127d53d8d (patch)
tree6289b4c2496ebbeb0a2b72bce8f8c67f9b594e5f
parent6db5f91eacb7b9918257aa1ebccf048d4258a339 (diff)
downloadpaludis-edb238fcd23455460b8011da94290c0127d53d8d.tar.gz
paludis-edb238fcd23455460b8011da94290c0127d53d8d.tar.xz
Make svn also handle moves within the same repository.
-rw-r--r--paludis/syncers/dosvn.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/paludis/syncers/dosvn.in b/paludis/syncers/dosvn.in
index c88e552..9210e1c 100644
--- a/paludis/syncers/dosvn.in
+++ b/paludis/syncers/dosvn.in
@@ -72,7 +72,8 @@ if [[ -d "${LOCAL}/.svn" ]]; then
cd "${LOCAL}"
OLD_REMOTE="$(${SVN_WRAPPER} svn info | sed -ne 's/^URL: //p')"
if [[ "${OLD_REMOTE}" != "${REMOTE}" ]]; then
- if ! ${SVN_WRAPPER} svn switch --relocate "${OLD_REMOTE}" "${REMOTE}"; then
+ if ! ${SVN_WRAPPER} svn switch --relocate "${OLD_REMOTE}" "${REMOTE}" &&
+ ! ${SVN_WRAPPER} svn switch "${REMOTE}"; then
eerror "${0}: could not switch from '${OLD_REMOTE}' to '${REMOTE}'"
exit 1
fi