~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/per_bzrdir/test_bzrdir.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-09-22 15:01:20 UTC
  • mfrom: (4710.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090922150120-8per9svh0qr8ywua
(vila) Align RevisionTextStore and SignatureTextStore keys()
        definitions (with test)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    bzrdir,
29
29
    check,
30
30
    errors,
 
31
    gpg,
31
32
    lockdir,
32
33
    osutils,
33
34
    repository,
432
433
        target = dir.clone(self.get_url('target'), revision_id='2')
433
434
        raise TestSkipped('revision limiting not strict yet')
434
435
 
 
436
    def test_clone_bzrdir_branch_and_repo_fixed_user_id(self):
 
437
        # Bug #430868 is about an email containing '.sig'
 
438
        os.environ['BZR_EMAIL'] = 'murphy@host.sighup.org'
 
439
        tree = self.make_branch_and_tree('commit_tree')
 
440
        self.build_tree(['commit_tree/foo'])
 
441
        tree.add('foo')
 
442
        rev1 = tree.commit('revision 1')
 
443
        tree_repo = tree.branch.repository
 
444
        tree_repo.lock_write()
 
445
        tree_repo.start_write_group()
 
446
        tree_repo.sign_revision(rev1, gpg.LoopbackGPGStrategy(None))
 
447
        tree_repo.commit_write_group()
 
448
        tree_repo.unlock()
 
449
        target = self.make_branch('target')
 
450
        tree.branch.repository.copy_content_into(target.repository)
 
451
        tree.branch.copy_content_into(target)
 
452
        self.assertTrue(target.repository.has_revision(rev1))
 
453
        self.assertEqual(
 
454
            tree_repo.get_signature_text(rev1),
 
455
            target.repository.get_signature_text(rev1))
 
456
 
435
457
    def test_clone_bzrdir_branch_and_repo(self):
436
458
        tree = self.make_branch_and_tree('commit_tree')
437
459
        self.build_tree(['commit_tree/foo'])