如何将工作副本从 Subversion 服务器重定向到其他位置?
直接问题:从 subversion 服务器签出工作副本后,有没有办法??.svn/entries??将工作副本重定向到与我最初检出它的位置不同的位置?
背景:我有一个小型颠覆服务器,我可以在网络上看到它。然而,依靠电缆调制解调器生活,我的动态 IP 会发生变化,并且时不时地我必须更新 DNS 条目。在接下来的 24 小时内,我可能无法通过网站同步,直到我的本地 DNS 服务器捕获更新。
与此同时,我真的想要同步——目前——我坐在服务器旁边,可以通过本地网络访问它。所以我尝试编辑 .svn 文件夹中的“entries”文件,用本地 IP 地址替换网站名称,但它不起作用(我不知道为什么——它似乎恢复了我对条目文件的更改& 然后附加文件名和版本信息。
Direct Question: With a working copy checked-out from a subversion server, is there a way ??.svn/entries?? to redirect the working copy to a different location from where I originally checked it out?
Background: I have a small subversion server which I have visible on the web. However, living off a cable-modem, my dynamic ip shifts and every so often I have to update the dns entries. For the next 24 hours, I probably won't be able to sync through the website until my local dns server catches the update.
In the mean time, I'd really like to sync -- for the moment -- I'm sitting next to the server and can access it through the local network. So I tried editing the 'entries' file in the .svn folder, replacing the website name with the local ip address, but it didn't work (I'm not sure why -- it appeared to revert my changes to the entries file & then append file names and version info.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在寻找带有
relocate
选项的switch
命令。如需了解更多信息,请查看此处。
您还可以在 TortoiseSVN 中的“重新定位”上下文菜单下使用该功能。
You are looking for the
switch
command withrelocate
option.For more information, take a look here.
You also have that available in TortoiseSVN, under the Relocate context menu.