按活动列出元素 [英] list elements by activity

查看:192
本文介绍了按活动列出元素的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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



我的下游构建过程很好,我现在需要填充一个预建区域通过识别通过列出构建的候选文件,然后从M:驱动器(Windows)复制它们,与一个或多个活动,标签等(实际上是改变/发布管理器想要的任何组合)相关联的(签入)文件。我们在AIX和Win XP Pro桌面上使用CC 7.1和后端。我们将使用ccperl来驱动查找+复制过程。



我与'find'争斗没有效果 - 有人可以借一只手吗?



解决方案


  • 对于label(我假设UCM基线,因为你提到活动,只存在于UCM):



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

 元素* MY_BASELINE 



以便快速访问正确的文件。




  • 对于活动,您可以(如果涉及的文件不太多)列出您想要的每个活动的确切版本:



    cleartool descr -l activity:my_actity @ \pvob




并将结果解析为grep / awk只需要您需要的。 br>
您只需在动态视图(任何动态视图)中执行此操作:该活动将包含一个扩展路径名列表,这意味着您将能够访问和复制每个版本通过 myFile @@ / main / myBranch / myVersion 路径。


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 ...

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.

Cliff.

解决方案

  • For "label" (I suppose "UCM Baselines" since you mention "activities", which exist only with 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 activity:my_actity@\pvob

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.

这篇关于按活动列出元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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