Merge lp:~maxb/bzr/2.3-launchpadlib-service-root-api-compat into lp:bzr/2.3

Proposed by Max Bowsher
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: no longer in the source branch.
Merged at revision: 5616
Proposed branch: lp:~maxb/bzr/2.3-launchpadlib-service-root-api-compat
Merge into: lp:bzr/2.3
Diff against target: 154 lines (+64/-27)
2 files modified
bzrlib/plugins/launchpad/lp_api.py (+17/-6)
doc/en/release-notes/bzr-2.2.txt (+47/-21)
To merge this branch: bzr merge lp:~maxb/bzr/2.3-launchpadlib-service-root-api-compat
Reviewer Review Type Date Requested Status
Vincent Ladeuil Approve
Review via email: mp+48323@code.launchpad.net

Commit message

Merge 2.2 into 2.3 for lp:707075. Also sync up doc/en/release-notes/bzr-2.2.txt with bzr 2.2's NEWS.

To post a comment you must log in.
Revision history for this message
Vincent Ladeuil (vila) wrote :

Thanks for tidying up the NEWS !

I noticed that you did --fixes lp:707075 on your merges in 2.2 and 2.4, I find it a bit redundant and I wonder if we really want to generalize the practice...

review: Approve
Revision history for this message
Vincent Ladeuil (vila) wrote :

sent to pqm by email

Revision history for this message
Max Bowsher (maxb) wrote :

> I noticed that you did --fixes lp:707075 on your merges in 2.2 and 2.4, I find it a bit redundant and I wonder if we really want to generalize the practice...

Noted. In this specific case I was doing it because in each case I did further work concerning fitting the bugfix into the context of the target branch, beyond that of a simple merge. On that basis, I plan to do it for the upcoming merge of this to bzr.dev - but I will not do it for more standard merges.

Revision history for this message
Vincent Ladeuil (vila) wrote :

>>>>> Max Bowsher <email address hidden> writes:

    >> I noticed that you did --fixes lp:707075 on your merges in 2.2
    >> and 2.4, I find it a bit redundant and I wonder if we really want
    >> to generalize the practice...

    > Noted. In this specific case I was doing it because in each case I
    > did further work concerning fitting the bugfix into the context of
    > the target branch,

That's a good reason to use it indeed.

    > beyond that of a simple merge. On that basis, I plan to do it for
    > the upcoming merge of this to bzr.dev - but I will not do it for
    > more standard merges.

Ok

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bzrlib/plugins/launchpad/lp_api.py'
2--- bzrlib/plugins/launchpad/lp_api.py 2010-12-02 10:41:05 +0000
3+++ bzrlib/plugins/launchpad/lp_api.py 2011-02-02 14:43:20 +0000
4@@ -47,10 +47,6 @@
5 STAGING_SERVICE_ROOT,
6 Launchpad,
7 )
8-try:
9- from launchpadlib.uris import LPNET_SERVICE_ROOT
10-except ImportError:
11- LPNET_SERVICE_ROOT = 'https://api.launchpad.net/beta/'
12
13
14 # Declare the minimum version of launchpadlib that we need in order to work.
15@@ -78,10 +74,25 @@
16 installed_version, installed_version)
17
18
19+# The older versions of launchpadlib only provided service root constants for
20+# edge and staging, whilst newer versions drop edge. Therefore service root
21+# URIs for which we do not always have constants are derived from the staging
22+# one, which does always exist.
23+#
24+# It is necessary to derive, rather than use hardcoded URIs because
25+# launchpadlib <= 1.5.4 requires service root URIs that end in a path of
26+# /beta/, whilst launchpadlib >= 1.5.5 requires service root URIs with no path
27+# info.
28+#
29+# Once we have a hard dependency on launchpadlib >= 1.5.4 we can replace all of
30+# bzr's local knowledge of individual Launchpad instances with use of the
31+# launchpadlib.uris module.
32 LAUNCHPAD_API_URLS = {
33- 'production': LPNET_SERVICE_ROOT,
34+ 'production': STAGING_SERVICE_ROOT.replace('api.staging.launchpad.net',
35+ 'api.launchpad.net'),
36 'staging': STAGING_SERVICE_ROOT,
37- 'dev': 'https://api.launchpad.dev/beta/',
38+ 'dev': STAGING_SERVICE_ROOT.replace('api.staging.launchpad.net',
39+ 'api.launchpad.dev'),
40 }
41
42
43
44=== modified file 'doc/en/release-notes/bzr-2.2.txt'
45--- doc/en/release-notes/bzr-2.2.txt 2010-12-24 17:47:53 +0000
46+++ doc/en/release-notes/bzr-2.2.txt 2011-02-02 14:43:20 +0000
47@@ -5,10 +5,49 @@
48 .. toctree::
49 :maxdepth: 1
50
51+bzr 2.2.4
52+#########
53+
54+:2.2.4: NOT RELEASED YET
55+
56+Compatibility Breaks
57+********************
58+
59+New Features
60+************
61+
62+Bug Fixes
63+*********
64+
65+* Fix communications with the Launchpad web service when using
66+ launchpadlib >= 1.5.5. This was a latent bug in bzr's communication
67+ with Launchpad's production instance, which only became a problem when
68+ the default instance was switched from edge to production in bzr 2.2.3.
69+ (Max Bowsher, #707075)
70+
71+Improvements
72+************
73+
74+Documentation
75+*************
76+
77+API Changes
78+***********
79+
80+Internals
81+*********
82+
83+Testing
84+*******
85+
86+
87 bzr 2.2.3
88 #########
89
90-:2.2.3: NOT RELEASED YET
91+:2.2.3: 2011-01-20
92+
93+This is a bugfix release. Upgrading is recommended for all users
94+on earlier 2.2 releases.
95
96 Compatibility Breaks
97 ********************
98@@ -19,19 +58,23 @@
99 been updated in this release to talk to the main (``launchpad.net``) servers,
100 rather than the ``edge`` ones. (Vincent Ladeuil, #583667)
101
102-New Features
103-************
104-
105 Bug Fixes
106 *********
107
108 * Avoid UnicodeDecodeError in ``bzr add`` with multiple files under a non-ascii
109 path on windows from symlink support addition. (Martin [gz], #686611)
110
111+* Correctly resolve content (and path) conflicts for files in subdirs.
112+ (Vincent Ladeuil, #660935)
113+
114 * Don't probe for a repository from within ``NotBranchError.__repr__``,
115 because this can cause knock-on errors at awkward times.
116 (Andrew Bennetts, #687653)
117
118+* Fix a crash during ``RepositoryPackCollection.pack`` caused by a
119+ concurrent repository pack operation. This was particularly affecting
120+ ``bzr-svn`` users. (Andrew Bennetts, #701940)
121+
122 * ``https`` access works again with recent versions of python2.7.
123 (Vincent Ladeuil, #693880)
124
125@@ -39,20 +82,6 @@
126 symlinks. Instead, it returns False, like other Trees and methods.
127 (Aaron Bentley, #681885)
128
129-Improvements
130-************
131-
132-Documentation
133-*************
134-
135-API Changes
136-***********
137-
138-Internals
139-*********
140-
141-Testing
142-*******
143
144 bzr 2.2.2
145 #########
146@@ -62,9 +91,6 @@
147 This is a bugfix release. None of these bugfixes are critical, but upgrading
148 is recommended for all users on earlier 2.2 releases.
149
150-New Features
151-************
152-
153 Bug Fixes
154 *********
155

Subscribers

People subscribed via source and target branches