如何修复损坏的本地 Subversion 工作副本? [英] How to fix corrupt local Subversion working copy?

查看:35
本文介绍了如何修复损坏的本地 Subversion 工作副本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通常使用 git 并且对 Subversion 的基础知识知之甚少,所以请保持温和.

I usually use git and know little beyond the basics of Subversion, so please be gentle.

我在 Windows 7 上使用 TortoiseSVN.最近 SVN 客户端宣布需要升级,所以我这样做了.所有文件都丢失了源代码管理图标,资源管理器中出现了一个新菜单项,提示我将存储库工作副本升级到 v1.7.我这样做了,并看到了附加的错误.

I'm using TortoiseSVN on Windows 7. The SVN client recently announced it needed to upgrade, so I did that. All files lost their source control icons, and a new menu item appeared in Explorer prompting me to upgrade my repository working copy to v1.7. I did that and see the error attached.

我已经搜索过它提到的文件,它在我的本地存储库中不存在.我似乎无法执行 Clean,因为 TortoiseSVN 菜单已简化为最基本的菜单项,因为菜单项不存在:Repo 浏览器(打开一个空对话框)、属性、设置、帮助、关于.

I've searched for the file it mentions, it does not exist in my local repository. I seem unable to do a Clean as the menu item doesn't exist as the TortoiseSVN menu has reduced to bare basics: Repo browser (which opens an empty dialog), Properties, Settings, Help, About.

更复杂的是我有本地更改,所以我不能删除我的本地副本并从存储库更新我的本地.

What complicates matters is I have local changes, so I can't trash my local copy and update my local from the repository.

如何修复损坏的本地副本,同时保持本地更改?

How can I fix my broken local copy, whilst maintaining my local changes?

推荐答案

您的工作副本需要更新,换句话说,只需使用新安装的 TortoiseSVN 客户端 (1.7.x) 进行新的检出,而不是使用旧的工作副本.存储库不需要更新(如果你愿意,你可以).最简单的解决方案是在不同的目录中创建一个新的结帐,然后将您的更改复制到该新工作副本并从那里进行提交.为什么您在没有事先检查所有最近更改的情况下进行更新?

Your working copy needs to be updated which means in other words simply make a fresh checkout with the new installed TortoiseSVN client (1.7.x) instead of using the old working copy. The repository doesn't need an update (you can if you like). The simplest solution is to create a fresh checkout into a different directory and then copy your changes to that new working copy and do a commit from there. Why did you do an update without prior checking in all recent changes?

这篇关于如何修复损坏的本地 Subversion 工作副本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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