Merge lp:~mwhudson/launchpad/bzr-2.1b4-upgrade into lp:launchpad

Proposed by Michael Hudson-Doyle
Status: Merged
Approved by: Michael Hudson-Doyle
Approved revision: not available
Merged at revision: not available
Proposed branch: lp:~mwhudson/launchpad/bzr-2.1b4-upgrade
Merge into: lp:launchpad
Diff against target: 409 lines (+24/-94)
17 files modified
lib/devscripts/ec2test/entrypoint.py (+6/-0)
lib/lp/codehosting/bzrutils.py (+1/-27)
lib/lp/codehosting/codeimport/tests/test_worker.py (+0/-8)
lib/lp/codehosting/codeimport/worker.py (+2/-3)
lib/lp/codehosting/puller/tests/test_scheduler.py (+0/-8)
lib/lp/codehosting/puller/tests/test_worker.py (+1/-2)
lib/lp/codehosting/puller/tests/test_worker_formats.py (+1/-6)
lib/lp/codehosting/scanner/tests/test_acceptance.py (+2/-3)
lib/lp/codehosting/scanner/tests/test_bzrsync.py (+1/-2)
lib/lp/codehosting/tests/test_acceptance.py (+3/-16)
lib/lp/codehosting/tests/test_bzrutils.py (+1/-5)
lib/lp/codehosting/vfs/branchfs.py (+1/-2)
lib/lp/codehosting/vfs/tests/test_branchfs.py (+1/-2)
lib/lp/codehosting/vfs/tests/test_transport.py (+1/-5)
lib/lp/codehosting/vfs/transport.py (+1/-2)
lib/lp/testing/__init__.py (+1/-2)
versions.cfg (+1/-1)
To merge this branch: bzr merge lp:~mwhudson/launchpad/bzr-2.1b4-upgrade
Reviewer Review Type Date Requested Status
Jonathan Lange (community) Approve
Review via email: mp+16521@code.launchpad.net

Commit message

Upgrade to 2.1b4 and drop some compatibility code for older bzrs

To post a comment you must log in.
Revision history for this message
Michael Hudson-Doyle (mwhudson) wrote :

Hi,

This branch updates us to bzr 2.1b4. This could have been a one character change in versions.cfg, but I accidentally ended up removing a bunch of cruft we had that was only there to support old versions of bzr. The one of these that has the largest (textual) impact is removing lp.codehosting.bzrutils.ensure_base, all the others are pretty trivial I think.

Cheers,
mwh

Revision history for this message
Jonathan Lange (jml) wrote :

Nice. Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/devscripts/ec2test/entrypoint.py'
--- lib/devscripts/ec2test/entrypoint.py 2009-09-18 05:36:00 +0000
+++ lib/devscripts/ec2test/entrypoint.py 2009-12-23 02:50:28 +0000
@@ -13,6 +13,7 @@
13import sys13import sys
1414
15from bzrlib.errors import BzrCommandError15from bzrlib.errors import BzrCommandError
16from bzrlib import ui
1617
17from devscripts.ec2test import builtins18from devscripts.ec2test import builtins
18from devscripts.ec2test.controller import (19from devscripts.ec2test.controller import (
@@ -32,6 +33,11 @@
3233
33 We run the specified command, or give help if none was specified.34 We run the specified command, or give help if none was specified.
34 """35 """
36 # XXX MichaelHudson, 2009-12-23, bug=499637: run_bzr fails unless you set
37 # a ui_factory.
38 ui.ui_factory = ui.make_ui_for_terminal(
39 sys.stdin, sys.stdout, sys.stderr)
40
35 controller = EC2CommandController()41 controller = EC2CommandController()
36 controller.install_bzrlib_hooks()42 controller.install_bzrlib_hooks()
37 controller.load_module(builtins)43 controller.load_module(builtins)
3844
=== modified file 'lib/lp/codehosting/bzrutils.py'
--- lib/lp/codehosting/bzrutils.py 2009-09-18 00:08:40 +0000
+++ lib/lp/codehosting/bzrutils.py 2009-12-23 02:50:28 +0000
@@ -11,7 +11,6 @@
11__all__ = [11__all__ = [
12 'add_exception_logging_hook',12 'add_exception_logging_hook',
13 'DenyingServer',13 'DenyingServer',
14 'ensure_base',
15 'get_branch_stacked_on_url',14 'get_branch_stacked_on_url',
16 'get_vfs_format_classes',15 'get_vfs_format_classes',
17 'HttpAsLocalTransport',16 'HttpAsLocalTransport',
@@ -26,8 +25,7 @@
2625
27from bzrlib import config, trace26from bzrlib import config, trace
28from bzrlib.errors import (27from bzrlib.errors import (
29 NoSuchFile, NotStacked, UnstackableBranchFormat,28 NotStacked, UnstackableBranchFormat, UnstackableRepositoryFormat)
30 UnstackableRepositoryFormat)
31from bzrlib.remote import RemoteBranch, RemoteBzrDir, RemoteRepository29from bzrlib.remote import RemoteBranch, RemoteBzrDir, RemoteRepository
32from bzrlib.transport import register_transport, unregister_transport30from bzrlib.transport import register_transport, unregister_transport
33from bzrlib.transport.local import LocalTransport31from bzrlib.transport.local import LocalTransport
@@ -105,30 +103,6 @@
105 return stacked_on_url103 return stacked_on_url
106104
107105
108# XXX: JonathanLange 2007-06-13 bugs=120135:
109# This should probably be part of bzrlib.
110def ensure_base(transport):
111 """Make sure that the base directory of `transport` exists.
112
113 If the base directory does not exist, try to make it. If the parent of the
114 base directory doesn't exist, try to make that, and so on.
115 """
116 try:
117 transport.ensure_base()
118 except NoSuchFile:
119 # transport.create_prefix was added in Bazaar 1.15, and _create_prefix
120 # was removed. Check to see if transport has a create_prefix method
121 # and use the old _create_prefix if it's not there.
122 #
123 # This can be removed once Bazaar 1.15 has landed on Launchpad.
124 create_prefix = getattr(transport, 'create_prefix', None)
125 if create_prefix is not None:
126 create_prefix()
127 else:
128 from bzrlib.builtins import _create_prefix
129 _create_prefix(transport)
130
131
132_exception_logging_hooks = []106_exception_logging_hooks = []
133107
134_original_log_exception_quietly = trace.log_exception_quietly108_original_log_exception_quietly = trace.log_exception_quietly
135109
=== modified file 'lib/lp/codehosting/codeimport/tests/test_worker.py'
--- lib/lp/codehosting/codeimport/tests/test_worker.py 2009-12-01 03:02:27 +0000
+++ lib/lp/codehosting/codeimport/tests/test_worker.py 2009-12-23 02:50:28 +0000
@@ -898,14 +898,6 @@
898 super(TestBzrSvnImport, self).setUp()898 super(TestBzrSvnImport, self).setUp()
899 load_optional_plugin('svn')899 load_optional_plugin('svn')
900 self.setUpImport()900 self.setUpImport()
901 # XXX MichaelHudson, 2009-11-24, bug=464174:
902 # TestCaseWithMemoryTransport likes to set these environment variables
903 # to unicode strings and bzr-svn hits an assertion failure in this
904 # case.
905 os.environ['BZR_HOME'] = os.environ['BZR_HOME'].encode(
906 sys.getfilesystemencoding())
907 os.environ['HOME'] = os.environ['HOME'].encode(
908 sys.getfilesystemencoding())
909901
910 def makeImportWorker(self, source_details):902 def makeImportWorker(self, source_details):
911 """Make a new `ImportWorker`."""903 """Make a new `ImportWorker`."""
912904
=== modified file 'lib/lp/codehosting/codeimport/worker.py'
--- lib/lp/codehosting/codeimport/worker.py 2009-12-08 02:53:47 +0000
+++ lib/lp/codehosting/codeimport/worker.py 2009-12-23 02:50:28 +0000
@@ -28,7 +28,6 @@
28from bzrlib.upgrade import upgrade28from bzrlib.upgrade import upgrade
2929
30from canonical.cachedproperty import cachedproperty30from canonical.cachedproperty import cachedproperty
31from lp.codehosting.bzrutils import ensure_base
32from lp.codehosting.codeimport.foreigntree import (31from lp.codehosting.codeimport.foreigntree import (
33 CVSWorkingTree, SubversionWorkingTree)32 CVSWorkingTree, SubversionWorkingTree)
34from lp.codehosting.codeimport.tarball import (33from lp.codehosting.codeimport.tarball import (
@@ -78,7 +77,7 @@
7877
79 def push(self, db_branch_id, bzr_tree, required_format):78 def push(self, db_branch_id, bzr_tree, required_format):
80 """Push up `bzr_tree` as the Bazaar branch for `code_import`."""79 """Push up `bzr_tree` as the Bazaar branch for `code_import`."""
81 ensure_base(self.transport)80 self.transport.create_prefix()
82 branch_from = bzr_tree.branch81 branch_from = bzr_tree.branch
83 target_url = self._getMirrorURL(db_branch_id)82 target_url = self._getMirrorURL(db_branch_id)
84 try:83 try:
@@ -262,7 +261,7 @@
262 source_transport = get_transport('.')261 source_transport = get_transport('.')
263 remote_name = self._getRemoteName(filename)262 remote_name = self._getRemoteName(filename)
264 local_file = source_transport.get(filename)263 local_file = source_transport.get(filename)
265 ensure_base(self._transport)264 self._transport.create_prefix()
266 try:265 try:
267 self._transport.put_file(remote_name, local_file)266 self._transport.put_file(remote_name, local_file)
268 finally:267 finally:
269268
=== modified file 'lib/lp/codehosting/puller/tests/test_scheduler.py'
--- lib/lp/codehosting/puller/tests/test_scheduler.py 2009-12-22 00:26:49 +0000
+++ lib/lp/codehosting/puller/tests/test_scheduler.py 2009-12-23 02:50:28 +0000
@@ -643,14 +643,6 @@
643 def setUp(self):643 def setUp(self):
644 TrialTestCase.setUp(self)644 TrialTestCase.setUp(self)
645 PullerBranchTestCase.setUp(self)645 PullerBranchTestCase.setUp(self)
646 # XXX MichaelHudson, 2009-11-21, bug=464174:
647 # TestCaseWithMemoryTransport likes to set these environment variables
648 # to unicode strings and Twisted's spawnProcess doesn't like that
649 # (reasonably enough).
650 os.environ['BZR_HOME'] = os.environ['BZR_HOME'].encode(
651 sys.getfilesystemencoding())
652 os.environ['HOME'] = os.environ['HOME'].encode(
653 sys.getfilesystemencoding())
654 self.makeCleanDirectory(config.codehosting.hosted_branches_root)646 self.makeCleanDirectory(config.codehosting.hosted_branches_root)
655 self.makeCleanDirectory(config.codehosting.mirrored_branches_root)647 self.makeCleanDirectory(config.codehosting.mirrored_branches_root)
656 branch_id = self.factory.makeAnyBranch(648 branch_id = self.factory.makeAnyBranch(
657649
=== modified file 'lib/lp/codehosting/puller/tests/test_worker.py'
--- lib/lp/codehosting/puller/tests/test_worker.py 2009-12-22 00:26:49 +0000
+++ lib/lp/codehosting/puller/tests/test_worker.py 2009-12-23 02:50:28 +0000
@@ -21,7 +21,6 @@
21from bzrlib.tests import TestCaseInTempDir, TestCaseWithTransport21from bzrlib.tests import TestCaseInTempDir, TestCaseWithTransport
22from bzrlib.transport import get_transport22from bzrlib.transport import get_transport
2323
24from lp.codehosting.bzrutils import ensure_base
25from lp.codehosting.puller.worker import (24from lp.codehosting.puller.worker import (
26 BranchLoopError, BranchMirrorer, BranchReferenceForbidden,25 BranchLoopError, BranchMirrorer, BranchReferenceForbidden,
27 PullerWorkerProtocol, StackedOnBranchNotFound,26 PullerWorkerProtocol, StackedOnBranchNotFound,
@@ -134,7 +133,7 @@
134 source_tree.commit('commit message')133 source_tree.commit('commit message')
135 # Make the directory.134 # Make the directory.
136 dest = get_transport(to_mirror.dest)135 dest = get_transport(to_mirror.dest)
137 ensure_base(dest)136 dest.create_prefix()
138 dest.mkdir('.bzr')137 dest.mkdir('.bzr')
139 # 'dest' is not a branch.138 # 'dest' is not a branch.
140 self.assertRaises(139 self.assertRaises(
141140
=== modified file 'lib/lp/codehosting/puller/tests/test_worker_formats.py'
--- lib/lp/codehosting/puller/tests/test_worker_formats.py 2009-06-25 04:06:00 +0000
+++ lib/lp/codehosting/puller/tests/test_worker_formats.py 2009-12-23 02:50:28 +0000
@@ -12,12 +12,7 @@
12from bzrlib.repofmt.knitrepo import RepositoryFormatKnit112from bzrlib.repofmt.knitrepo import RepositoryFormatKnit1
13from bzrlib.repofmt.pack_repo import RepositoryFormatKnitPack513from bzrlib.repofmt.pack_repo import RepositoryFormatKnitPack5
14from bzrlib.repofmt.weaverepo import RepositoryFormat6, RepositoryFormat714from bzrlib.repofmt.weaverepo import RepositoryFormat6, RepositoryFormat7
15try:15from bzrlib.tests.per_repository import TestCaseWithRepository
16 from bzrlib.tests.repository_implementations.test_repository import (
17 TestCaseWithRepository)
18except ImportError:
19 from bzrlib.tests.per_repository import TestCaseWithRepository
20
2116
22from lp.codehosting.puller.tests import PullerWorkerMixin17from lp.codehosting.puller.tests import PullerWorkerMixin
23from lp.codehosting.tests.helpers import LoomTestMixin18from lp.codehosting.tests.helpers import LoomTestMixin
2419
=== modified file 'lib/lp/codehosting/scanner/tests/test_acceptance.py'
--- lib/lp/codehosting/scanner/tests/test_acceptance.py 2009-06-25 04:06:00 +0000
+++ lib/lp/codehosting/scanner/tests/test_acceptance.py 2009-12-23 02:50:28 +0000
@@ -22,7 +22,6 @@
22from zope.component import getUtility22from zope.component import getUtility
2323
24from lp.codehosting.vfs import branch_id_to_path24from lp.codehosting.vfs import branch_id_to_path
25from lp.codehosting.bzrutils import ensure_base
26from lp.codehosting.tests.helpers import (25from lp.codehosting.tests.helpers import (
27 create_branch_with_one_revision, LoomTestMixin)26 create_branch_with_one_revision, LoomTestMixin)
28from canonical.config import config27from canonical.config import config
@@ -49,7 +48,7 @@
49 local_path_from_url(48 local_path_from_url(
50 config.codehosting.internal_branch_by_id_root),49 config.codehosting.internal_branch_by_id_root),
51 branch_id_to_path(db_branch.id))50 branch_id_to_path(db_branch.id))
52 ensure_base(get_transport(destination))51 get_transport(destination).create_prefix()
53 self.addCleanup(lambda: shutil.rmtree(destination))52 self.addCleanup(lambda: shutil.rmtree(destination))
54 return destination53 return destination
5554
@@ -112,7 +111,7 @@
112 # Build the loom in the destination directory.111 # Build the loom in the destination directory.
113 self.addCleanup(lambda: os.chdir(os.getcwd()))112 self.addCleanup(lambda: os.chdir(os.getcwd()))
114 os.chdir(destination)113 os.chdir(destination)
115 loom_tree = self.makeLoomBranchAndTree('.')114 self.makeLoomBranchAndTree('.')
116115
117 loom_branch = bzrlib.branch.Branch.open(destination)116 loom_branch = bzrlib.branch.Branch.open(destination)
118 self.installTestBranch(self.db_branch, loom_branch)117 self.installTestBranch(self.db_branch, loom_branch)
119118
=== modified file 'lib/lp/codehosting/scanner/tests/test_bzrsync.py'
--- lib/lp/codehosting/scanner/tests/test_bzrsync.py 2009-10-17 14:06:03 +0000
+++ lib/lp/codehosting/scanner/tests/test_bzrsync.py 2009-12-23 02:50:28 +0000
@@ -32,7 +32,6 @@
32from lp.code.model.branchrevision import BranchRevision32from lp.code.model.branchrevision import BranchRevision
33from lp.code.model.branchmergeproposaljob import IUpdatePreviewDiffJobSource33from lp.code.model.branchmergeproposaljob import IUpdatePreviewDiffJobSource
34from lp.code.model.revision import Revision, RevisionAuthor, RevisionParent34from lp.code.model.revision import Revision, RevisionAuthor, RevisionParent
35from lp.codehosting.bzrutils import ensure_base
36from lp.codehosting.scanner.bzrsync import (35from lp.codehosting.scanner.bzrsync import (
37 BzrSync, InvalidStackedBranchURL, schedule_diff_updates,36 BzrSync, InvalidStackedBranchURL, schedule_diff_updates,
38 schedule_translation_upload)37 schedule_translation_upload)
@@ -128,7 +127,7 @@
128127
129 def makeBzrBranchAndTree(self, db_branch, format=None):128 def makeBzrBranchAndTree(self, db_branch, format=None):
130 """Make a Bazaar branch at the warehouse location of `db_branch`."""129 """Make a Bazaar branch at the warehouse location of `db_branch`."""
131 ensure_base(self.get_transport(db_branch.unique_name))130 self.get_transport(db_branch.unique_name).create_prefix()
132 return self.make_branch_and_tree(db_branch.unique_name, format=format)131 return self.make_branch_and_tree(db_branch.unique_name, format=format)
133132
134 def makeDatabaseBranch(self, *args, **kwargs):133 def makeDatabaseBranch(self, *args, **kwargs):
135134
=== modified file 'lib/lp/codehosting/tests/test_acceptance.py'
--- lib/lp/codehosting/tests/test_acceptance.py 2009-11-21 00:28:10 +0000
+++ lib/lp/codehosting/tests/test_acceptance.py 2009-12-23 02:50:28 +0000
@@ -11,7 +11,7 @@
11import xmlrpclib11import xmlrpclib
1212
13import bzrlib.branch13import bzrlib.branch
14from bzrlib.tests import TestCaseWithTransport14from bzrlib.tests import multiply_tests, TestCaseWithTransport
15from bzrlib.urlutils import local_path_from_url15from bzrlib.urlutils import local_path_from_url
16from bzrlib.workingtree import WorkingTree16from bzrlib.workingtree import WorkingTree
1717
@@ -265,11 +265,7 @@
265 # Push up a new branch.265 # Push up a new branch.
266 remote_url = self.getTransportURL('~testuser/+junk/new-branch')266 remote_url = self.getTransportURL('~testuser/+junk/new-branch')
267 self.push(self.first_tree, remote_url)267 self.push(self.first_tree, remote_url)
268 # XXX MichaelHudson, 2008-12-11: The way that getLastRevision is268 self.assertBranchesMatch(self.first_tree, remote_url)
269 # currently implemented doesn't work with empty branches. When it can
270 # be rewritten to use revision-info, the next line can be re-enabled.
271 # See comment in getLastRevision for more.
272 #self.assertBranchesMatch(self.first_tree, remote_url)
273269
274 # Commit to it.270 # Commit to it.
275 tree.commit('new revision', allow_pointless=True)271 tree.commit('new revision', allow_pointless=True)
@@ -629,16 +625,7 @@
629 if scenario[0] not in excluded_scenarios625 if scenario[0] not in excluded_scenarios
630 and not scenario[0].startswith('RemoteRepositoryFormat')]626 and not scenario[0].startswith('RemoteRepositoryFormat')]
631 new_suite = unittest.TestSuite()627 new_suite = unittest.TestSuite()
632 try:628 multiply_tests(base_suite, scenarios, new_suite)
633 from bzrlib.tests import multiply_tests
634 multiply_tests(base_suite, scenarios, new_suite)
635 except ImportError:
636 # XXX: MichaelHudson, 2009-03-11: This except clause can be deleted
637 # once sourcecode/bzr has bzr.dev r4102.
638 from bzrlib.tests import adapt_tests, TestScenarioApplier
639 adapter = TestScenarioApplier()
640 adapter.scenarios = scenarios
641 adapt_tests(base_suite, adapter, new_suite)
642 return new_suite629 return new_suite
643630
644631
645632
=== modified file 'lib/lp/codehosting/tests/test_bzrutils.py'
--- lib/lp/codehosting/tests/test_bzrutils.py 2009-11-21 00:34:12 +0000
+++ lib/lp/codehosting/tests/test_bzrutils.py 2009-12-23 02:50:28 +0000
@@ -16,11 +16,7 @@
16from bzrlib.tests import (16from bzrlib.tests import (
17 multiply_tests, TestCase, TestCaseWithTransport, TestLoader,17 multiply_tests, TestCase, TestCaseWithTransport, TestLoader,
18 TestNotApplicable)18 TestNotApplicable)
19try:19from bzrlib.tests.per_branch import TestCaseWithBzrDir, branch_scenarios
20 from bzrlib.tests.per_branch import TestCaseWithBzrDir, branch_scenarios
21except ImportError:
22 from bzrlib.tests.branch_implementations import (
23 TestCaseWithBzrDir, branch_scenarios)
2420
25from lp.codehosting.bzrutils import (21from lp.codehosting.bzrutils import (
26 add_exception_logging_hook, DenyingServer, get_branch_stacked_on_url,22 add_exception_logging_hook, DenyingServer, get_branch_stacked_on_url,
2723
=== modified file 'lib/lp/codehosting/vfs/branchfs.py'
--- lib/lp/codehosting/vfs/branchfs.py 2009-10-20 02:20:37 +0000
+++ lib/lp/codehosting/vfs/branchfs.py 2009-12-23 02:50:28 +0000
@@ -83,7 +83,6 @@
8383
84from lp.codehosting.vfs.branchfsclient import (84from lp.codehosting.vfs.branchfsclient import (
85 BlockingProxy, BranchFileSystemClient, trap_fault)85 BlockingProxy, BranchFileSystemClient, trap_fault)
86from lp.codehosting.bzrutils import ensure_base
87from lp.codehosting.vfs.transport import (86from lp.codehosting.vfs.transport import (
88 AsyncVirtualServer, AsyncVirtualTransport, _MultiServer,87 AsyncVirtualServer, AsyncVirtualTransport, _MultiServer,
89 get_chrooted_transport, get_readonly_transport, TranslationError)88 get_chrooted_transport, get_readonly_transport, TranslationError)
@@ -281,7 +280,7 @@
281 self._checkPath(trailing_path)280 self._checkPath(trailing_path)
282 transport = self.base_transport.clone(branch_id_to_path(data['id']))281 transport = self.base_transport.clone(branch_id_to_path(data['id']))
283 try:282 try:
284 ensure_base(transport)283 transport.create_prefix()
285 except TransportNotPossible:284 except TransportNotPossible:
286 # Silently ignore TransportNotPossible. This is raised when the285 # Silently ignore TransportNotPossible. This is raised when the
287 # base transport is read-only.286 # base transport is read-only.
288287
=== modified file 'lib/lp/codehosting/vfs/tests/test_branchfs.py'
--- lib/lp/codehosting/vfs/tests/test_branchfs.py 2009-11-21 00:28:10 +0000
+++ lib/lp/codehosting/vfs/tests/test_branchfs.py 2009-12-23 02:50:28 +0000
@@ -27,7 +27,6 @@
27 AsyncLaunchpadTransport, BranchTransportDispatch,27 AsyncLaunchpadTransport, BranchTransportDispatch,
28 DirectDatabaseLaunchpadServer, LaunchpadInternalServer, LaunchpadServer,28 DirectDatabaseLaunchpadServer, LaunchpadInternalServer, LaunchpadServer,
29 TransportDispatch, UnknownTransportType, branch_id_to_path)29 TransportDispatch, UnknownTransportType, branch_id_to_path)
30from lp.codehosting.bzrutils import ensure_base
31from lp.codehosting.inmemory import InMemoryFrontend, XMLRPCWrapper30from lp.codehosting.inmemory import InMemoryFrontend, XMLRPCWrapper
32from lp.codehosting.sftp import FatLocalTransport31from lp.codehosting.sftp import FatLocalTransport
33from lp.codehosting.vfs.transport import AsyncVirtualTransport32from lp.codehosting.vfs.transport import AsyncVirtualTransport
@@ -547,7 +546,7 @@
547 """546 """
548 backing_transport = self.backing_transport.clone(547 backing_transport = self.backing_transport.clone(
549 '%s/.bzr/' % branch_to_path(branch, add_slash=False))548 '%s/.bzr/' % branch_to_path(branch, add_slash=False))
550 ensure_base(backing_transport)549 backing_transport.create_prefix()
551 return backing_transport550 return backing_transport
552551
553 def test_get_mapped_file(self):552 def test_get_mapped_file(self):
554553
=== modified file 'lib/lp/codehosting/vfs/tests/test_transport.py'
--- lib/lp/codehosting/vfs/tests/test_transport.py 2009-07-17 00:26:05 +0000
+++ lib/lp/codehosting/vfs/tests/test_transport.py 2009-12-23 02:50:28 +0000
@@ -7,11 +7,7 @@
77
8import unittest8import unittest
99
10try:10from bzrlib.tests import per_transport
11 from bzrlib.tests import per_transport
12except ImportError:
13 from bzrlib.tests import test_transport_implementations as per_transport
14
15from bzrlib.transport import chroot, get_transport, Transport11from bzrlib.transport import chroot, get_transport, Transport
16from bzrlib.transport.local import LocalTransport12from bzrlib.transport.local import LocalTransport
17from bzrlib.urlutils import local_path_to_url13from bzrlib.urlutils import local_path_to_url
1814
=== modified file 'lib/lp/codehosting/vfs/transport.py'
--- lib/lp/codehosting/vfs/transport.py 2009-06-25 04:06:00 +0000
+++ lib/lp/codehosting/vfs/transport.py 2009-12-23 02:50:28 +0000
@@ -30,7 +30,6 @@
30 unregister_transport)30 unregister_transport)
3131
32from twisted.internet import defer32from twisted.internet import defer
33from lp.codehosting.bzrutils import ensure_base
34from canonical.twistedsupport import extract_result, gatherResults33from canonical.twistedsupport import extract_result, gatherResults
3534
3635
@@ -56,7 +55,7 @@
56 """Return a chrooted transport serving `url`."""55 """Return a chrooted transport serving `url`."""
57 transport = get_transport(url)56 transport = get_transport(url)
58 if mkdir:57 if mkdir:
59 ensure_base(transport)58 transport.create_prefix()
60 chroot_server = chroot.ChrootServer(transport)59 chroot_server = chroot.ChrootServer(transport)
61 chroot_server.setUp()60 chroot_server.setUp()
62 return get_transport(chroot_server.get_url())61 return get_transport(chroot_server.get_url())
6362
=== modified file 'lib/lp/testing/__init__.py'
--- lib/lp/testing/__init__.py 2009-10-29 09:25:20 +0000
+++ lib/lp/testing/__init__.py 2009-12-23 02:50:28 +0000
@@ -34,7 +34,6 @@
34 isinstance as zope_isinstance, removeSecurityProxy)34 isinstance as zope_isinstance, removeSecurityProxy)
3535
36from canonical.launchpad.webapp import errorlog36from canonical.launchpad.webapp import errorlog
37from lp.codehosting.bzrutils import ensure_base
38from lp.codehosting.vfs import branch_id_to_path, get_multi_server37from lp.codehosting.vfs import branch_id_to_path, get_multi_server
39from canonical.config import config38from canonical.config import config
40# Import the login and logout functions here as it is a much better39# Import the login and logout functions here as it is a much better
@@ -588,7 +587,7 @@
588 # This is a work-around for some failures on PQM, arguably caused by587 # This is a work-around for some failures on PQM, arguably caused by
589 # relying on test set-up that is happening in the Makefile rather than588 # relying on test set-up that is happening in the Makefile rather than
590 # the actual test set-up.589 # the actual test set-up.
591 ensure_base(get_transport(base))590 get_transport(base).create_prefix()
592 return os.path.join(base, branch_id_to_path(branch.id))591 return os.path.join(base, branch_id_to_path(branch.id))
593592
594 def createMirroredBranchAndTree(self):593 def createMirroredBranchAndTree(self):
595594
=== modified file 'versions.cfg'
--- versions.cfg 2009-12-21 03:18:24 +0000
+++ versions.cfg 2009-12-23 02:50:28 +0000
@@ -3,7 +3,7 @@
33
4[versions]4[versions]
5# Alphabetical, case-insensitive, please! :-)5# Alphabetical, case-insensitive, please! :-)
6bzr = 2.1b36bzr = 2.1b4
7chameleon.core = 1.0b357chameleon.core = 1.0b35
8chameleon.zpt = 1.0b178chameleon.zpt = 1.0b17
9ClientForm = 0.2.109ClientForm = 0.2.10