1

Is there any native way of only listing a comment's "title" in ClearCase? When I say title, I mean something similar to what Git has, where a comment of the type

Some title

Some detailed description of the comment...

when added, will mostly show up as only Some title in most Git commands, unless the user explicitly wants to see the full description.

Tudor Timi
  • 7,453
  • 1
  • 24
  • 53
  • The notion of title exists for UCM activities, but not for base ClearCase. The closest is to print the first line of what `cleartool describe –fmt "%c" afile` gives you. I'll put an answer later after work. – VonC Aug 29 '17 at 07:56
  • @VonC I'm starting to see a pattern here. Everything I want is already built into UCM, but we can't migrate to it. – Tudor Timi Aug 29 '17 at 10:39
  • There's can't and CAN'T. UCM isn't much more than the encapsulation of a number of best practices. And it simplifies the user experience for branches, labels, activity management, etc. From your last few questions, I'm guessing that there are multiple groups with different usage patterns, including fighting over a shared /main branch. Sounds like a "challenging" environment. – Brian Cowan Aug 30 '17 at 03:29
  • @BrianCowan It is and any attempt to try to improve anything is met with 'we don't need it, we've always done it like this and we were fine'. – Tudor Timi Aug 30 '17 at 06:35
  • @BrianCowan Changing to UCM is political, since we don't control the development environment (central CAD group does and implements it for all divisions). What a colleague and I started doing is implementing our own wrapper scripts over Base ClearCase that are heavily SVN/Git and UCM inspired. – Tudor Timi Aug 30 '17 at 06:38
  • @BrianCowan We intend to use our scripts for our code and hopefully they can catch on. – Tudor Timi Aug 30 '17 at 06:39
  • @BrianCowan At the same time, I considered using an existing wrapper over ClearCase. I found one for Git but it wasn't really maintained. Do you or VonC know of any good one (SVN would also be fine)? – Tudor Timi Aug 30 '17 at 06:42

1 Answers1

1

As I commented, the closest is to print the first line of the description (cleartool describe) of a version:

cleartool describe –fmt "%c" afile | head -1

From fmt_ccase, "%c" display the associated comment.

This differ from the UCM activities (which are grouping several versions together): they do have an "headline" (title).

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250