我如何从 perforce 获得变更列表的描述?
How can i get a description of changelist from perforce?
我正在从 cmd 测试 perforce 命令。
我只想获取更改列表的描述。所以我正在从 perforce 文档中寻找解决方案 (https://www.perforce.com/manuals/cmdref/Content/CmdRef/Home-cmdref.html)
但是我还没找到
请帮帮我
要获取更改列表的描述,请使用 p4 describe
命令。
C:\Perforce\test>p4 describe 290
Change 290 by Tod@Samwise-dvcs-1509687817 on 2022/03/29 17:02:28
Tod's awesome change
Affected files ...
... //stream/child_stream/TestFile.cpp#2 edit
Differences ...
==== //stream/child_stream/TestFile.cpp#2 (text) ====
1a2
> "tod"
有关各种标志的信息,请参阅 p4 help describe
。要忽略差异并仅查看受影响文件的描述和列表,请添加 -s
标志:
C:\Perforce\test>p4 describe -s 290
Change 290 by Tod@Samwise-dvcs-1509687817 on 2022/03/29 17:02:28
Tod's awesome change
Affected files ...
... //stream/child_stream/TestFile.cpp#2 edit
如果出于脚本目的您需要描述并且仅描述,请使用undoc
(有关undoc标志的信息请参阅p4 help undoc
)-F
和 -Ztag
全局选项,像这样:
C:\Perforce\test>p4 -Ztag -F %desc% describe -s 290
Tod's awesome change
我正在从 cmd 测试 perforce 命令。
我只想获取更改列表的描述。所以我正在从 perforce 文档中寻找解决方案 (https://www.perforce.com/manuals/cmdref/Content/CmdRef/Home-cmdref.html)
但是我还没找到
请帮帮我
要获取更改列表的描述,请使用 p4 describe
命令。
C:\Perforce\test>p4 describe 290
Change 290 by Tod@Samwise-dvcs-1509687817 on 2022/03/29 17:02:28
Tod's awesome change
Affected files ...
... //stream/child_stream/TestFile.cpp#2 edit
Differences ...
==== //stream/child_stream/TestFile.cpp#2 (text) ====
1a2
> "tod"
有关各种标志的信息,请参阅 p4 help describe
。要忽略差异并仅查看受影响文件的描述和列表,请添加 -s
标志:
C:\Perforce\test>p4 describe -s 290
Change 290 by Tod@Samwise-dvcs-1509687817 on 2022/03/29 17:02:28
Tod's awesome change
Affected files ...
... //stream/child_stream/TestFile.cpp#2 edit
如果出于脚本目的您需要描述并且仅描述,请使用undoc
(有关undoc标志的信息请参阅p4 help undoc
)-F
和 -Ztag
全局选项,像这样:
C:\Perforce\test>p4 -Ztag -F %desc% describe -s 290
Tod's awesome change