In perforce, how do you back out a specific change list through the command line? This is easy through the GUI, but I can't find a command line command.
The GUI is performing a series of commands. Depending on how far you want to rollback and whether or not the change includes adds/deletes/edits or just edits, the sequence of commands slightly differ.
You can refer to the article on Perforce's KB for exact details. They break it up into three different areas:
As of the 2016.2 release you can do:
p4 undo @CHANGE,CHANGE
to undo a changelist.
https://www.perforce.com/perforce/doc.current/user/relnotes.txt
Major new functionality in 2016.2
#1414787 (Bug #1649) **
A 'p4 undo' command has been added to simplify the process of
backing out submitted changes. See 'p4 help undo'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With