1

Can I create a ClearCase branch type without a comment?

I realize I can use an empty comment, but will ClearCase consider that to be the same as no comment? e.g. not display it as an empty line etc.?

einpoklum
  • 86,754
  • 39
  • 223
  • 453

2 Answers2

0

e.g. not display it as an empty line

It would still display the branch type (in a cleartool lstype -kind brtype command)

Only a locked -obsolete brtype would not be listed (comment or not)

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283
  • So, an empty comment is the best I can do then? Also, perhaps I could point you at [this related question](https://softwareengineering.stackexchange.com/questions/404911/what-to-put-in-which-kind-of-comment-in-clearcase) on Programmers.SX . – einpoklum Feb 09 '20 at 17:28
  • @einpoklum Yes, unless you really want the branch type to be invisible, in which case only lock -obs gives you that (but, as the term "lock" suggests, means you cannot create any new branch from it) – VonC Feb 09 '20 at 17:29
  • No, I just want a "no comment" branch which is visible, used, and unlocked. – einpoklum Feb 09 '20 at 17:30
  • @einpoklum So yes, even though I have not tested with `-cfile` (instead of `-c`), with an *empty* file (https://stackoverflow.com/a/1702790/6309) – VonC Feb 09 '20 at 17:32
0

If the only thing we're worried about is a comment, you can use -nc on the command line and there will be no comment associated with the brtype. If you use the GUI's, the comment field isn't a mandatory one.

Brian Cowan
  • 946
  • 5
  • 7