Accesses one or more derived objects (DOs) from a dynamic view, or converts a nonshareable derived object to a shareable (promoted) derived object
ClearCase (cleartool subcommand), Attache (command)
The winkin command enables you to access the data of any existing DO, even if it does not match your view's build configuration (and, thus, would not be winked in by a clearmake build). Note that you cannot access a DO's file-system data directly, using a version-extended pathname, such as hello.exe@@21-Dec.16:18.397. Instead, you must wink it in to a dynamic view, and then access it using that view.
winkin also converts nonshareable DOs to shareable (promoted) DOs. If you specify a nonshareable DO, winkin first advertises the DO by writing information about it to the VOB, and then promotes it by copying its data container into the VOB and moving its configuration record into the VOB. Because a shareable DO cannot have nonshareable sub-DOs or sibling DOs, winking in a nonshareable DO also advertises its sub-DOs and siblings, converting them to shareable DOs. With -siblings, winkin advertises and promotes the DO's siblings.
NOTE: When a nonshareable DO is converted to a shareable DO, its DO-ID changes. For more information, see Derived Objects and Configuration Records in Building Software with ClearCase.
If you specify a shared DO while working in the view where it was originally built, and if a view-resident data container for the DO in that view still exists, then the view-resident data container is scrubbed, and your view accesses the shared data container in VOB storage. This is equivalent to executing a view_scrubber command.
If you specify an unshared DO or nonshareable DO in your view, the data container is promoted to the VOB. The view-resident data container is scrubbed, and your view accesses the data container in VOB storage. This is equivalent to executing a view_scrubber -p command.
When you need to process a large number of DOs, use view_scrubber rather than winkin.
No special permissions are required at the VOB database level. No locks apply. At the file-system level, you must have read permission on the DO to be winked in.
LISTING RESULTS INSTEAD OF PERFORMING THE WINKIN. Default: The listed derived objects are winked in.
PRESERVING UNSHARED DERIVED OBJECTS IN YOUR VIEW. Default: winkin overwrites any unshared DOs in your view.
WINKING IN SIBLING DERIVED OBJECTS. Default: Only the listed DOs are winked in, without their siblings (DOs created by the same build script that created the DO to be winked in). Note that you do not need to use -siblings with -recurse, which always winks in siblings.
WINKING IN DERIVED OBJECT SUBTARGETS. Default: Only the listed derived objects are winked in, without any derived objects that are subtargets of these objects. Only derived objects in directories rooted at the current working directory are winked in.
SPECIFYING AN ALTERNATIVE PATHNAME. Default: A derived object is winked in to your view at the pathname you specify with a DO-pname argument, minus any DO-ID. For example, if you specify the DO-pname ..\src\hello.exe@@21-Dec.16:18.397, then by default, it is winked in at pathname ..\src\hello.exe. Any object at the destination pathname is overwritten, subject to standard permissions-checking. (Overwriting a shared DO decrements its reference count; no file system data is actually deleted.)
|
|
SPECIFYING THE DERIVED OBJECT. Default: None.
m:\george\users_hw\hello.exe | (view-extended pathname) |
hello.exe@@21-Dec.16:18.397 | (VOB-extended pathname, including DO-ID) |
m:\george\users_hw\hello.exe@@05-Jan.09:16:788 | (combination) |
Examples including wildcards or quoting are written for use in cleartool interactive mode. 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.
In cleartool single-command mode, cmd-context represents the command interpreter prompt. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
cmd-context winkin -out . m:\george\users_hw\hello.obj
Winked in derived object "hello.obj"
cmd-context lsdo hello.exe
02-Mar.20:02 "hello.exe@@02-Mar.20:02.376"
01-Mar.09:06 "hello.exe@@01-Mar.09:06.365"
cmd-context winkin -out hello.March1 hello.exe@@01-Mar.09:06.365
Promoting unshared derived object "hello.exe@@01-Mar.09:06.365"
Winked in derived object "hello.March1"
clearmake hello.exe
cmd-context winkin hello.exe
Promoting unshared derived object "hello.exe"
Winked in derived object "hello.exe"
cmd-context lsdo main.obj
04-Sep.16:14 "main.obj@@04-Sep.16:14.49"
cmd-context winkin -siblings main.obj@@04-Sep.16:14.49
Promoting unshared derived object "\mg_test\main.obj".
Winked in derived object "\mg_test\main.obj"
Promoting unshared derived object "\mg_test\sibling.exe".
Winked in derived object "\mg_test\sibling.exe"
cmd-context winkin -recurse main.exe@@04-Sep.16:03.34
Promoting unshared derived object "\mg_test\main.exe"
Winked in derived object "\mg_test\main.exe
Promoting unshared derived object "\mg_test\main.obj"
Winked in derived object "\mg_test\main.obj"
Promoting unshared derived object "\mg_test\sibling.exe"
Winked in derived object "\mg_test\sibling.exe"
Promoting unshared derived object "\mg_test\test.obj"
Winked in derived object "\mg_test\test.obj"
NOTE: When you use -recurse, you can also specify the DO to wink in by using its view-extended pathname. The DO and its subtargets are recursively winked in to the current (dynamic) view. For example:
cmd-context winkin -recurse m:\cep\mg_test\main.exe
cmd-context winkin -print -recurse main@@04-Sep.16:03.34
Would wink in derived object "\mg_test\main.exe"
Would wink in derived object "\mg_test\main.obj"
Would wink in derived object "\mg_test\test.obj"
cmd-context winkin -noverwrite -recurse \testvw\mg_test\main.exe
Winked in derived object "\mg_test\main.exe"
Winked in derived object "\mg_test\main.obj"
Winked in derived object "\mg_test\sibling.exe"
Will not wink in over unshared derived object "\mg_test\test.obj"
clearmake, scrubber, view_scrubber
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 1999 by Rational Software Corporation. All rights reserved. |