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