~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: John Arbash Meinel
  • Date: 2009-08-18 14:49:52 UTC
  • mfrom: (4624 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4629.
  • Revision ID: john@arbash-meinel.com-20090818144952-mk2cy45ax9twl3lm
Merge bzr.dev 4624 in preparation for NEWS

Show diffs side-by-side

added added

removed removed

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