是否有一个 Perforce 命令可以显示文件/目录的所有签入列表以及已更改的文件列表和描述?

发布于 2024-11-28 07:47:32 字数 214 浏览 0 评论 0原文

p4 Changes -l ... 显示签入列表和描述,但不显示签入中修改的文件列表。有没有办法在一个命令中做到这一点,而不需要创建一个包装器脚本来组合另一个命令的输出,例如p4描述p4文件< /代码>?

在 Subversion 中,我可以通过运行 svn log -v 来完成此操作。

p4 changes -l ... shows us the list of check-ins and the description, but it doesn't show the list of files that were modified in the check-in. Is there a way to do that in one command, without the need to create a wrapper script that combines the output of another command like p4 describe or p4 file?

In Subversion, I can do this by running svn log -v.

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

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

发布评论

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

评论(3

暗藏城府 2024-12-05 07:47:32

“文件”命令可以满足您的要求。一个简单的方法是:

p4 files //...@=<changelist>

该示例将在指定的视图下列出该更改列表修改的文件。

The 'files' command can do what you're looking for. An easy way is:

p4 files //...@=<changelist>

That example will list the files modified by that changelist, under the view specified.

苍风燃霜 2024-12-05 07:47:32

您可以使用“describe”命令获取更改列表的描述以及受影响的文件。

例如,p4describe -s将描述更改列表,“-s”将阻止它显示文件差异。

You can use the "describe" command to get the description of a changelist, along with the files affected.

For example, p4 describe -s <changelist> will describe the changelist, and the "-s" will prevent it from displaying file diffs.

街角迷惘 2024-12-05 07:47:32

一行列出了对分支所做的所有更改,以及受影响文件的描述和列表,但不显示差异。感谢答案的组合。适用于带有 Unix utils 的 Windows

p4 changes -s submitted //depot/xxx/yyy/zzz/... | grep -o "^Change [0-9]*" | cut -f2 -d" "  | p4 -x- describe -s

输出:

由 user@clientspec 于 2019/03/08 06:29:44 更改 1753385

改变世界

受影响的文件...

... //depot/xx/yy/zz.h#6 编辑

由 name@clientspec 于 2019/03/05 15:24:00 更改 1751752

我对文件进行了更改

受影响的文件...

... //depot/xx/yy/zz.h#3 集成

One liner, list all changes made to a branch, with description and list of affected files, without showing the diff. Thanks to a combination of answers. Works on windows with Unix utils

p4 changes -s submitted //depot/xxx/yyy/zzz/... | grep -o "^Change [0-9]*" | cut -f2 -d" "  | p4 -x- describe -s

Output:

Change 1753385 by user@clientspec on 2019/03/08 06:29:44

Changing the world

Affected files ...

... //depot/xx/yy/zz.h#6 edit

Change 1751752 by name@clientspec on 2019/03/05 15:24:00

I made a change to a file

Affected files ...

... //depot/xx/yy/zz.h#3 integrate

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