[p4] Delete pending change list

Simon Timms stimms at autonomy.com
Tue Sep 12 15:12:38 PDT 2006


I was adding a large number of files into our depot the other day and
thought it would be quicker to link the files rather than copy them into
a staging area before adding them.  This didn't work since the version
of perforce we're on doesn't handle links very well.  The submit failed
so I scrapped the linking idea and started over again, copying the files
this time.  However now when I go to add the files they still appear in
the pending change list which failed to submit.  What I'm looking for is
a quick way to delete this pending change list.  I've tried things like
 
p4 opened | awk '{print $1}' | sed 's/\#//' | xargs p4 revert
p4 opened | awk '{print $1}' | sed 's/\#//' | xargs p4 delete
 
But they report files not opened on this client and file not on client.
Any ideas?
 
Thanks
Simon


More information about the perforce-user mailing list