115
115
).get_user_option_as_bool('send_strict')
116
116
if strict is None: strict = True # default value
117
117
if strict and tree is not None:
119
120
raise errors.UncommittedChanges(
120
121
tree, more='Use --no-strict to force the send.')
121
122
if tree.last_revision() != tree.branch.last_revision():
122
123
# The tree has lost sync with its branch, there is little
123
124
# chance that the user is aware of it but he can still force
125
126
raise errors.OutOfDateTree(
126
127
tree, more='Use --no-strict to force the send.')
127
128
revision_id = branch.last_revision()