Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In perforce, how do I remove pending changes for NEW/ADDED files not submitted?

Tags:

perforce

I am trying to remove a pending changelist in perforce. All the files (20 old) are new but have not be committed/submitted yet. So in p4Win, they show a RED + cross. I am failing to remove these files from the change list. How do I go about getting rid of these files?

Thanks for the answers to right-click and revert. I have tried that but it fails with the example error strings below.

Operation: user-revert
Librarian digest source/.../foo.c failed.
RCS checkout 1.715484 failed!
RCS no such revision 1.715484!
//source/.../foo.c#1 - was add, reverted

I've also tried the p4 revert command but it fails with same error(s).

like image 476
dubnde Avatar asked Jun 08 '09 13:06

dubnde


People also ask

How can we edit a pending yet to be submitted change list then submit it?

To submit a pending changelist, issue the p4 submit command. When you issue the p4 submit command, a form is displayed, listing the files in the changelist. You can remove files from this list. The files you remove remain open in the default pending changelist until you submit them or revert them.

How do I get rid of pending Changelist?

To delete a pending changelist, you must first remove all files and jobs associated with it and then issue the p4 change -d changenum command. Related operations include the following: To move files to another changelist, issue the p4 reopen -c changenum command.

How do you delete files after p4 add?

To delete a set of files without transferring them to your workstation when another version of these files already exists in your workspace, use p4 sync -k file , followed by p4 delete -k file . This allows you to delete a file that is in the depot without affecting the file (by the same name) in your workspace.


1 Answers

Fixed with "revert -k" by perforce support group. They suspect it may be due to overlay values in the client workspace but have not been very specific.

like image 112
dubnde Avatar answered Sep 22 '22 14:09

dubnde