Merge lp:~jelmer/bzr/merge-2.5 into lp:bzr

Proposed by Jelmer Vernooij
Status: Merged
Approved by: Jelmer Vernooij
Approved revision: no longer in the source branch.
Merged at revision: 6473
Proposed branch: lp:~jelmer/bzr/merge-2.5
Merge into: lp:bzr
Diff against target: 99 lines (+29/-7)
5 files modified
bzrlib/info.py (+7/-5)
bzrlib/tests/blackbox/test_info.py (+13/-0)
bzrlib/tests/per_controldir_colo/test_supported.py (+5/-1)
bzrlib/transport/http/_urllib2_wrappers.py (+1/-1)
doc/en/release-notes/bzr-2.5.txt (+3/-0)
To merge this branch: bzr merge lp:~jelmer/bzr/merge-2.5
Reviewer Review Type Date Requested Status
Jelmer Vernooij Pending
Review via email: mp+94427@code.launchpad.net

Commit message

Merge bzr/2.5.

Description of the change

Merge bzr/2.5.

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'bzrlib/info.py'
--- bzrlib/info.py 2012-01-18 20:47:13 +0000
+++ bzrlib/info.py 2012-02-23 18:27:21 +0000
@@ -200,9 +200,10 @@
200 repository._format.get_format_description())200 repository._format.get_format_description())
201201
202202
203def _show_locking_info(repository, branch=None, working=None, outfile=None):203def _show_locking_info(repository=None, branch=None, working=None,
204 outfile=None):
204 """Show locking status of working, branch and repository."""205 """Show locking status of working, branch and repository."""
205 if (repository.get_physical_lock_status() or206 if (repository and repository.get_physical_lock_status() or
206 (branch and branch.get_physical_lock_status()) or207 (branch and branch.get_physical_lock_status()) or
207 (working and working.get_physical_lock_status())):208 (working and working.get_physical_lock_status())):
208 outfile.write('\n')209 outfile.write('\n')
@@ -413,11 +414,12 @@
413 if branch is not None:414 if branch is not None:
414 show_committers = verbose >= 2415 show_committers = verbose >= 2
415 stats = _show_branch_stats(branch, show_committers, outfile)416 stats = _show_branch_stats(branch, show_committers, outfile)
416 else:417 elif repository is not None:
417 stats = repository.gather_stats()418 stats = repository.gather_stats()
418 if branch is None and working is None:419 if branch is None and working is None and repository is not None:
419 _show_repository_info(repository, outfile)420 _show_repository_info(repository, outfile)
420 _show_repository_stats(repository, stats, outfile)421 if repository is not None:
422 _show_repository_stats(repository, stats, outfile)
421423
422424
423def describe_layout(repository=None, branch=None, tree=None, control=None):425def describe_layout(repository=None, branch=None, tree=None, control=None):
424426
=== modified file 'bzrlib/tests/blackbox/test_info.py'
--- bzrlib/tests/blackbox/test_info.py 2012-02-14 17:22:37 +0000
+++ bzrlib/tests/blackbox/test_info.py 2012-02-23 18:27:21 +0000
@@ -57,6 +57,19 @@
57 ' control directory: ctrl\n')57 ' control directory: ctrl\n')
58 self.assertEquals(err, '')58 self.assertEquals(err, '')
5959
60 def test_info_empty_controldir_verbose(self):
61 self.make_bzrdir('ctrl')
62 out, err = self.run_bzr('info -v ctrl')
63 self.assertEqualDiff(out,
64 'Empty control directory (format: 2a or pack-0.92)\n'
65 'Location:\n'
66 ' control directory: ctrl\n\n'
67 'Format:\n'
68 ' control: Meta directory format 1\n\n'
69 'Control directory:\n'
70 ' 0 branches\n')
71 self.assertEquals(err, '')
72
60 def test_info_dangling_branch_reference(self):73 def test_info_dangling_branch_reference(self):
61 br = self.make_branch('target')74 br = self.make_branch('target')
62 br.create_checkout('from', lightweight=True)75 br.create_checkout('from', lightweight=True)
6376
=== modified file 'bzrlib/tests/per_controldir_colo/test_supported.py'
--- bzrlib/tests/per_controldir_colo/test_supported.py 2012-01-23 19:09:00 +0000
+++ bzrlib/tests/per_controldir_colo/test_supported.py 2012-02-23 18:27:21 +0000
@@ -145,6 +145,10 @@
145 def test_branch_reference(self):145 def test_branch_reference(self):
146 referenced = self.make_branch('referenced')146 referenced = self.make_branch('referenced')
147 repo = self.make_repository('repo')147 repo = self.make_repository('repo')
148 repo.bzrdir.set_branch_reference(referenced, name='foo')148 try:
149 repo.bzrdir.set_branch_reference(referenced, name='foo')
150 except errors.IncompatibleFormat:
151 raise tests.TestNotApplicable(
152 'Control dir does not support creating branch references.')
149 self.assertEquals(referenced.base,153 self.assertEquals(referenced.base,
150 repo.bzrdir.get_branch_reference('foo'))154 repo.bzrdir.get_branch_reference('foo'))
151155
=== modified file 'bzrlib/transport/http/_urllib2_wrappers.py'
--- bzrlib/transport/http/_urllib2_wrappers.py 2012-02-15 10:24:06 +0000
+++ bzrlib/transport/http/_urllib2_wrappers.py 2012-02-23 18:27:21 +0000
@@ -88,7 +88,7 @@
88 ]88 ]
89def default_ca_certs():89def default_ca_certs():
90 if sys.platform == 'win32':90 if sys.platform == 'win32':
91 return os.path.join(os.path.dirname(sys.executable), u"ca_bundle.crt")91 return os.path.join(os.path.dirname(sys.executable), u"cacert.pem")
92 elif sys.platform == 'darwin':92 elif sys.platform == 'darwin':
93 # FIXME: Needs some default value for osx, waiting for osx installers93 # FIXME: Needs some default value for osx, waiting for osx installers
94 # guys feedback -- vila 2012-01-2594 # guys feedback -- vila 2012-01-25
9595
=== modified file 'doc/en/release-notes/bzr-2.5.txt'
--- doc/en/release-notes/bzr-2.5.txt 2012-02-18 16:55:04 +0000
+++ doc/en/release-notes/bzr-2.5.txt 2012-02-23 18:27:21 +0000
@@ -36,6 +36,9 @@
36.. Fixes for situations where bzr would previously crash or give incorrect36.. Fixes for situations where bzr would previously crash or give incorrect
37 or undesirable results.37 or undesirable results.
3838
39* Show locks in ``bzr info`` on control directories without a
40 repository. (Jelmer Vernooij, #936767)
41
39* Disable ssl certificate verification on osx and windows until a native42* Disable ssl certificate verification on osx and windows until a native
40 access to the the root certificates is provided there.43 access to the the root certificates is provided there.
41 (Vincent Ladeuil, #929179)44 (Vincent Ladeuil, #929179)