按活动列表元素元素、列表

2023-09-12 23:44:03 作者:月亮小饼干

自动化我正在构建,需要能够列出了在特定活动工作中的元素。我是新来的ClearCase,所以我的naiivety道歉......

I'm working on automated builds and need to be able to list elements that were worked on under particular activities. I'm new to ClearCase so I apologise for naiivety ...

我的下游构建过程中工作正常,我现在需要通过识别一个或多个活动,标签等相关的(签入)的文件(实际上是任意组合的变化来填充一个pre-构建区域/发布经理希望)通过列出候选人文件的生成,然后从M复制它们:驱动器(Windows)中。我们使用CC 7.1与AIX和Win XP专业版的台式机后端。我们将使用ccperl驱动查找+复制过程。

My downstream build process works fine and I now need to populate a 'pre-build' area by identifying the (checked-in) files associated with one or more activities, labels etc (in fact any combination the change/release manager wants) by listing the candidate files for a build and then copying them from the M: drive (Windows). We are using CC 7.1 with a back end on AIX and Win XP Pro desktops. We'll use ccperl to drive the find+copy process.

我已经与世无争查找无济于事 - 有人可以伸出援助之手?所有帮助感激地接受。

I have battled with 'find' to no avail - can someone lend a hand? All help gratefully received.

悬崖。

推荐答案

对于标签(我猜UCM基线既然你提到活动,而只存在与UCM):

最简单的方法是将配置配置规范的动态视图:

The easiest way would be to configure a config spec for a dynamic view:

element * MY_BASELINE

为了快速访问正确的文件。

in order to quickly access the right files.

有关的活动,你可以(如果没有涉及太多的文件),列出你希望每个活动的准确版本:

For activities, you could (if there is not too much files involved), list the exact versions of each activities you want:

cleartool DESCR -l活动:my_actity @ \ PVOB

cleartool descr -l activity:my_actity@\pvob

和解析结果到grep / awk的只有你所需要的。 你只需要一个动态视图(任何动态视图)内做到这一点:该活动将包含的扩展的路径名,这意味着你将可以通过访问和复制每个版本 MYFILE @@ /主/ myBranch / myVersion 路径。

and parse the result to grep/awk only what you need. You need only to do this within a dynamic view (any dynamic view): the activity will contain a list of extended pathnames, meaning you will be able to access and copy each version through that myFile@@/main/myBranch/myVersion path.