Recursive Checkin and Checkout on Windows Clearcase

517 views
Skip to first unread message

SSims

unread,
May 29, 2008, 8:01:20 AM5/29/08
to ClearCase
To do it on Windows NT/XP:

Open a command prompt and change to the directory where you want to do
the recursive checkin or checkout.

If this is a UMC project, you must open the GUI at this point and
select the associated activity in the My Activities area, but if it's
just base Clearcase, you don't have to do anything extra.

For checkout, from the command line:

for /F "delims=@" %i in ('cleartool find . -print') do @cleartool co -
unr -nc "%i"

The quotes are literal, you must type them. If you want to restrict
this to a mask such as *.DLL do this:

for /F "delims=@" %i in ('cleartool find . -print -name *.DLL') do
@cleartool co -unr -nc "%i"

If you want to put this in a CMD file you have to use double %, like
this:

@for /F "delims=@" %%i in ('cleartool find . -print') do @cleartool co
-unr -nc "%%i"

To check in, just change 'co' to 'ci' and remove the -unr (unreserved)
option. Or use 'unco' for un[do]checkout.

To eradicate the entire project:

@for /F "delims=@" %%i in ('cleartool find . -print') do @cleartool
rmelem -f "%%i"

just kidding....becareful with that.

S

Marc Girod

unread,
Jun 1, 2008, 1:18:42 PM6/1/08
to ClearCase
On May 29, 1:01 pm, SSims <kippy.john...@gmail.com> wrote:
> To do it on Windows NT/XP:

There's also ClearCase::Wrapper::DSB, from CPAN.
This way, it works on Windows as on Unix.

Marc

Suresh Kumar.M

unread,
Jun 3, 2008, 10:44:38 AM6/3/08
to Clea...@googlegroups.com, kippy....@gmail.com
Hi Johnson,

I saw your mass CO / CI answers for Windows ClearCase. Since, we are using Solaris (UNIX)
as our OS. Can i try like this.

--> After setting my ConfigSpecs...

--> for i in `cat listoffiles`
     do
     cleartool co -nc $i
     done

But this restricts for particular list of files,that need to be checkedout.

Thanks, Kumar.
Reply all
Reply to author
Forward
0 new messages