80
80
builder.start_series()
82
82
# Create an empty trunk
83
builder.build_snapshot('1', None, [
84
('add', ('', 'root-id', 'directory', ''))])
85
builder.build_snapshot('2', ['1'], [
83
builder.build_snapshot(None, [
84
('add', ('', 'root-id', 'directory', ''))],
86
builder.build_snapshot(['1'], [
86
87
('add', ('dir', 'dir-id', 'directory', '')),
87
('add', ('file', 'file-id', 'file', 'trunk content\n')),])
88
builder.build_snapshot('3', ['2'], [
89
('unversion', 'dir-id'),])
88
('add', ('file', 'file-id', 'file', 'trunk content\n')),],
90
builder.build_snapshot(['2'], [
91
('unversion', 'dir-id'),],
90
93
builder.finish_series()
91
94
return builder.get_branch()