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