[p4] Delete pending change list

Stephen Vance steve at vance.com
Tue Sep 12 15:49:15 PDT 2006


p4 revert -c <changelist #> //...

Steve

PS Perforce has it's own cross-platform version of xargs built in. Just 
use 'p4 -x - revert'.

Simon Timms wrote:
> 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
> _______________________________________________
> perforce-user mailing list  -  perforce-user at perforce.com
> http://maillist.perforce.com/mailman/listinfo/perforce-user
>
>   


More information about the perforce-user mailing list