~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Jelmer Vernooij
  • Date: 2011-08-04 13:30:30 UTC
  • mfrom: (6050 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6052.
  • Revision ID: jelmer@samba.org-20110804133030-uwo00unp8b0n782c
merge bzr.dev.

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
 
76
114
class TestResolveAuto(tests.TestCaseWithTransport):
77
115
 
78
116
    def test_auto_resolve(self):