Jump to content


Member Since 19 Jul 2018
Offline Last Active Aug 08 2018 04:05 PM

Topics I've Started

How to rollback to a changelist using a command line(Not Gui)

19 July 2018 - 02:23 PM


I am a perforce beginner user.
I am writing a script that adds, deletes and edits files and revert all changes at the end.

I tried to do the following to revert all changes:

p4 sync <path>  @oldRevision
p4 add <path>                                    # to add the deleted files
p4 sync
p4 resolve -ay
p4 submit

and this revert all changes and the deleted files but it does not remove the new added files.
How can I remove the new added file?

Thanks in advance