Replace os.rmtree with the safe_rmtree implementation from the test suite so that we can remove read-only files on Windows.
Replace os.rmtree with the safe_rmtree implementation from the test
suite so that we can remove read-only files on Windows.

Suggested by: Chris Foote <cfoote@v21.me.uk>
              Jens Peters <jpeters7677@gmx.de>

* tools/backup/hot-backup.py.in
  (chmod_tree): New method for setting permissions on a tree.
  (safe_rmtree): New method for dropping possibly read-only directory trees.



git-svn-id: f8a4e5e023278da1e04e203c7fe051e3c4285d88@864363 13f79535-47bb-0310-9956-ffa450edef68

YueLinHo/Subversion,wbond/subversion,wbond/subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,YueLinHo/Subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion,wbond/subversion,YueLinHo/Subversion