~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-15 17:02:13 UTC
  • mfrom: (4442 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4449.
  • Revision ID: john@arbash-meinel.com-20090615170213-3sgtjlvsr50v9r12
Merge bzr.dev 4442, in preparation for NEWS entry.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1078
1078
 
1079
1079
 
1080
1080
class cmd_branch(Command):
1081
 
    """Create a new copy of a branch.
 
1081
    """Create a new branch that is a copy of an existing branch.
1082
1082
 
1083
1083
    If the TO_LOCATION is omitted, the last component of the FROM_LOCATION will
1084
1084
    be used.  In other words, "branch ../foo/bar" will attempt to create ./bar.
1112
1112
 
1113
1113
        accelerator_tree, br_from = bzrdir.BzrDir.open_tree_or_branch(
1114
1114
            from_location)
 
1115
        if (accelerator_tree is not None and
 
1116
            accelerator_tree.supports_content_filtering()):
 
1117
            accelerator_tree = None
1115
1118
        revision = _get_one_revision('branch', revision)
1116
1119
        br_from.lock_read()
1117
1120
        try: