svn 恢复失败
为什么我的 svn 恢复失败?
我正在尝试恢复到版本 6253。
$ svn revert 6253
Skipped '6253'
我知道这是我想要的版本,因为不到一小时前我在 shell 中输入了以下内容:
$ svn commit -m "before making change X"
Sending scala/Config.scala
Sending scala/Entity.scala
Transmitting file data ............
Committed revision 6253.
我认为存储库出了问题,因为我没有看到我的提交消息当我输入 svn log 时。我所看到的只是前 3 个提交,以 r5650
结束。
Why is svn's revert failing for me?
I'm trying to revert to version 6253.
$ svn revert 6253
Skipped '6253'
I know this is the version I want because I typed the following in to the shell less than an hour ago:
$ svn commit -m "before making change X"
Sending scala/Config.scala
Sending scala/Entity.scala
Transmitting file data ............
Committed revision 6253.
I think something is wrong with the repository because I don't see my commit message when I type svn log
. All I see is the first 3 commits, which end at r5650
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
svn revert
会丢弃对工作副本的本地更改,因此不会执行您想要的操作,因为更改已经提交。要获取该特定版本的这些文件,请尝试使用
svn update -r 6253 scala/Config.scala scala/Entity.scala
。svn revert
throws away local changes to your working copy, so will not do what you want, as the changes are already committed.To get those files at that specific revision, try
svn update -r 6253 scala/Config.scala scala/Entity.scala
instead.