Move test of destroy['filenames'] to inside rewrite_filename() function.
commitc9d65e276793cc06a744e240ce40b3c3fcc3f226
authormhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Tue, 21 Oct 2008 12:51:46 +0000 (21 12:51 +0000)
committermhagger <mhagger@be7e6eca-30d4-0310-a8e5-ac0d63af7087>
Tue, 21 Oct 2008 12:51:46 +0000 (21 12:51 +0000)
treeec62c03938ed846b615bcbd7f5b1903f915818f9
parentcd8aa972114bbe42b6ff920345bd08528220802b
Move test of destroy['filenames'] to inside rewrite_filename() function.

Patch by: Johan Herland <johan@herland.net>

* contrib/destroy_repository.py (rewrite_filename): If not destroying
  filesnames, return the original path unmodified.

  (FileDestroyer.destroy_file): Don't check destroy['filenames'] here
  anymore.

git-svn-id: http://cvs2svn.tigris.org/svn/cvs2svn/trunk@4621 be7e6eca-30d4-0310-a8e5-ac0d63af7087
contrib/destroy_repository.py