powershell - 列出所有源安全链接文件的工具

标签 powershell visual-sourcesafe clearcase

我的客户正在从 Source Safe 迁移到 Clearcase。他们需要列出 Source Safe 数据库中的所有链接文件,以便可以将链接转移到 Clearcase,因为显然所有源必须在第 1 天检查到 Clearcase,丢失任何现有链接。

是否有任何工具可以创建此报告,或者甚至可以完全导入 clearcase ?

我的计划是编写一个powershell脚本来递归SS文件夹的Source Safe,使用COM发现链接。

谢谢。

最佳答案

正如我在 this question 中提到的那样, clearexport_ssafe应该用于从 Source Safe 导入到 ClearCase。
但是,documentation for that tool explicitly mentions :

Shares. There is no feature in Rational ClearCase equivalent to a Visual SourceSafe share. clearexport_ssafe does not preserve shares as hard links during conversion. Instead, shares become separate elements


因此,您的脚本需要列出所有链接,并在它们的初始目录和新创建的单独元素之间创建软链接(soft link)。
但我相信您可能希望为 objective-c learCase 存储库考虑另一个组织,其中不再直接使用所有共享文件,如 illustrated by this answer (对于本例中的 SVN 存储库):

We have eliminated all of our linked files. All class files that were previously linked have been placed into class libraries which are shared to our other projects as shared project references in the solution. So in essence you share libraries, not class files.

There was a bit of an adjustment process getting used to this, but I haven't missed links since then. It really does promote a better design practice by having your code setup like this.


work mainly with UCM ,并且所有这些“共享”都是 UCM 组件的自然候选者,UCM 基线可以引用它们的不同版本,然后您可以进行自己的“配置”(标签列表)以选择您需要的不同组件,使它们很容易跨项目重用。

关于powershell - 列出所有源安全链接文件的工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/917858/

相关文章:

visual-studio-2010 - 网站的 NuGet 包还原

merge - 如何部分保存合并结果?

excel - 复制到剪贴板 Powershell 故障

用于检查输入和返回数据类型的 Powershell 函数未返回正确的值

不带逗号的 Powershell 十进制格式

powershell - 将 invoke 命令的输出封装在一个变量中 - PowerShell

tfs - 从 TFS 迁移到 VSS

visual-studio-2008 - 从 VSS 中拯救我们

java - 计算两个版本之间的代码行数

javascript - 在分号后插入换行符总是安全的吗?