TortoiseSVN 未检测到 SVN 存储库的更改

发布于 2024-09-28 05:22:50 字数 492 浏览 3 评论 0原文

最近,我们的 SVN 存储库从托管它的服务器上消失了。我们仍然没有弄清楚它是如何发生的,但我们有一个半新的备份,我们可以用它来恢复存储库。我们没有丢失任何工作(每个人都在硬盘驱动器上备份了最新更改),但当我们开始使用存储库的旧备份时,修订号基本上恢复为旧版本。

SVN 服务器现在似乎已得到纠正,但我注意到 tortoiseSVN 存在一些问题,我认为这些问题是由 SVN 服务器的更改引起的。在我的本地计算机上,我无法看到恢复到备份 SVN 后发生的任何修订。我可以通过删除 tortoiseSVN 并重新安装新版本来解决此问题。

现在我的同事正在尝试更新他的 SVN 主干,并且看到了非常旧的文件版本(比备份旧得多)。 svn 服务器具有正确的文件,并且其他人能够访问它,因此这似乎是他的客户端的问题。他尝试删除乌龟并重新安装,但这没有帮助。我怀疑尽管重新安装,Tortoise 仍以某种方式存储/检测有关 SVN 服务器的(不正确)信息;但我不知道这怎么可能。有谁知道我们如何强制他的客户端检查 SVN 服务器并检测已发生的更改?

we recently had our SVN repository disappear from the server hosting it. We still haven't figured out how it happened, but we had a semi-recent backup which we were able to use to recover the repository. We didn't lose any work (everyone had back ups of their most recent changes on their hard drives) but the revision numbers essentially reverted back to older revisions when we started using the old backup of the repository.

The SVN server appears to be corrected now, but I've noticed some issues with tortoiseSVN which I believe were caused by the changes to the SVN server. On my local machine I was unable to see any revision that occurred after we reverted to the backup SVN. I was able to fix this by deleting tortoiseSVN and reinstalling the newer version.

Now my colleague is trying to update his SVN trunk and is seeing extremely old versions of files (much older then the backup was). The svn server has the correct files and others are able to access it, so this appears to be an issue with his client. He has tried deleting tortoise and reinstalling it but this didn't help. I suspect that tortoise is somehow storing/detecting (incorrect) information about the SVN server despite the reinstall; but I don't know how this is possible. Does anyone know how we can force his client to check the SVN server and detect the changes that have occurred?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

不气馁 2024-10-05 05:22:51

发生此类事件后(即存储库的备份落后了一些修订),您必须做什么:

  1. 将该存储库的所有工作副本导出到新位置
  2. 删除工作副本
  3. 从备份中签出新的工作副本存储库
  4. 将导出的工作副本数据复制到新签出的工作副本
  5. 上 提交工作副本中显示的更改:这些是存储库缺失修订版本中的更改

如果您使用 TortoiseSVN,您还应该清除日志缓存(设置对话框->保存的数据->清除)

What you have to do after such an event (i.e., a backup of the repo is a few revisions behind):

  1. export all your working copies of that repositories to a new location
  2. delete the working copy
  3. check out a new working copy from the backed up repository
  4. copy the exported working copy data over the new checked out working copy
  5. commit the changes that are showing in your working copy: those are the changes from the missing revisions of the repository

If you're using TortoiseSVN, you also should clear the log cache (settings dialog->saved data->clear)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文