How to view Shelved P4 Changes?
6 | One of our team member (located in different region) has shelve changes in P4 with changelist 1234. Now, if I want to see what files are modified & what are the changes, how can I do that? What is the P4 command that I should use to see the changes made by our team member. thanks
| ||
|
|
To see the file content you would unshelve the files into your workspace (assuming you have a workspace for the same project your colleague is working on). Create a new (empty) changelist with
If you don't want the modified files in your workspace any longer, you can
| |||||||||||||||||
|
|
Using the GUI, go to Pending and remove all filters except by user, where you will put the other developer's ID. From there you should be able to see her Changelists, including the ones having shelved files. Right click on the Shelved Files icon and select Unshelve. You will have to have a workspace active that includes the files that you are trying to unshelve.
| |||||
|
|
Let's assume that changelist 123456 is the shelved changelist in question. As a previous answer mentioned, the way to list the files are associated with that changelist is via the
Once you know the file(s) in question, there are a couple of ways to diff the files without a corresponding workspace. Method #1 is to use
The other method is to use
Both methods can be easily incorporated into the scripting language of choice.
| |||
|
|
If you want to see only the list of files inside a ChangeList (whether it's a shelve, pending or submitted CL), without extra data, grep the result:
|
http://stackoverflow.com/questions/7758173/how-to-view-shelved-p4-changes