user3806728
user3806728

Reputation: 331

ClearCase clearfsimport using unreserved instead of reserved

The clearfsimport command for Clearcase is always using RESERVED checkout while trying to import a project inside clearcase VOB.

Can you please tell me how to perform clearfsimport based project file import using UNRESERVED option instead of default RESERVED option?

Upvotes: 3

Views: 166

Answers (1)

VonC
VonC

Reputation: 1324407

One way would be to set your ClearCase preferences to unreserved by default.
See "To set the default for reserved or unreserved checkouts (Windows)e"

Tools > Options and, in the Options window, click ClearCase Options.

Click Start > Programs > IBM Rational > IBM Rational ClearCase > User Preferences.

In the ClearCase User Options window, in the Check Out field, to make unreserved checkouts the default setting, clear Reserved.

But if you don't want to change the default (or you are on Linux), you can also define a post-op checkout trigger.

cleartool mktrtype -element -all -post checkout -exec '/opt/rational/clearcase/bin/cleartool unreserve -nc '$CLEARCASE_PN' TRIGGERNAME

You would set that trigger just for the duration of the clearfsimport.

Upvotes: 1

Related Questions