切换工作副本目录而不更新
场景:存储库结构从/trunk/更改为/projectName/trunk/,并且本地副本已过时且有大量修改。
问题:如何在不更新文件的情况下更新工作副本目录路径。
通常,同一存储库中目录更改的解决方案是使用 svn switch 命令。问题在于,它在执行时执行更新,工作副本已过时,并且有大量本地修改,这些修改会与当前修订版本冲突。
我正在寻找与 --relocate 开关相同的行为,它更新路径但不更新文件。这样我就可以重新获得单独检查每个文件的状态和差异的能力,同时保持本地副本功能(这是我主要关心的问题)。
switch --help 提供了一些处理冲突的参数,但我找不到任何可以完全停止更新的东西。
有什么想法吗?多谢。
Scenario: Repository structure changed from /trunk/ to /projectName/trunk/ and the local copy is outdated and has a lot of modifications.
Question: How can I update the working copy directory path without updating the files.
Normally the solution to directory changes within the same repository would be to use the svn switch command. The problem is that it performs an update upon execution, the working copy is outdated and has a lot of local modifications that would conflict with the current revision.
What I'm looking for is the same behavior of the --relocate switch, which updates the path but doesn't update the files. This way I can regain the ability check the statuses and differences for each file separately while maintaining the local copy functional (this is my main concern).
The switch --help provides a few arguments to deal with conflicts but I could find nothing that would stop the update altogether.
Any ideas? Thanks a lot.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这个特殊案例的解决方案比我想象的要简单。
svn switch
默认情况下执行对存储库中最新版本的更新,指定工作副本保留大部分文件的 BASE 版本(从存储库获取的最后版本)未受影响。我通过发出
svn info
命令获得了工作副本 (294) 的 BASE 修订版。然后,只需发出带有 BASE 修订版本的 switch 命令即可更新存储库路径,使大多数文件保持不变。
svn switch -r 294 /projectName/trunk/
The solution for this particular case was simpler than I thought.
svn switch
performs an update to the latest revision in the repository by default, specifying the BASE revision (last revision obtained from the repository) of the working copy left most of the files untouched.I got the BASE revision of my working copy (294) by issuing the
svn info
command.Then just issuing the switch command with the BASE revision updated the repository path leaving most of the files untouched.
svn switch -r 294 /projectName/trunk/