/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Aaron Bentley
  • Date: 2009-04-20 20:58:51 UTC
  • mto: This revision was merged to the branch mainline in revision 4302.
  • Revision ID: aaron@aaronbentley.com-20090420205851-r6s96npwkuto0n0q
Implement upgrade from branch format 7 to 8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2886
2886
        branch._transport.put_bytes('format', format.get_format_string())
2887
2887
 
2888
2888
 
 
2889
class Converter7to8(object):
 
2890
    """Perform an in-place upgrade of format 6 to format 7"""
 
2891
 
 
2892
    def convert(self, branch):
 
2893
        format = BzrBranchFormat8()
 
2894
        branch._transport.put_bytes('references', '')
 
2895
        # update target format
 
2896
        branch._transport.put_bytes('format', format.get_format_string())
 
2897
 
2889
2898
 
2890
2899
def _run_with_write_locked_target(target, callable, *args, **kwargs):
2891
2900
    """Run ``callable(*args, **kwargs)``, write-locking target for the