为给定日期所见的 ClearCase 内容添加标签(不更改配置规范)

发布于 2024-12-25 05:30:32 字数 931 浏览 0 评论 0 原文

我需要标记在特定日期看到的视图内容,而我知道的唯一方法是使用配置规范中的时间版本选择器。我将时间设置为所需的日期,然后将标签应用到视图上。简单的。

但是,我希望是否有一种方法可以在不更改配置规范的情况下以编程方式完成此操作。我希望能够将 cleartool find-execmklabel 结合使用。但是,如果我这样做:

cleartool find . -cview -version "! created_since(some-date)" 

它只会提取在该日期之前创建的内容在视图上,如果我们使用-time<,则不一定会在视图中看到什么/code> 选择器

如果我将 cleartool find-branch 选择器一起使用,

cleartool find . -cview -version "! created_since(some-branch)" 

它只会选择该日期之前在该分支上创建的内容。它不会显示通过配置规范规则在其他分支的视图中看到的内容。

那么,我使用 cleartool find 是否错误?或者这根本就是不可能的?

有没有办法从命令行直接 cleartool find 准确地查找

  1. 活动配置规则将看到的
  2. 给定目录中的
  3. 元素,无论涉及哪个分支,
  4. < em>AS IF 其中有一个 -time 指令?

谢谢。

I need to label the contents of a view as seen at specific dates, and the only way I know of doing it is by using the -time version selector in the config specs. I set the time to the date I want, and then I apply the label on the view. Simple.

However, I was hoping if there is a way to do it pro-grammatically without changing the config specs. I was hoping that I could use the cleartool find in combination with -exec and mklabel. However, if I do this:

cleartool find . -cview -version "! created_since(some-date)" 

It only pulls what was created before that date on the view, not necessarily what should be seen in the view if we were using the -time selector.

And if I use cleartool find with a -branch selector

cleartool find . -cview -version "! created_since(some-branch)" 

it only selects that which was created before that date, on that branch only. It will not show what is also seen in the view on other branches via the config specs rules.

So, am I using cleartool find wrong? Or is it just impossible?

Is there a way, from the command line, to direct cleartool find to find exactly and precisely the elements that

  1. would be seen by the active config rules
  2. in a given directory
  3. regardless of the branch or branches involved,
  4. AS IF there was a -time directive in them?

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

﹎☆浅夏丿初晴 2025-01-01 05:30:32

据我所知, 查询语言不够丰富,无法包含配置规范时间规则确实如此。
基于时间的选择规则是最好的选择。

为了以编程方式使用 -time (因为查找不起作用),我通常做的是:

  • 使用专用的动态视图(比快照视图更新更快)
  • 写入文件我需要的配置规范
  • cleartool setcs -tag myView myFile # 更新动态视图的配置规范
    (请参阅 setcs 手册页
  • 使用动态视图更新内容的结果。

To my knowledge, the query language isn't rich enough to include what the config spec time rule does.
A time-based selection rule is the best option.

What I generally do, in order to use the -time programmatically (since the find wouldn't work) is to:

  • use a dedicated dynamic view (quicker to update than a snapshot view)
  • write in a file the config spec I need
  • cleartool setcs -tag myView myFile # update the config spec of the dynamic view
    (See setcs man page)
  • use the result of the updated content of the dynamic view.
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文