tags:

views:

714

answers:

4

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).

+3  A: 

How are you trying to remove the files?

It's been a while since I used Perforce in anger but I seem to remember that you just had to right click and revert the file.

I've just tried this and it worked OK for me (the programmer's lament!). It uses the following p4 command:

p4 revert //depot/test.txt

Where test.txt is the name of the test file.

Update

Does the new file still exist locally on your hard drive?

Does the path where the file would be in the depot still exist? ie. what's in the "..." of your path.

ChrisF
Yes. The new file stil exists locally on the hard drive
MeThinks
I'm running out of ideas :(. Does the depot location still exist?
ChrisF
Thanks ChrisF. Really appreciate the help. It is a new file so does not exist in any depot location as I had not submitted yet.
MeThinks
I was thinking of the path where it would exist - but Perforce should be able to cope with that not existing, so my question is meaningless - sorry. Is the number the same every time? I don't understand where that's come from.
ChrisF
You mean the number "1.715484", right? Yes it is the same even for different files
MeThinks
I'd take this up with Perforce support. When we used it in the past their support was very good. I'm still using an old version so anything else I suggest may well be out of date.
ChrisF
thanks a lot. Will escalate it via our IT guys.
MeThinks
Post an update when you get it sorted - I'm intrigued now!
ChrisF
A: 

Revert files, right-click on file in change list and select revert, this will remove added files.

stefanB
A: 

Maybe try Perforce support at this stage.

Toby Allen
+1  A: 

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.

MeThinks