/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/tests/test_whitebox.py

  • Committer: John Arbash Meinel
  • Date: 2006-05-10 19:59:55 UTC
  • mfrom: (1704 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060510195955-df080afb1daa3a96
[merge] bzr.dev 1704

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        job: given a path (either relative to cwd or absolute), work out
17
17
        if it is inside a branch and return the path relative to the base.
18
18
        """
19
 
        import tempfile, shutil
 
19
        import tempfile
 
20
        from bzrlib.osutils import rmtree
20
21
        
21
22
        savedir = os.getcwdu()
22
23
        dtmp = tempfile.mkdtemp()
64
65
 
65
66
        finally:
66
67
            os.chdir(savedir)
67
 
            shutil.rmtree(dtmp)
 
68
            rmtree(dtmp)