1115
1115
if (tree is not None and revision_id is None
1116
1116
and (strict is None or strict)): # Default to True:
1119
1119
raise errors.UncommittedChanges(
1120
1120
tree, more='Use --no-strict to force the push.')
1121
1121
if tree.last_revision() != tree.branch.last_revision():