如何在cvs中查找一个人的所有提交(文件和评论)

发布于 2024-07-10 05:18:29 字数 36 浏览 5 评论 0原文

希望获取 cvs 中用户的所有文件列表(提交注释也很好)。

Looking to get a list of all the files (commit comments would be nice too) of a user in cvs.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

你另情深 2024-07-17 05:18:29

使用以下命令列出特定用户的所有提交:

cvs -q log -N -S -wuser dir/

-N 不列出标签。
-S 如果未选择修订,则不打印名称/标题。
-w[logins] 仅列出指定登录名签入的修订。

小心! 开关的顺序很重要。

有关更多选项和帮助,请使用:(

cvs -H log

上面的开关列表取自此命令的输出)。

Use the following command to list all commits by a specific user:

cvs -q log -N -S -wuser dir/

-N Do not list tags.
-S Do not print name/header if no revisions selected.
-w[logins] Only list revisions checked in by specified logins.

Watchout! The order of the switches matters.

For more options and help use:

cvs -H log

(Listing of switches above taken from this command's output).

哭泣的笑容 2024-07-17 05:18:29
cvs log -t -wJellyJoe
cvs log -t -wJellyJoe
终止放荡 2024-07-17 05:18:29
cvs history -u user -c -D 2009-01-20
cvs history -u user -l -c -D 2009-01-20

第一行查看用户自指定日期以来的所有更改
第二行仅列出最后一次更改,因此每个文件仅获取一次,即使它已更改多次。

cvs history -u user -c -D 2009-01-20
cvs history -u user -l -c -D 2009-01-20

first line to view all changes by user since specified date
second line lists only the last change, so you get each file only once, even if it has been changed several times.

你的背包 2024-07-17 05:18:29
cvs history -a -c  -D 2009-01-20

审查自 2009 年 1 月 20 日以来所有用户的所有提交

cvs history -a -c  -D 2009-01-20

to review all commits by all users since 2009-01-20

半世晨晓 2024-07-17 05:18:29

这是一个快速的单行代码,它将为您提供每个文件的列表,然后是该用户的更改以及该用户的第一行注释。

cvs log | egrep -A 1 'Working file|username'

输出将如下所示:

Working file: bin/scriptname
head: 1.14
--
date: 2008/01/01 15:15:30;  author: username; state: Exp; lines +3 -2
First line of checkin comment will appear here.

这是一个快速而肮脏的衬里,所以 YMMV。

Here's a quick oneliner that will give you a list of every file, followed by changes in that user and the first line of comment from that user.

cvs log | egrep -A 1 'Working file|username'

Output will look like:

Working file: bin/scriptname
head: 1.14
--
date: 2008/01/01 15:15:30;  author: username; state: Exp; lines +3 -2
First line of checkin comment will appear here.

This is a quick and dirty one liner, so YMMV.

¢蛋碎的人ぎ生 2024-07-17 05:18:29

您还可以使用外部工具,例如 ViewVC,它允许您使用 Web 表单输入查询。 输出在网络浏览器中的格式也很好。

You could also use external tools, such as ViewVC, which lets you input queries using web forms. The output is also formatted nicely in the web browser.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文