P4V: Find the most recent changelist that affects a given workspace?
Is there a command-line way to find the most recent changelist that affects a given workspace? This can be done in the GUI by (in the workspaces tab), right-clicking the tip of the workspace tree, then going to "Folder History", and sorting by timestamp.
Thank y开发者_如何学运维ou much and I greatly appreciate any responses.
You can use the p4 changes
command (usage).
p4 changes -t -l -c YOUR_WORKSPACE -m 1 -s submitted //depot/project/...
Almost anything that can be done in P4V is achievable via the commandline (that is one of the best things about P4 is that is commandline first, gui second).
A good answer to this depends on what you mean by "changelist that affects a given workspace". Do you mean:
- Changelist that modifies a given workspace definition? (There's no such thing.)
- Changelist whose contents are currently synced to the workspace? (
p4 changes -m1 @workspace
) - Changelist whose contents COULD be synced to the workspace? (
p4 changes -m1 //workspace/...
-- this is the one that corresponds to the P4V operation you describe)
精彩评论