Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does one diff between two pending changelists in perforce?

Tags:

perforce

I have a couple of similar pending changelists based on top of a branch of code and off the same workspace in perforce. I need to diff between them and (eventually) merge them together into one changelist. What is the fastest and simplest way to go about it? I would rather avoid creating a temporary branch.

like image 902
Rohit Jain Avatar asked Dec 26 '22 10:12

Rohit Jain


1 Answers

Recent versions of the server support unshelving a change into a workspace with opened files, and resolving the merge.

So, assuming your server is recent enough, you simply:

  1. Shelve the changes
  2. Start with a clean workspace
  3. Unshelve one of the changes into that workspace
  4. Unshelve the other change into the same workspace
  5. Resolve any merged changes that result.
  6. Carefully examine your diffs prior to submit, to ensure you have the changes you desire.
like image 111
Bryan Pendleton Avatar answered Jan 19 '23 01:01

Bryan Pendleton