I can't get cleartool to find work on a simple query

Disclamer: I am very new to Clear Case.

I want to know which files I have changed on a given date. I am using 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

      

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

Here's what I 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 docs are useless, the queries they provide do not work either. Can anyone help me?

+3


source to share


1 answer


In order to be in Vob, you must select one directory in your snapshot view.

  • c:\SnapshotViews\my_view_name

    is the root directory of your snapshot
  • c:\SnapshotViews\my_view_name\aVob

    is within the VOB referenced by the configuration spec of your snapshot view

Only Vobs contains items (directory and file versions), which means your command cleartool find

can only find specified items inside a VOB.

See " More cleartool find command examples " for more information.
See also the cleartool find

man page
.



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

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

      


However, if you are in CCRC (this is the ClearCase Remote Client), you will not have access to the commandcleartool find

.
Only a subset of the commands are supported cleartool

: see Rational ClearCase Remote Client Command Line Interface (CLRC CLI) ".

+4


source







All Articles