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