I am trying to put version information for the release in one of the .cpp files using cleartool desc command.
These are some outputs for different desc commands:
cleartool desc -fmt "%[type]p\n" abc.cpp
Output:text_file
cleartool desc -fmt "%Nl" abc.cpp // No output
cleartool desc -fmt "%[version]p\n" abc.cpp //No Output
However, cleartool desc abc.cpp" does generate following output.
cleartool desc abc.cpp
Output: version "abc.cpp@@/main/DI_ABC_XYZ_1.0.0/1"
created 2015-07-17T10:18:41+05:30 by ggne0118.engg@ggns1tthy01
"Merge from XYZ 70471"
Element Protection:
User : UNIX:UID-999 : r-x
Group: engg : r-x
Other: : r-x
element type: text_file
predecessor version: /main/DI_ABC_XYZ_1.0.0/0
Hyperlinks:
Merge -> /data/project/common/XYZ/src/abc.cpp@@/main/1
Merge <- /data/project/common/XYZ/src/abc.cpp@@/main/XYZ7047th
Why am i not getting any output for these two commands: cleartool desc -fmt "%Nl" abc.cpp // No output cleartool desc -fmt "%[version]p\n" abc.cpp //No Output