我是一个git人,但现在我必须在项目中暂时使用CVS。我还没有找到一个命令可以显示格式良好的按时间顺序排列的提交列表,其中包含作者、提交消息、日期和修订(没有其他内容)。
相反,我得到了有关 RCS 文件、锁等各种无用信息,并且 cvs log
似乎按文件而不是按日期对提交进行分组,这使得很难概述中发生的情况。存储库。
亲爱的 CVS 专家,有办法做到这一点吗?
I'm a git guy, but now I have to use CVS in a project temporarily. I haven't been able to find a command that displays a nicely formatted chronological commit list with author, commit message, date and revision (and nothing else).
Instead I get all sorts of useless information about RCS file, locks, etc, and cvs log
seems to group commits by file rather than by date which makes it hard to get an overview of what has happened in a repository.
Is there a way to do that, dear CVS experts?
发布评论
评论(2)
使用 git cvsimport 将整个存储库导入到 git 中,然后与 git 进行交互。它不像 git svn 那样顺利,但它确实工作得很好。
Use
git cvsimport
to import the entire repository into git and then interact with git. It's not quite as smooth asgit svn
, but it does work well.下面是一个类似于 Git 或 SVN 的显示 CVS 提交历史记录的脚本:
https://alvinabad.wordpress.com/2015/03/01/display-the-history-of-cvs-commits-similar-to-git-or-svn/
https://github.com/alvinabad/cvs-utils/blob/master/cvs-history.py
Here's a script to display the history of CVS commits similar to Git or SVN:
https://alvinabad.wordpress.com/2015/03/01/display-the-history-of-cvs-commits-similar-to-git-or-svn/
https://github.com/alvinabad/cvs-utils/blob/master/cvs-history.py