wokim / node-perforce

A simple library for perforce
MIT License
14 stars 13 forks source link

revert unchanged #21

Open daniell0gda opened 8 years ago

daniell0gda commented 8 years ago

Hi! Could you give an example how to perform revert unchanged? please please?

RecklessWave commented 7 months ago

To revert unchanged (using the new await syntax), you would want to do:

let changelistNumber = 1234; let output = await p4.awaitCommand('revert', { unchanged: true, changelist: changelistNumber });

Also, the awaitCommand / await syntax is implemented in this fork of the project:

https://github.com/RecklessWave/reckless-node-perforce https://www.npmjs.com/package/reckless-node-perforce