663
663
dir_to = br_from.bzrdir.clone(location_url,
664
664
revision_id=br_from.last_revision())
665
665
br_to = dir_to.open_branch()
667
667
# We successfully created the target, remember it
668
668
if br_from.get_push_location() is None or remember:
669
669
br_from.set_push_location(br_to.base)