1097
1097
_unused) = bzrdir.BzrDir.open_containing_tree_or_branch(directory)
1103
bools = dict(yes=True, no=False, on=True, off=False,
1109
1101
# Get the tip's revision_id
1110
1102
revision = _get_one_revision('push', revision)
1112
1104
revision_id = revision.in_history(br_from).rev_id
1117
1108
if (tree.has_changes(tree.basis_tree())
1119
1110
raise errors.UncommittedChanges(
1120
1111
tree, more='Use --no-strict to force the push.')
1121
1112
if tree.last_revision() != tree.branch.last_revision():