我的 SVN 存储库已将我拒之门外!

发布于 2024-10-04 15:02:46 字数 795 浏览 3 评论 0原文

我似乎陷入了无限的 SVN 循环,就像...

我的存储库位于本地 /Users/Jack/MySite.co.uk/

问题是,出现 .svn 文件夹被意外从 /Users/Jack/MySite.co.uk/images/png 中删除,因此触发错误 svn: '/Users/Jack/Sites/MySite.co。 uk/images/png' 不是工作副本目录...

我尝试做的是:

svn --force delete /Users/Jack/Sites/MySite.co.uk/images/ png

上面写着 svn: 工作副本 '/Users/Jack/Sites/MySite.co.uk/images' 已锁定。运行“svn cleanup”以删除锁定(输入“svn help cleanup”了解详细信息)

因此,我按照说明执行此操作:

svn cleanup /Users/Jack/Sites/MySite.co.uk/

Subversion 响应:'/Users/Jack/Sites/MySite。 co.uk/images/png' 不是工作副本目录

如果这令人困惑,我深表歉意,但是,我也感到困惑!有什么简单的方法可以解决这个问题吗?我尝试svn add有问题的文件夹,它告诉我/images/已锁定。哼哼!

谢谢,

杰克

I appear to be stuck in an infinite SVN loop, as it were...

My repository is located locally at /Users/Jack/MySite.co.uk/

The problem is, the .svn folder appears to have been accidentally deleted from /Users/Jack/MySite.co.uk/images/png, as such triggering the error svn: '/Users/Jack/Sites/MySite.co.uk/images/png' is not a working copy directory...

What I've tried doing is:

svn --force delete /Users/Jack/Sites/MySite.co.uk/images/png

Which says svn: Working copy '/Users/Jack/Sites/MySite.co.uk/images' locked. Run 'svn cleanup' to remove locks (type 'svn help cleanup' for details).

So, I follow the instructions and do this:

svn cleanup /Users/Jack/Sites/MySite.co.uk/

To which Subversion responds: '/Users/Jack/Sites/MySite.co.uk/images/png' is not a working copy directory

I apologise if that's confusing, but, I'm baffled too! Any easy way to fix this? I've tried svn adding the folder in question, to which it tells me /images/ is locked. Harumph!

Thanks,

Jack

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

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

发布评论

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

评论(4

一绘本一梦想 2024-10-11 15:02:46

一点也不混乱。这实际上是一个常见问题。您要做的就是将该 png 目录移到其他位置,运行 svn update 将其从存储库中带回,然后将您从保存的位置所做的任何更改复制回该目录。

Not confusing at all. It's actually a common problem. What you do is move that png directory off somewhere else, run an svn update to bring it back from the repository, and then copy any changes you've made from your saved location back into the directory.

情仇皆在手 2024-10-11 15:02:46

将有问题的工作副本目录移到某个地方。重新签出该目录(更新上面的目录即可)。如果您有任何更改的文件,请将它们复制回来。

Move the faulty working copy directory out of the way somewhere. Make a fresh checkout of that directory (update the directory above will do). If you have any changed files, copy them back in.

若能看破又如何 2024-10-11 15:02:46

我建议您从服务器进行一次新的结账,并重新应用您对此的更改。

I'd suggest you do a fresh checkout from the server and reapply your changes on this one.

不奢求什么 2024-10-11 15:02:46

当我发生这种情况时,我只是删除了不再包含 .svn 的文件夹并从存储库中进行了更新。如果您进行了本地更改,则不太好,但它确实有效。

When I had this happen, I just removed the folder no longer containing .svn and updated from the repository. Not so nice if you have local changes, but it works.

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