我如何将 Subversion 存储库(而不是我的工作副本)恢复为特定的修订版本? [英] How do I revert the Subversion repository, not my working copy, to a specific revision?

查看:29
本文介绍了我如何将 Subversion 存储库(而不是我的工作副本)恢复为特定的修订版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是 Subversion 的新手,来自 Source Safe,这让我很抓狂.使用 Tortoise 界面,Commit 不断向我显示 bin 目录中的 .java 文件,它说它丢失"了 - 好吧,这是一个单独的问题.基本上,当我尝试了几种方法来摆脱虚假的bin"消息时,Tortoise 反而删除了我的整个源目录.我尝试重新添加内容,但是当我添加时,它是新的,没有历史记录.

I'm relatively new to Subversion, coming from Source Safe, and it's driving me nuts. Using the Tortoise interface, Commit kept showing me .java files in my bin directory which it said were "missing" - ok, that's a separate question. Basically, when I tried several things to get rid of the spurious "bin" message, Tortoise instead deleted my entire source directory. I tried re-adding things, but when I added, it came in as new, with no history.

如何将 Subversion 带回特定修订版?好像我从来没有发生过?我知道如何在 VSS 中执行此操作,但是每次我在 TortoiseSVN 中尝试时,它只会修改我的工作副本.然后我不想检查我的工作副本,因为那会丢失我所有的历史记录.Subversion 可以忘记吗?

How do I take Subversion back to a particular revision? As if I had never happened? I know how to do this in VSS, but every time I try in TortoiseSVN, it just modifies my working copy. I don't want to then check in my working copy, because that would lose me all my history. Can Subversion forget?

顺便说一句,已经尝试在 stackoverflow 中查找,但我发现最接近的事情是导出和重新导入整个存储库,我认为我还没有到那个时候.Subversion 一定能做到这个最简单的事情!

Tried looking in stackoverflow already, btw, but the closest thing I found was exporting and reimporting the entire repository, and I don't think I'm at that point yet. Subversion must be able to do this most simple thing!

推荐答案

既然您专门询问了 TortoiseSVN,您可以执行以下操作:

Since you specifically asked about TortoiseSVN you can do the following:

  • 右键单击您的工作目录
  • TortoiseSVN
  • 修订版更新
  • 点击日志
  • 选择您想要的修订版(这会将修订版号放入修订版框中 - 如果您已经知道修订版号,则可以直接输入).
  • 点击确定

然后只需使用适当的消息将更改提交到存储库.

Then just commit your changes to the repository with an appropriate message.

这篇关于我如何将 Subversion 存储库(而不是我的工作副本)恢复为特定的修订版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆