开发者

Can Perforce remove a version entry (like ClearCase Destroy)?

开发者 https://www.devze.com 2022-12-28 03:40 出处:网络
I submitted a Changelist in Perforce, but I forgot to remove a couple of files from the list first.I want to undo those changes.I understand that Perforce allows me to \"rollback\" -- but that just su

I submitted a Changelist in Perforce, but I forgot to remove a couple of files from the list first. I want to undo those changes. I understand that Perforce allows me to "rollback" -- but that just submits another change to the file, cluttering my branch. This is a file I did not intend to change at all. When I go to integrate back into the baseline, this file shows up as needing to be integrated (even though it's the same as what's on the baseline).开发者_如何学JAVA

In Clearcase, I had the ability to simply issue a "destroy" command on the specific version of the file, nuking it from the repository, as if had never been (yes, I realize this is scary from a revision control perspective - I understand the risks).

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


Perforce obliterate should be a good equivalent for cleartool rmver

p4 obliterate -y file#3,5

Obliterate revisions 3, 4, and 5 of file.

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


Perforce does allow super-users to destroy revisions. Horrible, horrible idea. I don't see why you can't just rollback.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号