1

There are certain files checked out by a user in reserved mode. This user has quit now we need to unserve these checkouts/override the checkout.

I'm trying to give

cleartool unreserve -view XGWP014:C:\ccweb\user\view.stg M:\my_view\vob_Tag\sourcepath\*

It seems not be working.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
user3437212
  • 637
  • 1
  • 10
  • 20

1 Answers1

0

The cleartool unreserve command do mention taking as parameter 'pname...':

One or more pathnames, each of which specifies an element.
The checkout in the current view is changed, unless you use a view-extended pathname to specify another view

So if you are in the right view, you don't need the -view.

And pname is supposed to represent a checked out (reserved) element. and if you use cleartool single-command mode, you may need to change the wildcards and quoting to make your command interpreter process the command appropriately.
That is why '*' doesn't work in a cmd Windows session.

If is better to find all elements checkouts, and pass each element to a cleartool unreserve line (similar to this answer).
Or, as in this question (and using Gnu On windows):

cleartool lsco -a -s -cview | xargs cleartool unreserve

But: if the view is no longer accessible or available, another solution would be to remove comlpetely the "checked out" status for those files: See "How to recover checked out file in Clearcase?"

cleartool mount \myVob
cd m:\mynewView\myVob
cleartool rmview -force -uuid old_view_uuid

To find the uuid of your old view, try a:

cleartool descr -l vob:\myVob

And look for a view storage path including your old view name in it.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • the view where the checkouts are done is not accesible, as an admin I want to remove the checkouts/make them unreserve. Is there any equivalent for 'xargs' in windows? – user3437212 Nov 25 '14 at 15:26
  • @user3437212 if you want to completely remove the checkout status for those files: http://stackoverflow.com/a/20639706/6309 – VonC Nov 25 '14 at 15:32