145
145
push_result = dir_to.push_branch(br_from, revision_id, overwrite,
146
146
remember, create_prefix, lossy=lossy)
147
147
except errors.DivergedBranches:
149
149
' See "brz help diverged-branches"'
150
150
' for more information.'))
151
151
except errors.NoRoundtrippingSupport as e:
153
153
gettext("It is not possible to losslessly "
154
154
"push to %s. You may want to use --lossy.") %
155
155
e.target_branch.mapping.vcs.abbreviation)
156
156
except errors.NoRepositoryPresent:
157
157
# we have a controldir but no branch or repository
158
158
# XXX: Figure out what to do other than complain.
160
160
" control directory, but not a branch or repository. This"
161
161
" is an unsupported configuration. Please move the target"
162
162
" directory out of the way and try again.") % location)