Clearcase Client Commands
2014-09-23 22:16
330 查看
Configure user aliases:
Commands:
/usr/atria/bin/xclearcase & /usr/atria/bin/xcleardiff & /usr/atria/bin/xlsvtree & (Same as xclearcase -vtree)[Potential Pitfall]: You may have to issue the command export LANG=C prior to launching GUI. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Free Information Technology Magazines and Document Downloads![]() <iframe frameborder="0" hspace="0" marginheight="0" marginwidth="0" scrolling="no" tabindex="0" vspace="0" width="100%" id="I0_1411481831725" name="I0_1411481831725" src="https://apis.google.com/se/0/_/+1/fastbutton?usegapi=1&size=small&count=true&origin=http%3A%2F%2Fwww.yolinux.com&url=http%3A%2F%2Fwww.yolinux.com%2FTUTORIALS%2FClearcaseCommands.html&gsrc=3p&jsh=m%3B%2F_%2Fscs%2Fapps-static%2F_%2Fjs%2Fk%3Doz.gapi.zh_CN.dgU_7Da2P9w.O%2Fm%3D__features__%2Fam%3DAQ%2Frt%3Dj%2Fd%3D1%2Ft%3Dzcms%2Frs%3DAItRSTOa_xxkmouI_1QTedtLLGH4d65fmQ#_methods=onPlusOne%2C_ready%2C_close%2C_open%2C_resizeMe%2C_renderstart%2Concircled%2Cdrefresh%2Cerefresh%2Conload&id=I0_1411481831725&parent=http%3A%2F%2Fwww.yolinux.com&pfname=&rpctoken=35374315" data-gapiattached="true" title="+1" style="position: static; top: 0px; width: 70px; margin: 0px; border-style: none; left: 0px; visibility: visible; height: 15px; "></iframe> ![]() Advertisements Jobs Java Softwareentwicklung Rostock, Mecklenburg-Vorpommern, Germany FERCHAU Engineering GmbH ASP.NET C# developer Steenbergen, Noord-Brabant, Netherlands Ardekay Software Engineer Bangalore, Karnataka, India Hewlett-Packard Company Big Data Consultant Gent, Oost-Vlaanderen, Belgium Damco Solutions Senior Web Developer Warren, NJ Benvia LLC Entry Level/Mid Level .NET Developer Cleveland, OH Beacon Hill Staffing Group PHP/ MySQL Web Developer Plymouth, Devon, United Kingdom ICO3 Ltd Software Development Manager - Ft... Fort Worth, TX Frontline Source Group QA - Sales Force Durham, NC Avanitechsolutions Cloud Support Engineer (m/w) Hannöver, Niedersachsen, Germany BIT.Group GmbH POST A JOB > POWERED BY JOBTHREAD ![]() |
Sample $HOME/.bashrc
Add new file to Clearcase control:
Example of adding all files to Clearcase control: ct mkelem -ci -nc * Add new Directory to Clearcase control:
Where the option "-follow" allows mklabel to follow symbolic links. Note: Must perform the command from a directory within the VOB. Update a file and apply the existing label to the new file:
Remove old label:
List all labels on a file:
Label formats: RELEASE_NAME_#.#.# Default labels created by Clearcase: BACKSTOP: No changes allowed. No new versions allowed when label applied. Also see "lock" command. CHECKEDOUT: Currently checked out versions. LATEST: Latest version of a branch. Create a view: To find the directory used for storing views issue the following command:
Assuming the move is on a single server and there are no checked out files. Stop viewserver.
Check first if there are any files checked out. Run makefile. List configuration record. The advantage of clearmake is that derived objects (object files generated by compiling source, hence derived from the source) are stored with extended names. i.e. file-name.o@@26Feb.14:28:9621 View default group on Windows PC: Open a DOS command prompt window. cd Program Files\Rational\Clearcase\etc\utils Execute the "creds" command Read the "Primary Group" domain. PC Configspec: right click on XX: drive + clearcase + properties. Clearcase explorer: C:\Program Files\Rational\ClearCase\bin\clearexplorer.exe
Find all files with given label in the VOB: ct find -all -type file -version 'lbtype(LABEL-NAME)' -print Find all new or changed files since that with a specified label: ct find -all version '\!lbtype(LABEL-NAME) && version(/main/LATEST)' -print Find all files at the end of a branch in current directory: ct find ./ -version 'version(.../branch-name/LATEST)' -print
allow a developer access to the VOB data (source code storage) provide a workspace are where users can privately modify VOB data without disturbing the view of the VOB data held by other developers. Changes are only accessible by others when a file is checked into the VOB from the users private space. There are three types of views: Snapshot view: Changes and updates by others are not available to a snapshot view until a new "snapshot" is taken. Web view: accessible from Clearcase Web interface. Similar to a snapshot view. Dynamic view: access to all versions of VOB elements and view private objects as they are checked into the VOB. Directory Structure within view:The Clearcase view and versioning system is based on a directory structure beneath what at first appears to be a standard set of files in a directory structure.Example: (set view first: ct setview xxxxxx)
Actual Directory path representation:
Clearcase stores the full contents of the file saved and not a diff between versions like RCS or SCCS which builds versions of the file when neccessary. The file "3" and "LATEST" are identical. cd filename.ext@@/main diff 3 LATEST This will show no change between the files. Search all archived files for a string: find filename.ext@@ -print grep 'wordToFind' {} \; This knowledge can facilitate searches in previous versions of source code. Relationship between views and directory structure:Each view will have the directory structure described above within its view.
When you set your view ("ct setview view-name1"), it allows one to view the Clearcase archive from /vob/vob-name/.... The above path is for /view/view-name1/ The path /view/view-name1@@/ will show all the revision branches. i.e.
Basic configspec: (/destination viewstore/view-tag.vws/config_spec)
Allow parallel development between two developers and later merge the code. Create a new version of the software with different features for a specific purpose. Add features in a separate branch to be merged in later after it is proven. The benefit is to allow the main branch to continue without being disturbed. Configspec to view branch:
The branch type must first be created with the command: mkbrtype -c "Comment goes here" branchx Create the branch type before creating the actual branch. Only one branch type of a given name will exist. Many files may exist with the branches of the same branch type. Example of creating a branch: ct mkbrtype -c "Comment goes here" BugFix_branch_Y ct setview view-name ct mkbranch -nc BugFix_branch_Y file-to-branch.cpp This will create version "0" of file-to-branch.cpp in the branch named BugFix_branch_Y. Create a branch off of version 5 of file-to-branch.cpp in branch main. ct mkbranch -nc BugFix_branch_Y file-to-branch.cpp@@/main/5 Create branch using all source: ct mkbranch -nco -c "Bugfix patch B" patch_B *.cpp *.h GUI: ct lsvtree -g file-name Merging: If one wishes to include the changes made in a branch into the "latest" version in the "main" branch, one would perform a "merge". Merge version 5 on the branch into the "latest" version in the "main" branch: ct merge -to file-to-merge.cpp -insert -version /main/BugFix_branch_Y/5 Specify consecutive versions 2 through 5: ct merge -t file-to-merge.cpp -insert -version /main/BugFix_branch_Y/2/main/BugFix_branch_Y/5 Merge all changes in a branch into the "main" branch: ct findmerge file-to-merge.cpp -fversions .../BugFix_branch_Y/LATEST -merge List all branches: ct lstype -kind brtype
xclearcase: Command: /usr/atria/bin/xclearcase xcleardiff: Command: /usr/atria/bin/xcleardiff Motif resource file: (Add to $HOME/.Xdefaults) xcleardiff*promptBrightColor: yellow xcleardiff*changeColor: blue xcleardiff*deleteColor: red xcleardiff*insertColor: green xlsvtree: Command: /usr/atria/bin/xlsvtree [Potential Pitfall]: You may have to issue the command export LANG=C prior to launching GUI. Common resources: Motif resource file: (Add to $HOME/.Xdefaults)
... target: version.h $(OTHER_OBJS) cc -o target -DDATE ="\"@(#)`date`\"" $(OTHER_OBJS) ... Source Code: (.h file) ... char *version = "@(#)target R3.0"; char *version_time = DATAE; ... This is used in conjunction with the UNIX what command. (Not available on Linux)
spooler can read. Applications spawned from scripts are not able to process Clearcase controlled files. Raw executables can. When working with HTML files I can use the konquerorbrowser but I have not had any luck running Mozilla which is spawned from a shell script.
VC-Clearcase: Emacs/Clearcase Integration - Emacs extension and keybindings Apache ANT and Clearcase (Java build tool) PERL/CPAN: CtCmd: CtCmd-1.11 Argv: Argv ClearCase-Argv: ClearCase-Argv ClearCase-ClearPrompt: ClearCase-ClearPrompt ClearCase-CRDB: ClearCase-CRDB ClearCase-SyncTree: ClearCase-SyncTree ClearCase-Wrapper: ClearCase-Wrapper ClearCase-Wrapper-DSB: ClearCase-Wrapper-DSB Env-Path: Env-Path IBM Clearcase Manuals Getting Started with Rational ClearQuest - IBM Web training
|
相关文章推荐
- clearcase Commands
- 利用 IBM Rational Software Architect 和 IBM ClearCase Remote Client(CCRC)简化全球化开发与交付
- 利用 IBM Rational Software Architect 和 IBM ClearCase Remote Client (CCRC) 简化全球化开发与交付
- ClearCase commands summary
- Rational ClearCase LT教程
- How to Rename a View in ClearCase
- How to create new view by using cleartool command in Clearcase?
- Structure of ClearCase UCM Config Specs
- clearcase command (linux 常用命令)
- ClearCase LT 的使用心得(一)
- ClearCase Config_Spec 之版本选择规则
- List of FTP commands for the Microsoft command-line FTP client
- Myeclipse5.1 +ClearCase 安装插件问题
- Chapter 3: SSH Client Commands __Linux 101 Hacks
- Rational ClearCase 的不爽
- UCM ClearCase与BASE ClearCase的区别
- Base ClearCase与ClearQuest的集成
- ClearCase Config_spec 之控制规则块
- Clearcase Tunning
- The Art of ClearCase(R) Deployment: The Secrets to Successful Implementation