BzrDir.cloning_metadir should delegate to the individual objects

Bug #103195 reported by Robert Collins
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Medium
Unassigned
Breezy
Triaged
Low
Unassigned

Bug Description

BzrDir.cloning_metadir is quite nice, but it can be tricky when you have
things like lightweight checkouts or shared repositories to be sure that
the right format is created. It looks like it would be easier to get
this right if the cloning_format was delegated down to the individual
objects - perhaps like:

result._repository_format = source_repository.cloning_format(result)

which would allow selection based on:
 the bzrdir type
 the url (and thus local/remote issues)

while handling cleanly the case there the bzrdir type (and thus the
appropriate format) is when the bzrdir for the repository and branch, or
branch and tree differs.

 affects /products/bzr
 status confirmed
 importance medium

Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Tags: api formats
Jelmer Vernooij (jelmer)
tags: added: api formats
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
Jelmer Vernooij (jelmer)
tags: removed: check-for-breezy
Changed in brz:
status: New → Triaged
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.