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