In perforce, how do you back out a specific change list through the command line? Th开发者_如何学运维is 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:
- Backing out a recent change (edits only)
- Backing out an old change (edits only)
- Backing out a change with adds, edits and deletes
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'.
精彩评论