[p4] Delete pending change list

Simon Timms stimms at autonomy.com
Wed Sep 13 07:37:39 PDT 2006


Ah, perfect, thanks.  I think I was missing the //... when I first tried
the revert with -c.

-----Original Message-----
From: Stephen Vance [mailto:steve at vance.com] 
Sent: Tuesday, September 12, 2006 4:49 PM
To: Simon Timms
Cc: perforce-user at perforce.com
Subject: Re: [p4] Delete pending change list

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