当我的 SVN 服务器的 IP 地址在 Xcode 中更改时要修改什么?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4056698/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What to modify when my SVN server's IP address changes in Xcode?
提问by Senseful
I get the following error in Xcode:
我在 Xcode 中收到以下错误:
Error: 175002 (RA layer request failed) Description: OPTIONS of 'http://[email protected]/svn/MyProj/MyProj.xcodeproj': could not connect to server (http://192.168.0.107)
错误:175002(RA 层请求失败)描述:“http://[email protected]/svn/MyProj/MyProj.xcodeproj”的选项:无法连接到服务器(http://192.168.0.107)
I made two changes since the last time it worked:
自上次工作以来,我做了两个更改:
- The local IP address of the computer it's connected to has changed (which obviously would explain why it can't connect)
- I upgraded from SDK 4.0 to 4.1
- 它所连接的计算机的本地 IP 地址已更改(这显然可以解释为什么它无法连接)
- 我从 SDK 4.0 升级到 4.1
I tried to fix it by doing the following:
我尝试通过执行以下操作来修复它:
- I went to SCM > Repositories
- Configured my repository and set the new IP address.
- 我去了 SCM > Repositories
- 配置我的存储库并设置新的 IP 地址。
It correctly shows the "M" icons near each file that was modified, however, I still get these error messages occasionally, meaning that the old IP address is still stored somewhere.
它正确地显示了每个被修改的文件附近的“M”图标,但是,我仍然偶尔会收到这些错误消息,这意味着旧的 IP 地址仍然存储在某处。
What else do I need to modify when the IP address changes?
当IP地址改变时,我还需要修改什么?
回答by Martin v. L?wis
If you originally checked out the tree using http://[email protected]/svn/MyProj
(say), then every folder in your working copy will still have a reference to the old location. You need to use svn switch --relocate
like so:
如果您最初使用http://[email protected]/svn/MyProj
(例如)检出树,那么您的工作副本中的每个文件夹仍将引用旧位置。你需要svn switch --relocate
像这样使用:
cd MyProj
svn switch --relocate http://[email protected]/svn/MyProj http://User@newip/svn/MyProj
Don't be puzzled that files show up as M, and that svn can still compute diffs correctly - these are both local operations that require no repository access.
不要对文件显示为 M 感到困惑,而且 svn 仍然可以正确计算差异 - 这些都是不需要存储库访问的本地操作。