305
305
# Create an empty trunk
306
306
builder.build_snapshot(None, [
307
('add', ('', 'root-id', 'directory', ''))],
307
('add', (u'', b'root-id', 'directory', ''))],
308
308
revision_id=b'start')
309
309
# Add a minimal base content
310
310
base_actions = self._get_actions(self._base_actions)()
311
builder.build_snapshot(['start'], base_actions, revision_id=b'base')
311
builder.build_snapshot([b'start'], base_actions, revision_id=b'base')
312
312
# Modify the base content in branch
313
313
actions_other = self._get_actions(self._other['actions'])()
314
builder.build_snapshot(['base'], actions_other, revision_id=b'other')
314
builder.build_snapshot([b'base'], actions_other, revision_id=b'other')
315
315
# Modify the base content in trunk
316
316
actions_this = self._get_actions(self._this['actions'])()
317
builder.build_snapshot(['base'], actions_this, revision_id=b'this')
317
builder.build_snapshot([b'base'], actions_this, revision_id=b'this')
318
318
# builder.get_branch() tip is now 'this'
320
320
builder.finish_series()