Rev 3703: Merge vila's init[-repo] changes and add a NEWS entry. in http://bzr.arbash-meinel.com/branches/bzr/1.7-dev/1.7rc2
John Arbash Meinel
john at arbash-meinel.com
Tue Sep 16 22:39:06 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.7-dev/1.7rc2
------------------------------------------------------------
revno: 3703
revision-id: john at arbash-meinel.com-20080916213829-g18jj2b94k70fkxj
parent: john at arbash-meinel.com-20080916213652-c1g72d1oyqtqw3bi
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.7rc2
timestamp: Tue 2008-09-16 16:38:29 -0500
message:
Merge vila's init[-repo] changes and add a NEWS entry.
-------------- next part --------------
=== modified file 'NEWS'
--- a/NEWS 2008-09-16 21:36:52 +0000
+++ b/NEWS 2008-09-16 21:38:29 +0000
@@ -9,12 +9,15 @@
BUG FIXES:
- * Fix '_in_buffer' AttributeError when using the -Dhpss debug flag.
- (Andrew Bennetts)
-
* ``bzr branch bzr+ssh://`` will properly preserve the format when
branching from a non-default format. (Andrew Bennetts)
+ * Fix '_in_buffer' AttributeError when using the -Dhpss debug flag.
+ (Andrew Bennetts)
+
+ * ``bzr init`` no longer re-opens the BzrDir multiple times.
+ (Vincent Ladeuil)
+
bzr 1.7rc1 2008-09-09
---------------------
=== modified file 'bzrlib/builtins.py'
--- a/bzrlib/builtins.py 2008-09-01 23:49:18 +0000
+++ b/bzrlib/builtins.py 2008-09-16 21:38:29 +0000
@@ -1312,22 +1312,22 @@
_create_prefix(to_transport)
try:
- existing_bzrdir = bzrdir.BzrDir.open_from_transport(to_transport)
+ a_bzrdir = bzrdir.BzrDir.open_from_transport(to_transport)
except errors.NotBranchError:
# really a NotBzrDir error...
create_branch = bzrdir.BzrDir.create_branch_convenience
branch = create_branch(to_transport.base, format=format,
possible_transports=[to_transport])
+ a_bzrdir = branch.bzrdir
else:
from bzrlib.transport.local import LocalTransport
- if existing_bzrdir.has_branch():
+ if a_bzrdir.has_branch():
if (isinstance(to_transport, LocalTransport)
- and not existing_bzrdir.has_workingtree()):
+ and not a_bzrdir.has_workingtree()):
raise errors.BranchExistsWithoutWorkingTree(location)
raise errors.AlreadyBranchError(location)
- else:
- branch = existing_bzrdir.create_branch()
- existing_bzrdir.create_workingtree()
+ branch = a_bzrdir.create_branch()
+ a_bzrdir.create_workingtree()
if append_revisions_only:
try:
branch.set_append_revisions_only(True)
@@ -1336,8 +1336,7 @@
' to append-revisions-only. Try --experimental-branch6')
if not is_quiet():
from bzrlib.info import show_bzrdir_info
- show_bzrdir_info(bzrdir.BzrDir.open_containing_from_transport(
- to_transport)[0], verbose=0, outfile=self.outf)
+ show_bzrdir_info(a_bzrdir, verbose=0, outfile=self.outf)
class cmd_init_repository(Command):
@@ -1391,8 +1390,7 @@
repo.set_make_working_trees(not no_trees)
if not is_quiet():
from bzrlib.info import show_bzrdir_info
- show_bzrdir_info(bzrdir.BzrDir.open_containing_from_transport(
- to_transport)[0], verbose=0, outfile=self.outf)
+ show_bzrdir_info(repo.bzrdir, verbose=0, outfile=self.outf)
class cmd_diff(Command):
=== modified file 'bzrlib/tests/blackbox/test_init.py'
--- a/bzrlib/tests/blackbox/test_init.py 2008-07-18 07:29:06 +0000
+++ b/bzrlib/tests/blackbox/test_init.py 2008-09-16 21:38:29 +0000
@@ -142,7 +142,7 @@
except UnicodeError:
raise TestSkipped("Unable to create Unicode filename")
# try to init unicode dir
- self.run_bzr(['init', u'mu-\xb5'])
+ self.run_bzr(['init', '-q', u'mu-\xb5'])
def create_simple_tree(self):
tree = self.make_branch_and_tree('tree')
More information about the bazaar-commits
mailing list