~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-04-07 18:03:35 UTC
  • mfrom: (4251.1.7 hide-reference)
  • Revision ID: pqm@pqm.ubuntu.com-20090407180335-g11gve6533bv8lei
(abentley) show join, hide --reference option.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4583
4583
 
4584
4584
 
4585
4585
class cmd_join(Command):
4586
 
    """Combine a subtree into its containing tree.
 
4586
    """Combine a tree into its containing tree.
4587
4587
 
4588
 
    This command is for experimental use only.  It requires the target tree
4589
 
    to be in dirstate-with-subtree format, which cannot be converted into
4590
 
    earlier formats.
 
4588
    This command requires the target tree to be in a rich-root format.
4591
4589
 
4592
4590
    The TREE argument should be an independent tree, inside another tree, but
4593
4591
    not part of it.  (Such trees can be produced by "bzr split", but also by
4596
4594
    The result is a combined tree, with the subtree no longer an independant
4597
4595
    part.  This is marked as a merge of the subtree into the containing tree,
4598
4596
    and all history is preserved.
4599
 
 
4600
 
    If --reference is specified, the subtree retains its independence.  It can
4601
 
    be branched by itself, and can be part of multiple projects at the same
4602
 
    time.  But operations performed in the containing tree, such as commit
4603
 
    and merge, will recurse into the subtree.
4604
4597
    """
4605
4598
 
4606
4599
    _see_also = ['split']
4607
4600
    takes_args = ['tree']
4608
4601
    takes_options = [
4609
 
            Option('reference', help='Join by reference.'),
 
4602
            Option('reference', help='Join by reference.', hidden=True),
4610
4603
            ]
4611
 
    hidden = True
4612
4604
 
4613
4605
    def run(self, tree, reference=False):
4614
4606
        sub_tree = WorkingTree.open(tree)
4648
4640
    branch.  Commits in the top-level tree will not apply to the new subtree.
4649
4641
    """
4650
4642
 
4651
 
    # join is not un-hidden yet
4652
 
    #_see_also = ['join']
 
4643
    _see_also = ['join']
4653
4644
    takes_args = ['tree']
4654
4645
 
4655
4646
    def run(self, tree):