122
122
changes = tree.changes_from(tree.basis_tree())
123
123
if changes.has_changed() or len(tree.get_parent_ids()) > 1:
124
124
raise errors.UncommittedChanges(
126
126
if tree.last_revision() != tree.branch.last_revision():
127
127
# The tree has lost sync with its branch, there is little
128
128
# chance that the user is aware of it but he can still force
129
129
# the push with --no-strict
130
130
raise errors.OutOfDateTree(
132
132
revision_id = branch.last_revision()
133
133
if revision_id == NULL_REVISION:
134
134
raise errors.BzrCommandError('No revisions to submit.')