显示 Cleartool ls 命令的 ASCII 图形

Display ASCII graph of Cleartool ls commands

在 git 中,可以使用 git log --graph 显示日志的 ASCII 图,输出命令行图,例如:

* 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

使用命令行,您有 cleartool lsvtree

如果你想让历史集中在你当前所在的分支上(而不是默认从 /main 开始),你需要使用 -bra/nch branch-pname 选项。

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.

但是如果您需要像作者这样的额外信息,那么您需要回退到 cleartool lshistory: see ""

由于找不到适合我的东西,我用这个能力创建了自己的 python 脚本。它仍然有点粗糙,但对我有用。

任何感兴趣的人都可以使用 here as a github gist