~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: 2011-08-19 15:46:31 UTC
  • mfrom: (6082.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20110819154631-bwmy8w87dmd2y64v
(jelmer) Don't create branch references in control directories that do not
 support custom branch formats. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2246
2246
            # creation contract must see it as uninitializable
2247
2247
            raise errors.UninitializableFormat(self)
2248
2248
        mutter('creating branch reference in %s', a_bzrdir.user_url)
 
2249
        if a_bzrdir._format.fixed_components:
 
2250
            raise errors.IncompatibleFormat(self, a_bzrdir._format)
2249
2251
        branch_transport = a_bzrdir.get_branch_transport(self, name=name)
2250
2252
        branch_transport.put_bytes('location',
2251
2253
            target_branch.bzrdir.user_url)