~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-08-17 22:43:26 UTC
  • mfrom: (4617.1.2 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20090817224326-uhljmr5me5x3xyda
(robertc) Multiple 2a-as-default fixes. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1147
1147
        revision_id: if not None, the revision history in the new branch will
1148
1148
                     be truncated to end with revision_id.
1149
1149
        """
 
1150
        if (repository_policy is not None and
 
1151
            repository_policy.requires_stacking()):
 
1152
            to_bzrdir._format.require_stacking(_skip_repo=True)
1150
1153
        result = to_bzrdir.create_branch()
1151
1154
        result.lock_write()
1152
1155
        try: