/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/bzrdir_implementations/test_bzrdir.py

  • Committer: Martin Pool
  • Date: 2007-03-06 05:05:46 UTC
  • mto: (2255.2.213 dirstate.dogfood)
  • mto: This revision was merged to the branch mainline in revision 2322.
  • Revision ID: mbp@sourcefrog.net-20070306050546-3lujsd390sq65um0
Add BzrDir.retire_bzrdir and partly fix subsume

Show diffs side-by-side

added added

removed removed

Lines of Context:
451
451
                                     './.bzr/repository/inventory.knit',
452
452
                                     ])
453
453
 
454
 
 
455
454
    def test_clone_bzrdir_tree_branch_reference(self):
456
455
        # a tree with a branch reference (aka a checkout) 
457
456
        # should stay a checkout on clone.
1329
1328
        text = dir._format.get_format_description()
1330
1329
        self.failUnless(len(text))
1331
1330
 
 
1331
    def test_retire_bzrdir(self):
 
1332
        bd = self.make_bzrdir('.')
 
1333
        # must not overwrite existing directories
 
1334
        self.build_tree(['.bzr.retired.0/', '.bzr.retired.0/junk',])
 
1335
        self.failUnlessExists('.bzr')
 
1336
        bd.retire_bzrdir()
 
1337
        self.failIfExists('.bzr')
 
1338
        self.failUnlessExists('.bzr.retired.1')
1332
1339
 
1333
1340
class TestBreakLock(TestCaseWithBzrDir):
1334
1341