Fix repeated execution of destroy_repository.py on a single CVS repository
Subsequent runs of destroy_repository.py would overwrite other RCS files
that were generated by previous runs. With this patch, we keep generating
filenames/dirnames until we find a non-existing file/dir.
* contrib/destroy_repository.py (rewrite_filename): Keep generating
filenames until we find a non-existing one.
(rewrite_dirs): Keep generating dirnames until we find a non-existing
one.
(FileDestroyer.destroy_file): Assert that we do not overwrite an
existing RCS file.
Suggested by: Michael Haggerty <mhagger@alum.mit.edu>
Patch by: Johan Herland <johan@herland.net>
git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@4625 be7e6eca-30d4-0310-a8e5-ac0d63af7087