~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-02-10 06:29:49 UTC
  • mfrom: (3995.1.1 ianc-integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090210062949-kj7rpejso2405ug1
Add --no-tree option to bzr branch (Daniel Watkins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
999
999
    takes_args = ['from_location', 'to_location?']
1000
1000
    takes_options = ['revision', Option('hardlink',
1001
1001
        help='Hard-link working tree files where possible.'),
 
1002
        Option('no-tree',
 
1003
            help="Create a branch without a working-tree."),
1002
1004
        Option('stacked',
1003
1005
            help='Create a stacked branch referring to the source branch. '
1004
1006
                'The new branch will depend on the availability of the source '
1009
1011
    aliases = ['get', 'clone']
1010
1012
 
1011
1013
    def run(self, from_location, to_location=None, revision=None,
1012
 
            hardlink=False, stacked=False, standalone=False):
 
1014
            hardlink=False, stacked=False, standalone=False, no_tree=False):
1013
1015
        from bzrlib.tag import _merge_tags_if_possible
1014
1016
 
1015
1017
        accelerator_tree, br_from = bzrdir.BzrDir.open_tree_or_branch(
1042
1044
                                            accelerator_tree=accelerator_tree,
1043
1045
                                            hardlink=hardlink, stacked=stacked,
1044
1046
                                            force_new_repo=standalone,
 
1047
                                            create_tree_if_local=not no_tree,
1045
1048
                                            source_branch=br_from)
1046
1049
                branch = dir.open_branch()
1047
1050
            except errors.NoSuchRevision: