SVN:同事在文件夹中签入了存储库,但我无法更新我的版本

时间:2021-11-07 19:31:32

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.

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

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.

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

Where am I going wrong?

我哪里错了?

6 个解决方案

#1


This is a known problem.

这是一个已知问题。

You can use

您可以使用

$ svn update --depth=infinity

$ 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".

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

#2


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

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

#3


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.

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

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

所以你可以或者不能在存储库浏览器中看到它?

#4


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

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

#5


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

我不知道,svn总是告诉我清洁,你试试吗?

#6


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.

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

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?

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

#1


This is a known problem.

这是一个已知问题。

You can use

您可以使用

$ svn update --depth=infinity

$ 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".

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

#2


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

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

#3


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.

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

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

所以你可以或者不能在存储库浏览器中看到它?

#4


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

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

#5


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

我不知道,svn总是告诉我清洁,你试试吗?

#6


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.

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

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?

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