I need to get the version (entire version like main/branch1/branch2/1
) of a particular file using ClearCase tool or java code.
Can some one please help me on this ?
I need to get the version (entire version like main/branch1/branch2/1
) of a particular file using ClearCase tool or java code.
Can some one please help me on this ?
The command to use is cleartool get
:
On a UNIX or Linux system, copy
/dev/hello_world/foo.c@@/main/2
into the current directory.
cleartool get -to foo.c.temp /dev/hello_world/foo.c@@/main/2
On a Windows system, copy
\dev\hello_world\foo.c@@\main\2
into theC:\build
directory.
cleartool get -to C:\build\foo.c.temp \dev\hello_world\foo.c@@\main\2
You can see more at "In ClearCase, how can I view old version of a file in a static view, from the command line?":
cleartool get
don't do stdout (it only copies to a file)in a dynamic view, you can directly access any version you want
cd /view/MyView/vobs/myVobs/myPath/myFile@@/main/[...]/maBranch
cat 1