When the work environment adjusts, sometimes the SVN server address needs to be modified, how can we modify the address of the local library instead of downloading it again? SVN has a simple workaround:
1, Environment for Windows7
Right-->tortoisesvn-> (relocate) on the root of the working copy, and then modify the URL,
Method 1:
Right-click on the working copy of the root directory->tortoisesvn-> (relocate), and then modify the URL, but it is best to back up, it is said that such operations have a certain risk (so far I have not found).
Method 2:
Use aliases, do not use IP,IP changes only need to modify the Hosts file on it, very convenient.
2.Centos Platform:
[Root@ml02 melilishow]# su www
[Www@ml02 melilishow]$ SVN info
Path:.
Url:http://gblh.xxx.cc:8080/svn/melilishow
Version Coogan: Http://gblh.xxx.cc:8080/svn/melilishow
Version Library Uuid:d4e9d482-44f2-434a-9335-c1686188efe6
Version: 11
Node type: Table of Contents
Dispatch: Normal
Last modified by author: xxxxxx
Last modified version: 11
Last modified: 2013-01-08 17:48:55 +0800 (two, 2013-01-08)
[www@meeli02 redqeerw]$ svn SW--relocate http://gblh.xxx.cc:8080/svn/melilishow http://svn.xxx.com:8899/svn/melilishow
Certification area:
"www" Password: Hu Jintao
Certification area:
User name:?????
Password for "meeliserver":???? /
Attention! Your password, for the authentication domain:
Can only be saved in plaintext on disk! If possible, consider configuring your system so that Subversion
You can save the encrypted password. Please refer to the documentation for more information.
You can set the option "Store-plaintext-passwords" to "yes" or "no" in "/home/www/.subversion/servers".
To prevent this warning from appearing again.
Save an unencrypted password (yes/no)? Yes
[Www@ml02 melilishow]$ svn up
Linux Platform:
The code is as follows |
Copy Code |
SVN SW--relocate svn://old_ip/Directory svn://new_ip/Directory
|