130
130
(u'b', 'b-id', 'directory'),
133
def test_commit_message_default(self):
134
builder = BranchBuilder(self.get_transport().clone('foo'))
135
rev_id = builder.build_snapshot(None, None,
136
[('add', (u'', None, 'directory', None))])
137
branch = builder.get_branch()
138
rev = branch.repository.get_revision(rev_id)
139
self.assertEqual(u'commit 1', rev.message)
141
def test_commit_message_supplied(self):
142
builder = BranchBuilder(self.get_transport().clone('foo'))
143
rev_id = builder.build_snapshot(None, None,
144
[('add', (u'', None, 'directory', None))],
146
branch = builder.get_branch()
147
rev = branch.repository.get_revision(rev_id)
148
self.assertEqual(u'Foo', rev.message)
133
150
def test_modify_file(self):
134
151
builder = self.build_a_rev()
135
152
rev_id2 = builder.build_snapshot('B-id', None,