~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_commit_merge.py

  • Committer: Martin Pool
  • Date: 2010-02-11 04:20:19 UTC
  • mto: This revision was merged to the branch mainline in revision 5029.
  • Revision ID: mbp@sourcefrog.net-20100211042019-o7e4sgd2z5b82mw3
Add vim modeline

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005, 2006, 2007, 2009, 2011 Canonical Ltd
 
1
# Copyright (C) 2005, 2006 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
19
20
 
20
21
from bzrlib import check, osutils
21
 
from bzrlib.errors import PointlessCommit
 
22
from bzrlib.branch import Branch
 
23
from bzrlib.errors import PointlessCommit, BzrError
22
24
from bzrlib.tests import (
23
25
    SymlinkFeature,
24
26
    TestCaseWithTransport,
25
27
    )
 
28
from bzrlib.tests.test_revision import make_branches
26
29
 
27
30
 
28
31
class TestCommitMerge(TestCaseWithTransport):
89
92
 
90
93
        wty.commit('merge from x', rev_id='y@u-0-2', allow_pointless=False)
91
94
        tree = by.repository.revision_tree('y@u-0-2')
92
 
        self.assertEquals(tree.get_file_revision('ecks-id'), 'x@u-0-1')
93
 
        self.assertEquals(tree.get_file_revision('why-id'), 'y@u-0-1')
 
95
        inv = tree.inventory
 
96
        self.assertEquals(inv['ecks-id'].revision, 'x@u-0-1')
 
97
        self.assertEquals(inv['why-id'].revision, 'y@u-0-1')
94
98
 
95
99
        check.check_dwim(bx.base, False, True, True)
96
100
        check.check_dwim(by.base, False, True, True)