fschulze/mr.developer — Issue #71: Allow purging non-svn checkouts when it is safe
Author: mauritsvanrees
Created: 2011-12-02 17:13:53+00:00
State: open

When you do a 'bin/develop purge' and you have non-svn repositories checked out, you always get a warning like this:

WARNING: The directory of package 'plone.app.testing' at 'src/plone.app.testing' might contain unrecoverable files and will not be removed.

In zest.releaser I have added a few checks that could work here as well. See for example the is_clean_checkout method for git in
https://github.com/zestsoftware/zest.releaser/blob/master/zest/releaser/git.py#L96 and following.

For mercurial: https://github.com/zestsoftware/zest.releaser/blob/master/zest/releaser/hg.py#L81

For bazaar: https://github.com/zestsoftware/zest.releaser/blob/master/zest/releaser/bzr.py#L61

The checks in mr.developer may need to be a bit stricter than the zest.releaser checks and err on the side of caution as mr.developer is then about to throw away the complete directory, and zest.releaser is not about to do that.