317
319
push_result = source_branch.push(target_branch, lossy=True)
318
320
except errors.LossyPushToSameVCS:
322
324
# We successfully created the target, remember it
323
325
if source_branch.get_push_location() is None or remember:
324
326
source_branch.set_push_location(target_branch.base)