title: Is there an easy way to revert an entire P4 changelist?
body: <p>Let's say I checked in a changelist (in Perforce) with lots of files and I'd like to revert the entire changelist.  Is there an easy way to "revert" the entire changelist in one fell swoop?</p>
  
  <p>Currently I do something like this for each file in the changelist:</p>
  
  <ul>
  <li>p4 sync //path/to/file#n (where "n" is the previous version of the file)</li>
  <li>cp file file#n</li>
  <li>p4 sync //path/to/file</li>
  <li>p4 edit //path/to/file</li>
  <li>cp file#n file</li>
  <li>rm file#n</li>
  </ul>
  
  <p>As you can imagine, this is quite cumbersome for a large changelist.</p>