SVN:同事将文件夹签入存储库,但我无法将我的版本更新到它

发布于 2024-07-19 02:06:01 字数 356 浏览 8 评论 0原文

昨天在向同事展示如何使用 SVN 时,我们在现有的 Visual Studio 解决方案中创建了一个测试文件夹和文件。 我们将其称为“Test”文件夹,其中包含两个文件“Test.ascx”和“Test.ascx.cs”。 我们添加了它(或者 Visual SVN 添加了它,因为它太棒了),并提交了它。 我们还在项目的其他地方添加并提交了其他文件。

我们可以在存储库(和其他文件)中看到它。

在我自己的计算机上进行更新以拉取这些新文件导致其他文件被正确拉取,但测试文件夹没有出现。 无论我尝试从 VS 和 TortoiseSVN(呃)Repo 浏览器中的各个点更新多少次,它都看不到有任何需要下拉的更改。

我哪里出错了?

In showing a colleague how to use SVN yesterday, we created a test folder and file within our existing Visual Studio Solution. We'll call it "Test" folder with two files, "Test.ascx" and "Test.ascx.cs". We added it (or Visual SVN added it, 'cos it's awesome), and committed it. We also added and committed other files elsewhere in the project.

We can see it in the repository (and the other files).

Doing an update on my own machine to pull down these new files resulted in the other files being pulled down correctly, BUT the Test folder does not appear. No matter how many times I try Updating from various points in VS and in TortoiseSVN (urgh) Repo browser, it can't see that there are any changes to pull down.

Where am I going wrong?

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

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

发布评论

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

评论(6

淡紫姑娘! 2024-07-26 02:06:01

这是一个已知问题。

您可以使用

$ svn update --depth=infinity

强制更新。 使用 TortoiseSVN,使用子菜单中的“更新到修订版”命令,然后将深度组合框更改为“完全递归”。

This is a known problem.

You can use

$ svn update --depth=infinity

to force the update. With TortoiseSVN, use the "Update to revision" command in the Submenu, then change the depth combobox to "fully recursive".

ぇ气 2024-07-26 02:06:01

我以前遇到过类似的幽灵错误,发现最简单的解决方法是删除父文件夹并更新其父文件夹:

Project Root
    Project
        NewFolder

删除项目,然后更新项目根

I've had ghost errors like this before and found the easiest work around is to delete the parent folder and update it's parent:

Project Root
    Project
        NewFolder

Delete Project, then Update Project Root

旧竹 2024-07-26 02:06:01

<块引用>

我们可以在存储库(和其他文件)中看到它。

...

无论我尝试从 VS 和 TortoiseSVN(呃)Repo 浏览器中的各个点进行更新多少次,它都看不到有任何需要下拉的更改。

那么您可以不能在存储库浏览器中看到它吗?

We can see it in the repository (and the other files).

...

No matter how many times I try Updating from various points in VS and in TortoiseSVN (urgh) Repo browser, it can't see that there are any changes to pull down.

So you can or cannot see it in the repository browser?

电影里的梦 2024-07-26 02:06:01

您是否提交并更新了 Test 文件夹的父文件夹?

Did you commit and update the parent folder of your Test folder?

戴着白色围巾的女孩 2024-07-26 02:06:01

我不知道,svn 总是告诉我要清理,你尝试过吗?

I don't know, svn is always telling me to clean, did you try that?

仙女 2024-07-26 02:06:01

我知道这不是一个答案,但我已经尝试了你们好心建议的所有解决方案,但我最终遇到了冲突,导致 TortoiseSVN 崩溃并建立了 Karma。 因此,.svn/entries 文件中的可信编辑对其进行了排序。

到目前为止,我只是一名使用 SVN 来管理源代码的开发人员。 其他人没有问题,我只是检查东西。 我使用 Visual SVN 作为 .NET 的 SVN 的一层(它不太好用),但我似乎经常遇到问题。 我正在执行非常简单的操作,甚至没有分支/标记。 简单简单简单。 但我对此有疑问吗?

It's not an answer, I know, but I have tried all the solutions you guys have kindly suggested and I just end up with conflicts, crashed TortoiseSVN and built up Karma. Therefore, a trusty edit in the .svn/entries file sorted it.

I have until now been a single developer using SVN just to manage my source code. Other people don't have problems, and I just check in stuff. I use Visual SVN as a layer to frig SVN for .NET (which it isn't great with) and I seem to constantly run into issues. I am performing very simple operations, not even branching/tagging. Simple simple simple. And yet I have issues with it?

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