~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_resolve.py

  • Committer: Martin
  • Date: 2011-05-21 16:29:38 UTC
  • mto: This revision was merged to the branch mainline in revision 5907.
  • Revision ID: gzlist@googlemail.com-20110521162938-1vrw3hp0197l3vrl
Add tests for non-ascii conflict serialisation

Show diffs side-by-side

added added

removed removed

Lines of Context:
73
73
""")
74
74
 
75
75
 
76
 
class TestBug788000(script.TestCaseWithTransportAndScript):
77
 
 
78
 
    def test_bug_788000(self):
79
 
        self.run_script('''\
80
 
$ bzr init a
81
 
$ mkdir a/dir
82
 
$ echo foo > a/dir/file
83
 
$ bzr add a/dir
84
 
$ cd a
85
 
$ bzr commit -m one
86
 
$ cd ..
87
 
$ bzr clone a b
88
 
$ echo bar > b/dir/file
89
 
$ cd a
90
 
$ rm -r dir
91
 
$ bzr commit -m two
92
 
$ cd ../b
93
 
''',
94
 
                        null_output_matches_anything=True)
95
 
 
96
 
        self.run_script('''\
97
 
$ bzr pull
98
 
Using saved parent location:...
99
 
Now on revision 2.
100
 
2>RM  dir/file => dir/file.THIS
101
 
2>Conflict: can't delete dir because it is not empty.  Not deleting.
102
 
2>Conflict because dir is not versioned, but has versioned children...
103
 
2>Contents conflict in dir/file
104
 
2>3 conflicts encountered.
105
 
''')
106
 
        self.run_script('''\
107
 
$ bzr resolve --take-other
108
 
2>deleted dir/file.THIS
109
 
2>deleted dir
110
 
2>3 conflict(s) resolved, 0 remaining
111
 
''')
112
 
 
113
 
 
114
76
class TestResolveAuto(tests.TestCaseWithTransport):
115
77
 
116
78
    def test_auto_resolve(self):