annotate
apropos
catcr
catcs
cc.icon
cc.magic
cd
chactivity
chbl
checkin
checkout
checkvob
chevent
chflevel
chfolder
chmaster
chpool
chproject
chstream
chtype
chview
clearaudit
clearbug
cleardescribe
cleardiffbl
cleardiff
clearexport_ccase
clearexport_cvs
clearexport_pvcs
clearexport_rcs
clearexport_sccs
clearexport_ssafe
clearfsimport
cleargetlog
clearhistory
clearimport
clearjoinproj
clearlicense
clearmake
clearmake.options
clearmrgman
clearprojexp
clearprompt
cleartool
clearviewupdate
clearvobadmin
comments
config_ccase
config_spec
cptype
credmap
creds
deliver
describe
diffbl
diffcr
diff
dospace
edcs
endview
env_ccase
events_ccase
export_mvfs
exports_ccase
file
find
findmerge
fmt_ccase
getcache
get
getlog
help
hostinfo
init_ccase
ln
lock
lsactivity
lsbl
lscheckout
lsclients
lscomp
lsdo
lsfolder
lshistory
ls
lslock
lsmaster
lspool
lsprivate
lsproject
lsregion
lsreplica
lssite
lsstgloc
lsstream
lstype
lsview
lsvob
lsvtree
makefile_aix
makefile_ccase
makefile_gnu
makefile_pmake
makefile_smake
makefile_sun
man
merge
mkactivity
mkattr
mkattype
mkbl
mkbranch
mkbrtype
mkcomp
mkdir
mkelem
mkeltype
mkfolder
mkhlink
mkhltype
mklabel
mklbtype
mkpool
mkproject
mkregion
mkstgloc
mkstream
mktag
mktrigger
mktrtype
mkview
mkvob
mount_ccase
mount
msdostext_mode
mvfslog
mvfsstorage
mvfstime
mvfsversion
mv
omake
pathnames_ccase
permissions
profile_ccase
promote_server
protect
protectvob
pwd
pwv
query_language
quit
rebase
recoverview
reformatview
reformatvob
register
relocate
rename
reqmaster
reserve
rgy_backup
rgy_check
rgy_passwd
rgy_switchover
rmactivity
rmattr
rmbl
rmbranch
rmcomp
rmdo
rmelem
rmfolder
rmhlink
rmlabel
rmmerge
rmname
rmpool
rmproject
rmregion
rmstgloc
rmstream
rmtag
rmtrigger
rmtype
rmver
rmview
rmvob
schedule
schemes
scrubber
setactivity
setcache
setcs
setplevel
setsite
setview
shell
snapshot.conf
softbench_ccase
space
startview
type_manager
umount
uncheckout
unlock
unregister
unreserve
update
version_selector
view_scrubber
vob_restore
vob_scrubber
vob_sidwalk
vob_snapshot
vob_snapshot_setup
wildcards_ccase
winkin
xclearcase
xcleardiff
xmldiffmrg
DESCRIPTION
The clearexport_ccase utility plays a central role in cross-VOB maintenance by copying VOB objects from one VOB to another, specifically:
- Elements
- All the elements and links cataloged within a directory
- A hierarchy of directories, file elements, and VOB symbolic links
For information about moving elements from one VOB to another or splitting a VOB into two or more VOBs, see relocate.
The copy procedure involves two stages: export and import. During the export stage, you invoke clearexport_ccase in the VOB where the data to be moved resides. clearexport_ccase creates a datafile (by default, named cvt_data) and places in it descriptions of the objects in the VOB (for details, see Table 1 ).
In the import stage, you invoke clearimport on the datafile. clearimport reads the descriptions in the datafile and imports the information into the new VOB. Use the same config spec (the same view) for both the export and import phases.
Note: You can run this command only in a dynamic view. Also, you cannot run this command on UNIX and then run clearimport on Windows to import the data, or vice versa. However, you can transfer data in either direction between a UNIX VOB and a Windows VOB by mounting the UNIX VOB on your Windows machine and running both clearexport_ccase and clearimport on the Windows machine.
Contents of the Datafile
Table 1 describes which aspects of objects clearexport_ccase includes in the data file. Not all objects are included in all circumstances; for example, derived objects are not available in snapshot views.
Table 1. Clearcase Items Included in Data File
Translation of Branches and Version Labels
A label type cannot have the same name as a branch type within the same VOB. If clearexport_ccase encounters a label-branch naming conflict, it renames one of them. For example, the label rel2 may become rel2_1. Such renaming can introduce inconsistencies over multiple runs of clearexport_ccase. The same label may be renamed during one run, but not during others. You can enforce consistency by using the same translation file in multiple invocations of clearexport_ccase. If you name such a file, using the –T option, clearexport_ccase uses it as follows:
- To look up each label or branch to determine whether it has been translated previously. If a match is found, the current name is translated the same way.
- To record each translation of a new label or branch for use in future lookups.
The first time you use clearexport_ccase, use –T to create a new translation file. On subsequent invocations, use –T again and specify the same translation file, for consistent name translation.
Handling of Elements That Cannot Be Exported
When clearexport_ccase encounters an element that cannot be exported (for example, a file with format problems or a broken symbolic link), it prints an error and continues. After creating the data file, the command prints a summary of the elements that could not be exported.
OPTIONS AND ARGUMENTS
Handling of Directory Arguments
- Default
- The datafile includes the version
of a directory or file element currently selected by your view. If you specify
a directory as a source-name argument, clearexport_ccase processes
the files in that directory, but ignores the contents of the subdirectories;
and clearimport creates a directory element
for source-name and for each of its subdirectories.
- –r
- clearexport_ccase descends
recursively into all the currently selected versions of source-name arguments
that are directories.
Selective Conversion of Files
- Default
- clearexport_ccase processes
all elements it encounters.
- –s date-time
- clearexport_ccase processes
only versions modified with new metadata (labels, branches, attributes, and
so on) or created since the specified time. Exception: clearexport_ccase processes
a branch created at an old version if one or more new versions exist on the
branch. Use this option for regular, incremental updating of an element from
another one that is still under development. Be sure to specify a date-time that
covers the entire period since the preceding update. In other situations,
it is probably better to use –I instead of –s.
Note: In an incremental updating situation, if you remove a label or branch from an imported version, clearimport does not remove the label or branch from the target element.
Specify the time in one of the following formats:
date.time | date | time | now where:
Specify the time in 24-hour format, relative to the local time zone. If you omit the time, the default value is 00:00:00. If you omit the date, the default is today. If you omit the century, year, or a specific date, the most recent one is used. Specify UTC if you want to resolve the time to the same moment in time regardless of time zone. Use the plus (+) or minus (-) operator to specify a positive or negative offset to the UTC time. If you specify UTC without hour or minute offsets, Greenwich Mean Time (GMT) is used. (Dates before January 1, 1970 Universal Coordinated Time (UTC) are invalid.)
- –p date-time
- Like -s, but processes
only versions modified with new metadata (labels, branches, attributes, and
so on) or created before the specified time.
- –I { now | date-time }
- Processes only the important versions
of an element, but includes all versions created since the specified time.
A version is important if any of these conditions is true:
- It is the most recent version on its branch.
- It has a version label.
- It has an attribute.
- A subbranch is sprouted from it.
- Either end of a merge arrow hyperlink is connected to it.
- It is the most recent version on its branch.
Directory for Temporary Files
- Default
- On UNIX systems, the value of P_tmpdir (set in the stdio.h system
include file; you can override this value by setting the TMPDIR environment
variable).
On Windows systems, the value of the TMP environment variable.
- –t temp-dir-pname
- Specifies an alternate directory
for temporary files. This directory must already exist.
Translation of Branches and Labels
- Default
- As described in the section “Translation of Branches and Version Labels”, clearexport_ccase may
rename a branch or label type to avoid naming conflicts.
- –T translation-file
- Uses the specified translation
file to control conversion of label and branch names.
Specifying Files to Be Processed
- Default
- clearexport_ccase processes
the current working directory (equivalent to specifying a dot ( . ) )as the source-name argument). clearimport creates an element in the target VOB
for each element in the current working directory. clearimport creates
a directory element in the target VOB for each subdirectory of the current
working directory.
- source-name ...
- One or more pathnames, specifying
elements and/or directory versions:
- For each specified element, clearimport re-creates
some or all of its versions.
- For each specified directory version, clearexport_ccase places
descriptions in the datafile for all the elements it catalogs. clearimport either
reuses an existing directory (creating a new version if new elements are added)
or creates a directory element with a single version for the specified directory
itself, and for its subdirectories.
Each source-name can be a simple file or directory name or a wildcard as described in wildcards_ccase. Specifying a parent directory (..) causes an error, as does any UNIX pathname that includes a slash or any Windows pathname that includes a slash or backslash. Run this command in a directory under which the elements to be exported reside.
- For each specified element, clearimport re-creates
some or all of its versions.
EXAMPLES
- Create entries in the datafile for the entire tree under directory element src, exporting important versions created before 1999 and all versions created since the beginning of 1999.
- Create entries in the datafile for the elements in the current working directory, but not in any subdirectories; store the datafile in a file named newcvt.
SEE ALSO
clearexport_*, clearimport, events_ccase, rcs(1) , relocate , rsh(1) or remsh(1), sccs(1), wildcards_ccase