如何在 P4 CLI 上列出路径(包括子目录)的所有提交者?
How do you list all the submitters of a path (including sub-directories) on P4 CLI?
我正在寻找类似这个伪查询的命令
SELECT DISTINCT Submitted_By FROM Submitted_Changelists WHERE CONTAINS(File_path, "/depot/path/to/branch/mydir/");
p4 changes -s submitted //depot/path/to/branch/mydir/... \
| cut -d ' ' -f 6 \
| cut -d '@' -f 1 \
| sort -u
细分:
p4 changes -s submitted //depot/path/to/branch/mydir/...
: 列出对指定路径的所有更改的更改摘要。
cut -d ' ' -f 6
以提取更改摘要的 username@client
部分。
cut -d '@' -f 1
提取其中的用户名部分。
sort -u
对用户名列表进行排序并删除重复项。
p4 -F %user% changes //depot/path/to/branch/mydir/... | sort -u
我正在寻找类似这个伪查询的命令
SELECT DISTINCT Submitted_By FROM Submitted_Changelists WHERE CONTAINS(File_path, "/depot/path/to/branch/mydir/");
p4 changes -s submitted //depot/path/to/branch/mydir/... \
| cut -d ' ' -f 6 \
| cut -d '@' -f 1 \
| sort -u
细分:
p4 changes -s submitted //depot/path/to/branch/mydir/...
: 列出对指定路径的所有更改的更改摘要。cut -d ' ' -f 6
以提取更改摘要的username@client
部分。cut -d '@' -f 1
提取其中的用户名部分。sort -u
对用户名列表进行排序并删除重复项。
p4 -F %user% changes //depot/path/to/branch/mydir/... | sort -u