On (27/08/07 21:40), Robert Collins wrote:
> I feel strongly that as no other issues have arrived it should be the
> final release. We're 2 weeks into 0.91 at this point.
Ok, two for the final release, and no one else speaking up against, so
we should go for this. Could someone please merge the attached two
bundles. (The second wont show up in BB I believe, but it is trivial).
The second does rely on both getting merged by the end of today. Would
it be acceptable to do a release from my local branch rather than a PQM
branch if that is not the case?
# Bazaar merge directive format 2 (Bazaar 0.90)
# revision_id: <email address hidden>-\
# 672l6nisr283ybdc
# target_branch: http://bazaar-vcs.org/bzr/bzr.0.90/
# testament_sha1: 5fe509622ea1c6904199e90ff155694122eadee4
# timestamp: 2007-08-27 22:04:22 +0100
# base_revision_id: <email address hidden>
#
# Begin patch
=== modified file 'NEWS'
--- NEWS 2007-08-21 20:54:11 +0000
+++ NEWS 2007-08-27 21:01:57 +0000
@@ -18,6 +18,13 @@
from the developer document catalog back to the main one.
(Ian Clatworthy, Sabin Iacob, Alexander Belchenko)
+ BUGFIXES:
+
+ * Fix ''bzr info bzr://host/'' and other operations on ''bzr://' URLs with
+ an implicit port. We were incorrectly raising PathNotChild due to
+ inconsistent treatment of the ''_port'' attribute on the Transport object.
+ (John Arbash Meinel, Andrew Bennetts, #133965)
+
# TODO: Should possibly split transport-specific tests into their own files.
@@ -714,6 +717,31 @@ self.assertIsNot(t1, t2)
+class TestRemoteTCPTransport(TestCase):
+ """Tests for bzr:// transport (RemoteTCPTransport)."""
+
+ def test_relpath_with_implicit_port(self):
+ """Connected transports with the same URL are the same, even if the
+ port is implicit.
+
+ So t.relpath(url) should always be '' if t.base is the same as url, or
+ if the only difference is that one explicitly specifies the default
+ port and the other doesn't specify a port.
+ """
+ t_implicit_port = RemoteTCPTransport('bzr://host.com/')
+ self.assertEquals('', t_implicit_port.relpath('bzr://host.com/'))
+ t_explicit_port = RemoteTCPTransport('bzr://host.com:4155/')
+ self.assertEquals('', t_explicit_port.relpath('bzr://host.com:4155/'))
+
+ def test_url_includes_non_default_port(self):
+ """Non-default ports are included in the transport's URL.
+
+ Contrast this to `test_url_omits_default_port`.
+ """
+ t = get_transport('bzr://host.com:666/')
+ self.assertEquals('bzr://host.com:666/', t.base)
+
+
def get_test_permutations():
"""Return transport permutations to be used in testing.
On (27/08/07 21:40), Robert Collins wrote:
> I feel strongly that as no other issues have arrived it should be the
> final release. We're 2 weeks into 0.91 at this point.
Ok, two for the final release, and no one else speaking up against, so
we should go for this. Could someone please merge the attached two
bundles. (The second wont show up in BB I believe, but it is trivial).
The second does rely on both getting merged by the end of today. Would
it be acceptable to do a release from my local branch rather than a PQM
branch if that is not the case?
Thanks,
James
-- jameswestby. net/ M*edCX/ .A:n*N! >|&7U.L# 9E)Tu)T0> AM - secp256r1/nistp256
James Westby -- GPG Key ID: B577FE13 -- http://
seccure key - (3+)k7|
# Bazaar merge directive format 2 (Bazaar 0.90) bazaar- vcs.org/ bzr/bzr. 0.90/ 04199e90ff15569 4122eadee4
# revision_id: <email address hidden>-\
# 672l6nisr283ybdc
# target_branch: http://
# testament_sha1: 5fe509622ea1c69
# timestamp: 2007-08-27 22:04:22 +0100
# base_revision_id: <email address hidden>
#
# Begin patch
=== modified file 'NEWS'
--- NEWS 2007-08-21 20:54:11 +0000
+++ NEWS 2007-08-27 21:01:57 +0000
@@ -18,6 +18,13 @@
from the developer document catalog back to the main one.
(Ian Clatworthy, Sabin Iacob, Alexander Belchenko)
+ BUGFIXES:
+
+ * Fix ''bzr info bzr://host/'' and other operations on ''bzr://' URLs with
+ an implicit port. We were incorrectly raising PathNotChild due to
+ inconsistent treatment of the ''_port'' attribute on the Transport object.
+ (John Arbash Meinel, Andrew Bennetts, #133965)
+
bzr 0.90rc1 2007-08-14 ======= ======= ==
======
=== modified file 'bzrlib/ tests/test_ transport. py' tests/test_ transport. py 2007-07-22 15:44:59 +0000 tests/test_ transport. py 2007-08-27 21:01:57 +0000 transport. memory import MemoryTransport transport. local import (LocalTransport,
EmulatedWin32 LocalTransport) transport. remote import (BZR_DEFAULT_PORT,
--- bzrlib/
+++ bzrlib/
@@ -54,6 +54,9 @@
from bzrlib.
from bzrlib.
+from bzrlib.
+ RemoteTCPTransport,
+ )
# TODO: Should possibly split transport-specific tests into their own files.
self. assertIsNot( t1, t2)
@@ -714,6 +717,31 @@
+class TestRemoteTCPTr ansport( TestCase) : port)." "" with_implicit_ port(self) : ort('bzr: //host. com/') ls('', t_implicit_ port.relpath( 'bzr:// host.com/ ')) ort('bzr: //host. com:4155/ ') ls('', t_explicit_ port.relpath( 'bzr:// host.com: 4155/') ) includes_ non_default_ port(self) : omits_default_ port`. 'bzr:// host.com: 666/') ls('bzr: //host. com:666/ ', t.base) permutations( ):
+ """Tests for bzr:// transport (RemoteTCPTrans
+
+ def test_relpath_
+ """Connected transports with the same URL are the same, even if the
+ port is implicit.
+
+ So t.relpath(url) should always be '' if t.base is the same as url, or
+ if the only difference is that one explicitly specifies the default
+ port and the other doesn't specify a port.
+ """
+ t_implicit_port = RemoteTCPTransp
+ self.assertEqua
+ t_explicit_port = RemoteTCPTransp
+ self.assertEqua
+
+ def test_url_
+ """Non-default ports are included in the transport's URL.
+
+ Contrast this to `test_url_
+ """
+ t = get_transport(
+ self.assertEqua
+
+
def get_test_
"""Return transport permutations to be used in testing.
=== modified file 'bzrlib/ transport/ remote. py' transport/ remote. py 2007-07-30 14:36:04 +0000 transport/ remote. py 2007-08-27 21:01:57 +0000
--- bzrlib/
+++ bzrlib/
@@ -443,9 +443,10 @@
def _build_ medium( self): startswith( 'bzr:// ') SmartTCPClientM edium(self. _host, self._port), None SmartTCPClientM edium(self. _host, port), None
assert self.base.
- if self._port is None:
- self._port = BZR_DEFAULT_PORT
- return medium.
+ port = self._port
+ if port is None:
+ port = BZR_DEFAULT_PORT
+ return medium.
class RemoteSSHTransp ort(RemoteTrans port):
# Begin bundle 2aXNpb24gYnVuZG xlIHY0CiMKQlpoO TFBWSZTWcaSwikA A8FfgFRQef/ //3+3 wYAg7fYd7g8AE3b Ybr2Z0qnqq1wBJJ EYU2lPyE2im1PU/ IBNTxQep6J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zlyQG leWJjExMpJnNdAO qJ1Rj GiKauahdjHbvUtR WQ5eQK1w90QKOJM AbvF4lQbHbjUysX 1FVvMQrGM+ WyMnDh fU53y0SqnGIsOgN 0gLmNOFYlOWilCz G2RwDKYwIPwzgK7 EpObwsG8s6ugzTd h eOoZBY10TaIzuGl SRt5E4gmgx1lLm5 uRJoihsQJETrEMb DypQeYK7IajLp8T P d05mDpGjqWOqk6R HQliIfUdyuGlU0j JpF3ss1mbRHMhgG JmXuouYfwds2Lsy L cNJms8mPQKH+ 7TgcukaDBIlVdQE he+j9He0SMjywIp kt1bql0PnNXEEAr rVG+ bGLaTncF8w8kpW8 XKzDZBoY8yWBq2G QpHNp1kAmKUdpWl 3rSplaTB0635fzc i pGBszDk5nAZCyMv qGt5F4c3wAowAlv xBaHTINFAD4Tnv0 DYoleavZ6ilBSUq t vjGIiI1p4K1czCJ hEBMB6gbOWjuKin yAvOUbOLr52oZWG wV/Dm6do7Wo9QiB 1 6cIJ4zsW4x/ o9KzVWBv8nCZfyu oEqcEI9PisvAmjp aZKOwJkojah5piy BNqcU8 fBagTjoy9vuETlJ ydCgFYBEQ9DpaE6 7ONIs1WwmaPecxn TG2MVFIUEersV0D w JlOcBIIKdBUbkpL CLQ3xWOOKIh1GVq bTguE8bBxxDiQiy 8v9AxFRRICYRB2T J oUhfqrzhuGOjdCB kEOkPMK0793OJCT JmkL5PHFA0ShXps lVmmYLFXFSasmhe J wUgQUrK7jJhly6P zjVi01g0WIeBUwp jR0zEL4zM1Y51rW T151IutVfQr+ KNVU IBMIoiMt1T6YsAw ImKhOmYF2csSZZs Ko+ZHq0iUmCeM5I lq9mMyInIczjYwq P lFi5UYSw5GiyMoG 3o22b+93vFl59Fs hmghYpm0HDzIi4e shbJxzZtDuhFh46 s JfAsF23GJadKhid iy8elzOIV8barxD gXpAr4FgTKt15+ dDWojN1eLuXaKIK EG f+LuSKcKEhjSWEU g=
IyBCYXphYXIgcmV
3tD////
AJkGiYqNEPU9Tya
0aAAA4aaYIZDTTI
zHmaF/trxwKL18Z
2ahJBIEmBsg5lPT
o5DNRdkqQ9eTtYu
7UxKQKCWwTCQhhx
410oYRAhwiGgNEC
tOfnEeulmNecitB
+6tAzAaW7YxSFUU
Z5eZ/15aWdn0+
PpVxmVe8RsIrMmK
WGiTzqTY0JReblk
4PBgIiuR8SBahTD
SCk84JiHQLiNnxN
PDK98JPNYZKhysu
LF4L1yEjkqeEJ6B
Uh8jzIFVn4+
PgMZzOaBhh46zs2
hl3F5XyEag2n2Pm
OTkiJtOYs62poNE
O2feVhKsa45nNKh
qAvMb8lzIF3bniP
BR9IwPjUCjEiCuB
hNAEU8mXlB5WSiA
MDfbbA8hc6hAvPf
075JEgJqEHTrn+
wJ0cQShOJkwvgTB
XM92JKPO0JBwa3K
nEzvn5e5eu8z5xu
qJXpDNmT9Cmyz6A
w4LoT5gWcgsiLZi
yIqr3Y0gOdVUYaX
2ePMHuQ6BgdCCaJ
8Ii/w/Uc9rZBlVJ
# Bazaar merge directive format 2 (Bazaar 0.90) bazaar- vcs.org/ bzr/bzr. 0.90/ 95f2c370c18f7f9 65ab09d95f
# revision_id: <email address hidden>-\
# r1lgdit95z8zujk9
# target_branch: http://
# testament_sha1: a5b4e034b695bd6
# timestamp: 2007-08-27 22:17:55 +0100
# base_revision_id: <email address hidden>
#
# Begin patch
=== modified file 'NEWS'
--- NEWS 2007-08-21 20:54:11 +0000
+++ NEWS 2007-08-27 21:17:41 +0000
@@ -4,7 +4,7 @@
.. contents::
-bzr 0.90 2007-08-22 ======= ======
+bzr 0.90 2007-08-28
======
IMPROVEMENTS:
# Begin bundle 2aXNpb24gYnVuZG xlIHY0CiMKQlpoO TFBWSZTWc86GswA AW3fgAAQUWv/ /1oR wUAMte0CgaAJJQ1 Cep6T2pqP0p5QzU yaZGQbSeoP1JjAa AAAaAAAAAANCJkm mAmjQAyNA AAAkkmjE0E2kaTE wU2lPKeU9RiYT9U yeqxm4QPSFLlmGX Q3XT2SucBDJI0lE 3 VE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