Alex Rivera | Logout

Automatically deleting newly added files when shelving in Perforce

Asked 2012-02-01T20:31:58.920
12

When I shelve a pending changelist, changes to existing files are reverted, but newly added files are not deleted from the filesystem. I need to manually delete these files every time I perform a shelve operation. Is there anyway to automatically delete newly added files when shelving?

Edit
Report

1 Answer

1

Sure, except that shelving work is a fundamentally different beast. If I create a new class that uses a new function in an existing class, and then shelve both files, the new class remains, and is now referencing a non-existent function in the existing class. Now I've got build errors and have to manually delete the new file in order to get back to a clean slate, which is exactly what shelving work should do for me.

answered 2013-05-17T20:11:19.873

Your Answer