Cleaning out a workspace and setting a new mapping to the client
I was using Perforce to check some code in, into a workspace on the server. As luck would have it, things got into a mess.
How can I easily delete everything 开发者_C百科on my project, on the server, and set a new mapping to the project on the client (my dev machine)?
Thanks
The obliterate command (only available to users with super access) is used to permanently remove files from Perforce. Be aware that when you obliterate a file, it's like it never existed. All the revision history will be gone. If you really, really want to start over, then you should obliterate the files, otherwise you can just delete them (which will maintain the revision history).
Once the files have been obliterated/deleted, you should just be able to re-add the new files to the depot in the same location. I know that deleting the files will also remove them from your workspace, but it's been a while since I've obliterated anything, so I don't remember what happens there. If obliterating does leave the files on your computer, you can just delete them.
精彩评论