I want the line number which has been added or changed in the particular revision or corresponding to particular comment.how can i do that in cleartool
VonC
There is no equivalent to a git log -S
or -G
(pickaxe search) in ClearCase.
The closest is to parse out the result of a cleartool annotate
(as seen in the OP's previous question).
You can annotate a specific revision by using the extended pathname as the pname
argument (for example, foo.c@@\main\bug405
)
Then you can grep the output of that annotate call in order to grep a particular line or comment.
来源:https://stackoverflow.com/questions/31786619/is-there-a-way-to-get-the-line-number-which-have-added-in-the-cleartool-annotate