我似乎无法获得cleartool的发现来处理简单的查询 [英] I can't seem to get cleartool's find to work on a simple query

查看:81
本文介绍了我似乎无法获得cleartool的发现来处理简单的查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Disclamer:我是Clear Case的新手。

Disclamer: I'm very new to Clear Case.

我想找出在给定日期修改过的文件。我正在使用快照视图:

I want to find out what files I've modified on a given date. I am using a Snapshot view:

ClearCase version 7.1.2.0 (Tue Sep 21 12:01:15 EDT 2010) (7.1.2.D100920)
@(#) MVFS version 7.1.2.0 (Tue Aug 10 00:37:25 2010)
cleartool                         7.1.2.0 (Wed Sep 8 12:56:06 2010)
db_server                         7.1.2.0 (Sat Sep 4 01:27:12 2010)
VOB database schema version: 54

编辑:仅供参考,我的视图是通过CCRC(透明案例远程客户端)创建的。

FYI, my view was created via CCRC (Clear Case Remote Client).

这是我尝试过的操作(从Windows计算机上进行) :

Here's what I've tried (from my Windows machine):

cd c:\SnapshotViews\my_view_name
cleartool
cleartool> find . -element "{created_since(12-Mar-2012)}" -print
cleartool: Error: Not an object in a vob: ".".
cleartool: Warning: Skipping ".".
cleartool>

cleartool> find . -cview -version 'created_since(12-Mar-2012)' -print
cleartool: Error: Not an object in a vob: ".".
cleartool: Warning: Skipping ".".

IBM文档有点用,它们提供的查询也不起作用。有人可以帮我吗?

The IBM docs are sort of useless, the queries they provide don't work either. Can someone help me out?

推荐答案

您必须在快照视图中进入一个目录才能进入Vob。

You must go one directory within your snapshot view in order to be in a Vob.


  • c:\SnapshotViews\my_view_name 是快照视图的根目录

  • c:\SnapshotViews\my_view_name\aVob 位于快照视图的配置规范所引用的Vob之内

  • c:\SnapshotViews\my_view_name is the root directory of your snapshot view
  • c:\SnapshotViews\my_view_name\aVob is within a Vob as referenced by the config spec of your snapshot view

只有Vobs包含元素(目录和文件的版本),这意味着您的 cleartool find 命令只能找到VOb中的元素。

Only Vobs contains elements (versions of directories and files), which means your cleartool find command can only find said elements within a Vob.

请参见 cleartool find命令的其他示例以获取更多信息。

另请参见 cleartool find 手册页

See "Additional examples of the cleartool find command" for more.
See also cleartool find man page.

如果您停留在sn的根目录下在apshot视图中,您可以输入:

If you stay at the root level of your snapshot view, you can type:

cleartool find <vobtag> -element "{created_since(target-data-time)}" -print






但是,如果您使用的是CCRC(即ClearCase Remote Client),则您将无权使用 cleartool find 命令

仅支持 cleartool 命令的子集:请参阅 Rational ClearCase远程客户端命令行界面(CCRC CLI)


However, if you are on CCRC (that is ClearCase Remote Client), you won't have access to the cleartool find command.
Only a subset of cleartool commands are supported: see "Rational ClearCase Remote Client Command Line Interface (CCRC CLI)".

这篇关于我似乎无法获得cleartool的发现来处理简单的查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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