579
579
source_tree.unlock()
581
581
target_tree.unlock()
584
class cmd_create_mirror(BzrToolsCommand):
585
"""Create a mirror of another branch.
587
This is similar to `bzr branch`, but copies more settings.
589
It sets the public branch and parent of the target to the source location.
592
takes_args = ['source', 'target']
594
def run(self, source, target):
595
source_branch = Branch.open(source)
596
from bzrlib.plugins.bzrtools.mirror import create_mirror
597
create_mirror(source_branch, target, [])