2

In git it is possible to show an ASCII graph of the log with git log --graph which outputs a commandline graph something like:

* 040cc7c       (HEAD, master) Mannual is NOT built by default
* a29ceb7       Removed offensive binary file that was compiled on my machine
| * 901c7dd     (cvc3) cvc3 now configured before building
| * d9e8b5e     More sane Yices SMT solver caller
| | * 5b98a10   (nullvars) All uninitialized variables get zero inits
| |/
| * 1cad874     CFLAGS for cvc3 to work succesfully
|/
* d642f88       Option -aliasstat, by default stats are suppressed
  • Is this also possible with ClearCase / ClearTool when using the lsstream or lsvtree commands, without the need to open a GUI?
spoorcc
  • 2,907
  • 2
  • 21
  • 29

2 Answers2

2

Since I couldn't find anything that suited me, I created my own python script with this ability. It is still a little rough, but works for me.

For anyone interested, it is available here as a github gist

spoorcc
  • 2,907
  • 2
  • 21
  • 29
0

With command line, you have cleartool lsvtree.

If you want the history to focus on the branch you currently are (instead of starting by default at /main), you need to use the -bra/nch branch-pname option.

Starts the version tree listing at the specified branch.
You can also use an extended name as the pname argument (for example, foo.c@@\main\bug405) to start the listing at a particular branch.

But if you need additional information like the author, then you would need to fallback to cleartool lshistory: see "How to ask cleartool lsvtree to show the author's name"

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for your quick reply, but I'm specifically looking for the ASCII graph , to get a kind of visual reference. – spoorcc Jul 24 '15 at 09:31
  • @user1149326 ClearCase has not the notion of ACL graph, only one of a tree. So lsvtree is all you can get. – VonC Jul 24 '15 at 09:33
  • @user1149326 acutally, you would find the opposite request (transform a git acl history into a lsvtree one!): http://stackoverflow.com/q/26680543/6309 – VonC Jul 24 '15 at 09:34
  • The lsvtree meant there is I guess the GUI version `cleartool lsvtree -g `, which gives a graphical representation of what I want, but I would like that output to be ASCII based with the same lines representing the rebases/deliveries/merges. – spoorcc Jul 24 '15 at 09:36
  • @user1149326 I don't know that cleartool lsvtree does that. It only display a list of versions: `cleartool lsvtree -all ` – VonC Jul 24 '15 at 09:37