我可以在不使用本地工作副本的情况下将新文件夹添加到 TFS 存储库服务器端吗? [英] Can I add a new folder to a TFS repository server-side without using a local working copy?
问题描述
我目前正在将一些源代码从 Subversion (SVN) 存储库传输到我客户的 Team Foundation Server.我偶然发现的一件事是,如果不首先将该存储库中的所有文件拉到本地工作区中的本地工作文件夹,似乎无法编辑存储库.我使用的是 Visual Studio 2008 团队资源管理器.
I'm currently transfering some source code from a Subversion (SVN) repository to my client's Team Foundation Server. One of the things I stumbled upon is that there seems to be no way to edit the repository without first pulling all files in that repository to a local working folder in the local workspace. I'm using Visual Studio 2008 Team Explorer.
我的存储库类似于以下结构:
My repository resembles this structure:
$
$/branches
$/trunk
$/trunk/Solution1
$/trunk/Solution1/... etc.
现在我想做的是在主干的根目录中添加一个新文件夹(即 $/trunk/Docs).因为 Solution1 文件夹树 ($/trunk/Solution1) 包含大量数据,所以我不想先获取该文件夹的本地副本.我想在服务器端创建新的文档"文件夹.但是,我注意到当所选存储库文件夹不能用作本地工作区中的工作文件夹时,源代码管理资源管理器工具栏上的新建文件夹"按钮呈灰色.
Now what I want to do is add a new folder in the root of the trunk (i.e. $/trunk/Docs). Because the Solution1 folder tree ($/trunk/Solution1) contains a lot of data, I don't want to first get a local copy of that folder. I want to create the new "Docs" folder server-side. However, I noticed the "New Folder" button on the Source Control Explorer toolbar is grayed out when the selected repository folder isn't available as a working folder in the local workspace.
使用 SVN 这从来都不是问题,因为使用 TortoiseSVN 我可以使用 Repo-Browser 在服务器端创建一个新文件夹.SVN 不需要您先检出其父文件夹.
Using SVN this never was a problem, because using TortoiseSVN I can create a new folder server-side using the Repo-Browser. SVN doesn't require you to check out its parent folder first.
有人知道如何在服务器端编辑 TFS 存储库吗?我错过了一些小事吗?
Does anybody know how to server-side edit a TFS repository? Did I miss some trivial thing?
推荐答案
您不需要获取本地副本,但需要将服务器端文件夹映射到本地计算机上的工作区.
You don't need to get a local copy, but you do need to map the server-side folder to a workspace on your local machine.
在源代码管理资源管理器中,使用工作区..."下拉框来创建这样的映射.我发现最简单的方法是将 TFVC ($) 中的根节点映射到本地计算机上的目录,例如 c:\tfs,并允许层次结构向下传播.
In source control explorer, use the "Workspaces..." drop down box to create such a mapping. I find that the simplest approach is to map the root node in TFVC ($) to a directory on your local machine such as c:\tfs, and allow the hierarchy to propogate downwards.
这篇关于我可以在不使用本地工作副本的情况下将新文件夹添加到 TFS 存储库服务器端吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!