In ClearCase and ClearCase LT, copies a specified version of a file element into a snapshot view. In Attache, downloads files to an Attache workspace
Product | Command Type |
|---|---|
ClearCase | cleartool subcommand |
ClearCase LT | cleartool subcommand |
Attache | command |
Platform |
|---|
UNIX |
Windows |
ClearCase and ClearCase LT:
Attache:
Use the get command to copy a specified version of a file element into your snapshot view. You must issue the get command from the root directory of a snapshot view or any directory below it.
You can use this command as follows:
To read versions of file elements that are not selected by the view's config spec, either because the element is not specified by a load rule, or because you want to see a version of a loaded element other than the one currently in the view. You cannot perform ClearCase or ClearCase LT operations on these nonloaded versions copied into your view with the get command.
To get an updated copy of a version currently loaded in your view.
The get command copies only file elements into a view.
This command downloads the specified files to the workspace.
SPECIFYING THE DESTINATION FILE NAME. Default: None.
SPECIFYING THE FILE TO COPY. Default: None.
SPECIFYING THE FILES TO BE DOWNLOADED. Default: None.
SPECIFYING HOW THE FILES ARE TO BE DOWNLOADED. Default: When a directory is specified, its file contents are downloaded. If a destination file that is identical in contents with the source file already exists, it is not overwritten. If an existing destination file is read-only and differs from the source, it is always overwritten. If the destination file exists and is writable, an overwrite query is issued.
HANDLING OF DIRECTORY ARGUMENTS. Default: For each pname that specifies a directory element, get downloads the contents of that directory, but not the contents of any of its subdirectories.
NOTE: This includes directories in the version-extended namespace, which represent elements and their branches. For example, specifying foo.c@@\main\bug403 as an argument downloads the contents of that branch: all the versions on the branch, providing the resulting filenames are valid on your client host.
SPECIFYING A FILE TRANSFER LOG. Default: None.
The UNIX examples in this section are written for use in csh. If you use another shell, you may need to use different quoting and escaping conventions.
The Windows examples that include 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 UNIX shell or Windows command interpreter prompt, followed by the cleartool command. In cleartool interactive mode, cmd-context represents the interactive cleartool prompt. In Attache, cmd-context represents the workspace prompt.
Copy the version loaded in the view into the current directory.
cmd-context get -to foo.c.temp foo.c
Copy /dev/hello_world/foo.c@@/main/2 into the current directory.
cmd-context get -to foo.c.temp /dev/hello_world/foo.c@@/main/2
Copy \dev\hello_world\foo.c@@\main\2 into the C:\build directory.
cmd-context get -to C:\build\foo.c.temp \dev\hello_world\foo.c@@\main\2
Download all files in the current directory to the current Attache workspace, keeping their original time stamps. Do not overwrite any files writable already in the current workspace.
cmd-context get -noverwrite -ptime *
Download to the current Attache workspace the file file.c in the current directory and rename it tempfile.c.
cmd-context get -to tempfile.c file.c
Download to the current Attache workspace a more recent version of the file file.c in the current directory and compress while transferring.
cmd-context get -compress file.c
Overwrite existing file /jed_ws/my_vob_tag/src/file.c? [no] y
Download to the current Attache workspace all of the files and subdirectories beneath the directory my_dir.
cmd-context get -r my_dir
Download to the current Attache workspace all of the files specified in c:\users\jed\get_file, and do not overwrite writable files. (Note that the output from the wshell command appears in a separate window.)
cmd-context wshell type c:\users\jed\get_file
\proj\src\*.c
\proj\include\*.h
cmd-context get -noverwrite @c:\users\jed\get_file
checkin, checkout, config_spec, update, version_selector
|
Feedback on the documentation in this site? We welcome any comments!
Copyright © 2001 by Rational Software Corporation. All rights reserved. |