How do I identify what branches exist in CVS?

前端 未结 6 700
一个人的身影
一个人的身影 2021-02-04 00:12

I have a legacy CVS repository which shall be migrated to Perforce.

For each module, I need to identify what branches exist in that module.

I just want a list of

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 00:50

    As a quick hack:) The same stands true for rlog.

    cvs log -h | awk -F"[.:]" '/^\t/&&$(NF-1)==0{print $1}' | sort -u
    

    Improved version as per bdevay, hiding irrelevant output and left-aligning the result:

    cvs log -h 2>&1 | awk -F"[.:]" '/^\t/&&$(NF-1)==0{print $1}' | awk '{print $1}' | sort -u
    

提交回复
热议问题