Can Perforce remove a version entry (e.g. ClearCase Destroy)?

I sent Changelist to Perforce, but I forgot to remove a few files from the list first. I want to undo these changes. I understand that Perforce allows me to "rollback", but it just adds another change to the file, cluttering my branch. This is a file that I wasn't going to change at all. When I go to baseline integration, this file appears because it needs to be integrated (although it's the same as baseline).

In Clearcase, I was able to simply issue a "destroy" command on a specific version of a file, pulling it out of the repository as if it had never happened (yes, I understand this is scary from a version control perspective - I understand the risks).

Is there an equivalent command in Perforce? Or am I trying to do something expressly prohibited?

+2


a source to share


2 answers


Perforceobliterate

should be a good equivalent for cleartool rmver

p4 obliterate -y file#3,5

      



Swap revisions 3, 4, and 5 of the file.

If # 5 was the head revision, the new chapter is now # 2, and the next version will be # 3.
If # 5 was not the head revision, then the head revision remains unchanged.

+4


a source


Perforce allows superusers to destroy revisions. Awful, awful idea. I don't understand why you can't just rollback.



+2


a source







All Articles