301
301
# set last-revision to one not in the history
302
302
wt.set_last_revision('A')
303
303
# set it back to None for an empty tree.
305
305
wt.commit('A', allow_pointless=True, rev_id='A')
306
306
self.assertEqual(['A'], wt.get_parent_ids())
307
307
# None is aways in the branch
309
309
self.assertEqual([], wt.get_parent_ids())
310
310
# and now we can set it to 'A'
311
311
# because some formats mutate the branch to set it on the tree