~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_conflicts.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-07 10:45:44 UTC
  • mfrom: (2321.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070307104544-59e3e6358e4bdb29
(robertc) Merge dirstate and subtrees. (Robert Collins, Martin Pool, Aaaron Bentley, John A Meinel, James Westby)

Show diffs side-by-side

added added

removed removed

Lines of Context:
63
63
        file('hello.OTHER', 'w').write('hello world3')
64
64
        file('hello.sploo.BASE', 'w').write('yellow world')
65
65
        file('hello.sploo.OTHER', 'w').write('yellow world2')
 
66
        tree.lock_read()
66
67
        self.assertEqual(len(list(tree.list_files())), 6)
 
68
        tree.unlock()
67
69
        conflicts = tree.conflicts()
68
70
        self.assertEqual(len(conflicts), 2)
69
71
        self.assert_('hello' in conflicts[0].path)