TFS 2010 源代码管理中的符号链接? [英] Symbolic links in TFS 2010 Source Control?

查看:30
本文介绍了TFS 2010 源代码管理中的符号链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

据我所知,Team Foundation Server 2010 的源代码管理(和以前的版本)不支持文件的链接(符号链接).

As far as I know, Team Foundation Server 2010's source control (and prior versions) doesn't support linking (Symbolic links) of files.

链接(根据 Visual SourceSafe)是在文件夹中提供一个硬"文件,然后在其他位置链接"到它的概念 - 与文件系统硬链接的设计完全一样.

Linking (per Visual SourceSafe) was the concept of providing one "hard" file in a folder, and then "linking" to it in other locations - exactly like file system hard links are designed.

有谁知道文件是否可以链接?我意识到这通常不是一个好的做法,但我有一些场景是有意义的.

Does anyone know if files can be linked at all? I realise it is not a good practice in general, but I have some scenarios where it makes sense.

根据此线程中的答案:链接 TFS 源来自另一个 TFS 项目的控制文件夹 这是不可能的,但我找不到明确的答案.

According to an answer in this thread: Linking TFS source control folder from another TFS project it's not possible, but I can't find a definitive answer.

我能从 Google 找到的最接近的东西是 MSDN 论坛 但它已经很老了(2006 年).我几乎假设这仍然是答案(除非有人知道不同)?

Closest thing I can find courtesy of Google is a thread on the MSDN forum but it's quite old (2006). I'm pretty much assuming that this is still the answer though (unless anyone knows differently)?

推荐答案

此主题是最近的(2010 年),关于 TFS 2008 和 2010 年:

This thread is more recent (2010), about TFS 2008 and 2010:

TFS(2008 和 2010)不支持链接.TFS 2010 有一个服务器端扩展(即 VS2010 用于门控签入的扩展),但这听起来像是客户端解决方案,因为必须将链接转换为客户端 OM 识别的文件.

TFS (2008 and 2010) do not have support for links. There is a server-side extension for TFS 2010 (ie. what VS2010 used for gated checkin) but this sounds like a client-side solution since the link must be converted to a file to be recognized by the client OM.

如果你只使用命令行,那么一些版本控制操作的包装工具怎么样?例如,签入包装器会将链接转换为链接文本文件,并在进行正常签入之前添加或替换现有的链接文本文件.签出包装器将签出相应的链接文本文件.请注意,由于您必须包装许多命令,因此会有相当多的工作.

If you only work with the command line, how about a wrapper tool for some version control operations? For example, the check-in wrapper would convert links to a linktext file and add or replace the existing linktext file before doing the normal check-in. The check-out wrapper would check-out the corresponding linktext file. Note that there will be quite a bit of work since you'll have to wrap many commands.

这篇关于TFS 2010 源代码管理中的符号链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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