415
415
if not stack_on.branch._format.supports_stacking():
416
416
raise TestNotApplicable("%r does not support stacking"
421
421
stack_on.commit('base commit')
422
422
stacked_dir = stack_on.controldir.sprout('stacked', stacked=True)
423
423
stacked_branch = stacked_dir.open_branch()
424
424
local_tree = stack_on.controldir.sprout('local').open_workingtree()
428
428
local_tree.commit('commit %d' % i)
429
429
local_tree.branch.push(stacked_branch)
430
430
stacked_branch.repository.pack()