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
1=== modified file 'bzrlib/info.py'
2--- bzrlib/info.py 2012-01-18 20:47:13 +0000
3+++ bzrlib/info.py 2012-02-23 18:27:21 +0000
4@@ -200,9 +200,10 @@
5 repository._format.get_format_description())
6
7
8-def _show_locking_info(repository, branch=None, working=None, outfile=None):
9+def _show_locking_info(repository=None, branch=None, working=None,
10+ outfile=None):
11 """Show locking status of working, branch and repository."""
12- if (repository.get_physical_lock_status() or
13+ if (repository and repository.get_physical_lock_status() or
14 (branch and branch.get_physical_lock_status()) or
15 (working and working.get_physical_lock_status())):
16 outfile.write('\n')
17@@ -413,11 +414,12 @@
18 if branch is not None:
19 show_committers = verbose >= 2
20 stats = _show_branch_stats(branch, show_committers, outfile)
21- else:
22+ elif repository is not None:
23 stats = repository.gather_stats()
24- if branch is None and working is None:
25+ if branch is None and working is None and repository is not None:
26 _show_repository_info(repository, outfile)
27- _show_repository_stats(repository, stats, outfile)
28+ if repository is not None:
29+ _show_repository_stats(repository, stats, outfile)
30
31
32 def describe_layout(repository=None, branch=None, tree=None, control=None):
33
34=== modified file 'bzrlib/tests/blackbox/test_info.py'
35--- bzrlib/tests/blackbox/test_info.py 2012-02-14 17:22:37 +0000
36+++ bzrlib/tests/blackbox/test_info.py 2012-02-23 18:27:21 +0000
37@@ -57,6 +57,19 @@
38 ' control directory: ctrl\n')
39 self.assertEquals(err, '')
40
41+ def test_info_empty_controldir_verbose(self):
42+ self.make_bzrdir('ctrl')
43+ out, err = self.run_bzr('info -v ctrl')
44+ self.assertEqualDiff(out,
45+ 'Empty control directory (format: 2a or pack-0.92)\n'
46+ 'Location:\n'
47+ ' control directory: ctrl\n\n'
48+ 'Format:\n'
49+ ' control: Meta directory format 1\n\n'
50+ 'Control directory:\n'
51+ ' 0 branches\n')
52+ self.assertEquals(err, '')
53+
54 def test_info_dangling_branch_reference(self):
55 br = self.make_branch('target')
56 br.create_checkout('from', lightweight=True)
57
58=== modified file 'bzrlib/tests/per_controldir_colo/test_supported.py'
59--- bzrlib/tests/per_controldir_colo/test_supported.py 2012-01-23 19:09:00 +0000
60+++ bzrlib/tests/per_controldir_colo/test_supported.py 2012-02-23 18:27:21 +0000
61@@ -145,6 +145,10 @@
62 def test_branch_reference(self):
63 referenced = self.make_branch('referenced')
64 repo = self.make_repository('repo')
65- repo.bzrdir.set_branch_reference(referenced, name='foo')
66+ try:
67+ repo.bzrdir.set_branch_reference(referenced, name='foo')
68+ except errors.IncompatibleFormat:
69+ raise tests.TestNotApplicable(
70+ 'Control dir does not support creating branch references.')
71 self.assertEquals(referenced.base,
72 repo.bzrdir.get_branch_reference('foo'))
73
74=== modified file 'bzrlib/transport/http/_urllib2_wrappers.py'
75--- bzrlib/transport/http/_urllib2_wrappers.py 2012-02-15 10:24:06 +0000
76+++ bzrlib/transport/http/_urllib2_wrappers.py 2012-02-23 18:27:21 +0000
77@@ -88,7 +88,7 @@
78 ]
79 def default_ca_certs():
80 if sys.platform == 'win32':
81- return os.path.join(os.path.dirname(sys.executable), u"ca_bundle.crt")
82+ return os.path.join(os.path.dirname(sys.executable), u"cacert.pem")
83 elif sys.platform == 'darwin':
84 # FIXME: Needs some default value for osx, waiting for osx installers
85 # guys feedback -- vila 2012-01-25
86
87=== modified file 'doc/en/release-notes/bzr-2.5.txt'
88--- doc/en/release-notes/bzr-2.5.txt 2012-02-18 16:55:04 +0000
89+++ doc/en/release-notes/bzr-2.5.txt 2012-02-23 18:27:21 +0000
90@@ -36,6 +36,9 @@
91 .. Fixes for situations where bzr would previously crash or give incorrect
92 or undesirable results.
93
94+* Show locks in ``bzr info`` on control directories without a
95+ repository. (Jelmer Vernooij, #936767)
96+
97 * Disable ssl certificate verification on osx and windows until a native
98 access to the the root certificates is provided there.
99 (Vincent Ladeuil, #929179)