1098
1098
_unused) = bzrdir.BzrDir.open_containing_tree_or_branch(directory)
1100
1100
strict = br_from.get_config().get_user_option_as_bool('push_strict')
1101
1102
# Get the tip's revision_id
1102
1103
revision = _get_one_revision('push', revision)
1104
1105
revision_id = revision.in_history(br_from).rev_id
1109
1109
changes = tree.changes_from(tree.basis_tree())
1110
1110
if changes.has_changed() or len(tree.get_parent_ids()) > 1:
1111
1111
raise errors.UncommittedChanges(