/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2006-05-05 01:15:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1698.
  • Revision ID: mbp@sourcefrog.net-20060505011553-76b4687a5e1d01e3
[patch] force deletion of trees containing readonly files (alexander)

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
                            rename, splitpath, sha_file,
46
46
                            file_kind, abspath, normpath, pathjoin,
47
47
                            safe_unicode,
 
48
                            rmtree,
48
49
                            )
49
50
from bzrlib.textui import show_status
50
51
from bzrlib.trace import mutter, note
886
887
        # XXX: cache_root seems to be unused, 2006-01-13 mbp
887
888
        if hasattr(self, 'cache_root') and self.cache_root is not None:
888
889
            try:
889
 
                shutil.rmtree(self.cache_root)
 
890
                rmtree(self.cache_root)
890
891
            except:
891
892
                pass
892
893
            self.cache_root = None