1580
1580
# TODO: if the commit *does* happen to fail, then save the commit
1581
1581
# message to a temporary file where it can be recovered
1582
1582
tree, selected_list = tree_files(selected_list)
1583
1589
if local and not tree.branch.get_bound_location():
1584
1590
raise errors.LocalRequiresBoundBranch()
1585
1591
if message is None and not file: