How to delete pending changelist in perforce
2014-12-01 12:30
8361 查看
How to delete pending changelist in perforce
up vote24down votefavorite10 | I have a workspace in perforce in which i made some files mark for delete. Now i want to delete that workspace forcefully. But i dont have admin rights. What to do. Please suggest some method. Thanksperforce
| ||
up vote28down vote | Run p4 openedto see all your opened files and run p4 revertto revert them.Then run p4 changes -c your-client-name -s pendingto see all your pending changelists. Since in the first step you reverted all your open files, these changelists will all be empty. Run p4 change -d change-numberto delete each empty pending changelist.Then you can run p4 client -dto delete your client.
| ||||
|
up vote22down vote | Why it's only 11 clicks in P4V, through an arbitrary sequence of menu items.Right click on the changelist Delete shelved files 'Yes' Right click on the changelist Remove all jobs Right click on the changelist Revert files 'Revert' Right click on the changelist Delete pending changelist 'Yes' Let's send Perforce to usability school.
| |||
up vote5down vote | Here is what I did to empty my default change set, which had a lot of files checked out for edit:p4 opened | sed 's/#.*$//g' | xargs -iF p4 revert FThis will cut off the comment part from the filename produced by p4 openedand pipe the filename to p4 revert. After that I had nothing pending and p4 changes -c my-client-name -s pendingyields nothing. If you have a huge change set this will take a while.
| ||||||||
|
up vote2down vote | Here's a scriptable procedure for deleting a Perforce client. Use with care: this deletes all your work in progress on the client!Revert all changed files on this client.p4 -c $CLIENT revert -k //...Note the use of the -koption, which "marks the file as reverted in server metadata without altering files in the client workspace". Since we are going to delete the client later, we don't care about updating the client workspace. This speeds things up if you have many files open. Delete all shelved files from pending changes associated with the client. p4 changes -s shelved -c $CLIENT | cut -d' ' -f2 |while read CHANGE; do p4 shelve -c $CHANGE -d //...; doneIf you never use p4 shelveyou can omit this step. All pending changes associated with the client are now empty. Delete them. p4 changes -s pending -c $CLIENT | cut -d' ' -f2 | p4 -b 1 -x - change -d There are now no pending changes associated with the client. Delete the client. p4 client -d $CLIENT (This process ought to be much easier! In particular, there seems no good reason why we have to delete shelved files associated with a client before deleting the client. If you find yourself struggling with this, do contact Perforce support and suggest that it be made simpler.)
| ||||||||||||||||||||
|
up vote1down vote | Wrote this script called p4-delete-client for deleting p4 changelists.Note that it relies on other scripts in the repo.
| |||
up vote0down vote | try those steps :1.Right click on the changelist Choose 'Change Ownership' In the workspace box choose already existing workspace and click OK right click on changelist and choose delete and than ok.
| ||
up vote0down vote | try those steps (P4V) :1.Right click on the changelistChoose 'Change Ownership'In the workspace box choose already existing workspace and click OKright click on changelist and choose delete and than ok.
| ||
up vote0down vote | This just worked for me in P4V for resetting the default changelist:Right click on the default changelist and choose "Edit Pending Changelist 'default'" Click the button on the bottom right "Save as numbered changelist" Right click on the new changelist and choose "Delete changelist XXX" You can also right click on the new changelist to revert the files for whatever you need to do, which is not available as an option on the default changelist.
|
相关文章推荐
- How to reduce number of records on CTXSYS.DR$WAITING,CTXSYS.DR$PENDING tables in Oracle EBS?
- How to delete duplicate rows without children in sql server
- How to Confirm a Delete in an ASP.NET Datagrid...
- How to delete a node in BST?
- How to disable certain HTTP methods (PUT, DELETE, TRACE and OPTIONS) in JBOSS7 .
- How to Delete or Add Resource in 11gR2 Grid Infrastructure [ID 1069369.1]
- How to delete subfolders and files in a folder
- How to delete a large number of data in SharePoint for List when refreshing data?
- How to Delete [This is no longer located in Directory] Files
- How To Remove Or Delete PPA In Ubuntu
- How to Delete Process Chain Logs in SAP BW?
- How to Programmatically Add/Delete Custom Options in Magento? - See more at: http://apptha.com/blog/
- How to Delete From or Add Resource to OCR in Oracle Clusterware (文档 ID 1069369.1)
- [转]如何删除放置库(How to Delete the Drop Off Library)in SharePoint 2010
- How to delete all the animations in a presentation
- How to Delete or Add Resource in 11gR2 Grid Infrastructure [ID 1069369.1]
- Howto delete shiped apk in LG optimus vu
- how to delete .tmp file in server which is created during file upload
- How To Delete Directory In Java
- How to resolve the truncate/drop/delete/join hang issue in ADW