218
217
b = Branch('../b')
219
218
a.get_revision_xml(b.last_patch())
220
print "Pending: %s" % a.pending_merges()
221
# assert a.pending_merges() == [b.last_patch()], "Assertion %s %s" \
222
# % (a.pending_merges(), b.last_patch())
219
self.log('pending merges: %s', a.pending_merges())
220
# assert a.pending_merges() == [b.last_patch()], "Assertion %s %s" \
221
# % (a.pending_merges(), b.last_patch())
224
"""Pull changes from one branch to another."""
228
self.example_branch()
230
self.runbzr('branch a b')
232
self.runbzr('commit -m blah --unchanged')
236
assert a.revision_history() == b.revision_history()[:-1]
237
self.runbzr('pull ../b')
238
assert a.revision_history() == b.revision_history()
239
self.runbzr('commit -m blah2 --unchanged')
241
self.runbzr('commit -m blah3 --unchanged')
242
self.runbzr('pull ../a', retcode=1)
244
self.runbzr('merge ../b')
245
self.runbzr('commit -m blah4 --unchanged')
247
self.runbzr('pull ../a')
248
assert a.revision_history()[-1] == b.revision_history()[-1]
251
def test_add_reports(self):
252
"""add command prints the names of added files."""
253
b = Branch('.', init=True)
254
self.build_tree(['top.txt', 'dir/', 'dir/sub.txt'])
256
from cStringIO import StringIO
259
ret = self.apply_redirected(None, out, None,
262
self.assertEquals(ret, 0)
264
# the ordering is not defined at the moment
265
results = sorted(out.getvalue().rstrip('\n').split('\n'))
266
self.assertEquals(['added dir',
225
272
def has_symlinks():