~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/benchmarks/tree_creator/kernel_like.py

  • Committer: Robert Collins
  • Date: 2010-04-08 04:34:03 UTC
  • mfrom: (5138 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5139.
  • Revision ID: robertc@robertcollins.net-20100408043403-56z0d07vdqrx7f3t
Update bugfix for 528114 to trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006 Canonical Ltd
 
1
# Copyright (C) 2006-2010 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
48
48
        if self._url is not None:
49
49
            b = bzrdir.BzrDir.create_branch_convenience(self._url)
50
50
            d = bzrdir.BzrDir.create(root)
51
 
            bzrlib.branch.BranchReferenceFormat().initialize(d, b)
 
51
            bzrlib.branch.BranchReferenceFormat().initialize(d,
 
52
                target_branch=b)
52
53
            tree = d.create_workingtree()
53
54
        else:
54
55
            tree = bzrdir.BzrDir.create_standalone_workingtree(root)