Удалите SVN из каталога и замените его новым.

206
liljoshu

Итак, у меня есть веб-сервер со старой установкой клиента SVN (как и во многих каталогах .svn, которые были повреждены, никогда не работали, файлы приходилось обновлять вручную). Теперь у меня есть новый блестящий svn-сервер (новая установка visualsvn). Однако у моего старого веб-сервера все еще есть старый клиент, старая структура и старые настройки.

Как мне обновить его, чтобы использовать новый SVN-сервер для файлов с помощью команды svn up?

1

1 ответ на вопрос

1
Hack Saw

If the new server contains the stuff you want to use completely, meaning that there isn't anything in the old working directory that you need to commit, the best method is to rename the old top level directory to something like website-old, and then do a fresh virgin checkout of the new svn repo.

It is possible to change where your checkout points to if you need to commit something. For this one uses the relocate command, as such:

svn relocate svn+ssh://new-svn-server/path/to/repo/trunk/