~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_repository.py

  • Committer: Martin Pool
  • Date: 2006-03-06 04:43:59 UTC
  • mto: This revision was merged to the branch mainline in revision 1593.
  • Revision ID: mbp@sourcefrog.net-20060306044359-f977728599659b6d
Add tests that MetaDir repositories use LockDirs

Show diffs side-by-side

added added

removed removed

Lines of Context:
250
250
        repo.unlock()
251
251
        # we want:
252
252
        # format 'Bazaar-NG Knit Repository Format 1'
253
 
        # lock ''
 
253
        # lock: is a directory
254
254
        # inventory.weave == empty_weave
255
255
        # empty revision-store directory
256
256
        # empty weaves directory
261
261
        # self.assertEqualDiff('', t.get('lock').read())
262
262
        self.assertTrue(S_ISDIR(t.stat('revision-store').st_mode))
263
263
        self.assertTrue(S_ISDIR(t.stat('knits').st_mode))
 
264
        self.assertTrue(S_ISDIR(t.stat('lock').st_mode))
264
265
        # cheating and using a weave for now.
265
266
        self.assertEqualDiff('# bzr weave file v5\n'
266
267
                             'w\n'
272
273
        repo = repository.RepositoryFormatKnit1().initialize(control, shared=True)
273
274
        # we want:
274
275
        # format 'Bazaar-NG Knit Repository Format 1'
275
 
        # lock ''
 
276
        # lock: is a directory
276
277
        # inventory.weave == empty_weave
277
278
        # empty revision-store directory
278
279
        # empty weaves directory
285
286
        self.assertEqualDiff('', t.get('shared-storage').read())
286
287
        self.assertTrue(S_ISDIR(t.stat('revision-store').st_mode))
287
288
        self.assertTrue(S_ISDIR(t.stat('knits').st_mode))
 
289
        self.assertTrue(S_ISDIR(t.stat('lock').st_mode))
288
290
        # cheating and using a weave for now.
289
291
        self.assertEqualDiff('# bzr weave file v5\n'
290
292
                             'w\n'
313
315
        self.assertFalse(t.has('no-working-trees'))
314
316
        self.assertTrue(S_ISDIR(t.stat('revision-store').st_mode))
315
317
        self.assertTrue(S_ISDIR(t.stat('knits').st_mode))
 
318
        self.assertTrue(S_ISDIR(t.stat('lock').st_mode))
316
319
        # cheating and using a weave for now.
317
320
        self.assertEqualDiff('# bzr weave file v5\n'
318
321
                             'w\n'