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
  • 118,144
  • 57
  • 340
  • 684

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,262,500
  • 529
  • 4,410
  • 5,250
  • 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
  • 1,048
  • 6
  • 7