查找在特定ClearCase分支中修改的所有文件? [英] Find all files modified in a specific ClearCase branch?

查看:47
本文介绍了查找在特定ClearCase分支中修改的所有文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有一种方法可以创建一个视图,该视图将为我提供在特定ClearCase分支中修改的所有文件的快照?

Is there a way I can create a view that will give me a snapshot of all the files modified in a specific ClearCase branch?

例如,假设我有两个分支:

For example, say I have two branches:

product_1.0_dev
product_migration_1.0_dev

第二个分支被认为是升级我们的核心框架依赖项的测试平台.我知道,如果我修改product_migration_1.0_dev中的文件,那么该分支下将有一个\ 1版本,因此必须有一种编写加载规则的方法,以轻松地将此信息获取到快照中.

The second branch is conceived as a testing ground for upgrading our core framework dependencies. I know that if I modify a file in product_migration_1.0_dev, then I will have a \1 version under this branch, so there has to be a way to write a load rule to get this info easily into a snapshot.

有什么想法吗?

推荐答案

那将是一个选择规则(而不是加载规则)

That would be a selection rule (not a load rule)

 element * .../product_migration_1.0_dev/LATEST
 element * .../product_1.0_dev/LATEST
 element * /main/LATEST

请注意" ... "符号(请参见

Note the '...' notation (see version selector), an ellipsis wildcard which allows to select a branch at any branch level.

请注意,这会列出所有个文件,包括所需的文件.

Note that would list all files, including the ones you want.

如果只想查看特定分支的文件,则仍然需要选择它们的 parent 目录:中可能没有版本> product_migration_1.0_dev 分支.

If you want to see only the files for a particular branch, you still need to select their parent directories: and those might not have a version in the product_migration_1.0_dev branch.

因此,以下配置规范(我邀请您首先在 dynamic 视图中进行测试:速度更快,然后您将在快照视图中使用自己的报告该配置规范加载规则)会更加精确:

So the following config spec (that I invite you to test in a dynamic view first: it is quicker, then you will report that config spec in a snapshot view, with its own load rules) would be more precise:

 element * .../product_migration_1.0_dev/LATEST
 element -directory * .../product_1.0_dev/LATEST
 element -directory * /main/LATEST

因此,您将在 product_migration_1.0_dev 分支中选择具有最新版本的文件和目录.
否则,只能在 product_1.0_dev 分支或 main 分支中选择目录.

So you would select files and directories having a LATEST in product_migration_1.0_dev branch.
Otherwise, you select directories only in product_1.0_dev branch or in main branch.

这样,您一定要选择一个元素的父目录,该元素的版本可能在 product_migration_1.0_dev 分支中.
如果不这样做,则视图将永远无法选择文件,因为无法访问其父目录(未选择其任何版本来启动 product_migration_1.0_dev 分支)).

That way, you are sure to select the parent directory of an element which might have a version in product_migration_1.0_dev branch.
If you don't do that, your view won't ever be able to select the files, because their parent directories are not accessible (none of their versions is selected from which a product_migration_1.0_dev branch starts).

这篇关于查找在特定ClearCase分支中修改的所有文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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