Reputation: 31
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
.
Upvotes: 3
Views: 3157
Reputation: 2929
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
Upvotes: 0
Reputation: 3813
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.
Upvotes: 3
Reputation: 770
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.
Upvotes: 4