svn:重新加载旧版本
我想重新加载我的存储库的旧版本。我当前的版本是 645,我希望将 642 作为我当前的版本。从642到645的变化是文件和附加文件的变化。我使用通用方法:
svn merge -r 645:642 .
这也不起作用:
svn merge -r HEAD:642 .
什么也没有发生。还是旧的回归。但是当我执行以下操作时:
svn up -r 642
本地副本工作得很好。但我想将其作为我当前的修订版提交。但当我使用
svn ci -m "Revert"
它时,它什么也没做。
I'd like to reload an old revision of my repository. My current revision ist 645 and I'd like to have 642 as my current version. The changes from 642 to 645 are changes in the files and additional files. I use the common method for that:
svn merge -r 645:642 .
This does not work either:
svn merge -r HEAD:642 .
Nothing happens. Still the old reversion. But when I do the following:
svn up -r 642
The local copy works just fine. But i would like to commit it as my current revision. But when I use
svn ci -m "Revert"
It does nothing at all.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你需要与 HEAD 合并。请参阅本文。
You need to merge with HEAD. See this article.
你很接近。您进行了合并,但之后忘记提交。
在发出恢复命令之前,不要忘记在本地工作区中保存要恢复的修订版本。
You are close. You did the merge but forgot to commit afterwards.
Don't forget to have the revision you are reverting from in your local workspace before issuing the revert command.