~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit_merge.py

  • Committer: Vincent Ladeuil
  • Date: 2011-08-20 09:28:27 UTC
  • mfrom: (5050.78.2 2.2)
  • mto: (5609.48.8 2.3)
  • mto: This revision was merged to the branch mainline in revision 6090.
  • Revision ID: v.ladeuil+lp@free.fr-20110820092827-9dyakfslp0r3hb1k
Merge 2.2 into 2.3 (including fix for #614713, #609187 and #812928)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006 Canonical Ltd
 
1
# Copyright (C) 2005, 2006, 2007, 2009, 2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
16
16
 
17
17
 
18
18
import os
19
 
import shutil
20
19
 
 
20
from bzrlib import check, osutils
 
21
from bzrlib.errors import PointlessCommit
21
22
from bzrlib.tests import (
22
23
    SymlinkFeature,
23
24
    TestCaseWithTransport,
24
25
    )
25
 
from bzrlib.branch import Branch
26
 
from bzrlib.errors import PointlessCommit, BzrError
27
 
from bzrlib.tests.test_revision import make_branches
28
 
from bzrlib import osutils
29
26
 
30
27
 
31
28
class TestCommitMerge(TestCaseWithTransport):
96
93
        self.assertEquals(inv['ecks-id'].revision, 'x@u-0-1')
97
94
        self.assertEquals(inv['why-id'].revision, 'y@u-0-1')
98
95
 
99
 
        bx.check()
100
 
        by.check()
101
 
        bx.repository.check([bx.last_revision()])
102
 
        by.repository.check([by.last_revision()])
 
96
        check.check_dwim(bx.base, False, True, True)
 
97
        check.check_dwim(by.base, False, True, True)
103
98
 
104
99
    def test_merge_with_symlink(self):
105
100
        self.requireFeature(SymlinkFeature)