I want to find all the merge arrows pointing to a certain version in a script. When I describe the version of the element with the following command:
ct describe filename@@/main/some_branch/3
I get in the result the following:
Hyperlinks:
Merge <- filename@@/main/other_branch/2
I want ct describe to output only the relevant information to be used in my script, ie. the versions where the merge arrows come from. In my case, the output should look simply like this:
filename@@/main/other_branch/2
I didn’t find any relevant parameters in the -fmt from the man page. Is there any way of doing it?
The only option in the
fmt_ccaseman page would beIf this doesn’t work, you have to resort to
grep/awkcommands in order to extract those version from thecleartool describeoutput.The
cleartool descr -ahlinkrestricts a bit the output.Beside the full script option, you can have a look at external third-party tools like R&D Reporter, which can vizualize and export those same hyperlinks.
However:
For more on that tool, contact Tamir Gefen.