Get a CVS log/history similar to the “git log” command?

蓝咒 提交于 2019-12-07 06:40:21

问题


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?


回答1:


Use git cvsimport to import the entire repository into git and then interact with git. It's not quite as smooth as git svn, but it does work well.




回答2:


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



来源:https://stackoverflow.com/questions/5814490/get-a-cvs-log-history-similar-to-the-git-log-command

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!