/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2011-06-27 15:42:09 UTC
  • mfrom: (5993 +trunk)
  • mto: (5993.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 5994.
  • Revision ID: v.ladeuil+lp@free.fr-20110627154209-azubuhbuxsz109hq
Merge trunk

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):