Merge lp:~hid-iwata/bzr/fix-827721 into lp:bzr/2.4

Proposed by IWATA Hidetaka
Status: Merged
Approved by: John A Meinel
Approved revision: no longer in the source branch.
Merged at revision: 6040
Proposed branch: lp:~hid-iwata/bzr/fix-827721
Merge into: lp:bzr/2.4
Diff against target: 25 lines (+4/-1)
2 files modified
bzrlib/transport/__init__.py (+1/-1)
doc/en/release-notes/bzr-2.4.txt (+3/-0)
To merge this branch: bzr merge lp:~hid-iwata/bzr/fix-827721
Reviewer Review Type Date Requested Status
John A Meinel Approve
Martin Packman (community) Approve
Review via email: mp+73125@code.launchpad.net

Commit message

Bug #827721, OS/IOError will have locale dependent encoding, so use %r rather than %s.

Description of the change

Fix for #827721
Avoid UnicodeError when EINVAL error occurred.

To post a comment you must log in.
Revision history for this message
Martin Packman (gz) wrote :

Thanks for finishing this off!

For this change it may not matter, but if you haven't done the contributor agreement yet, now would be a good time:
<http://www.canonical.com/contributors>

review: Approve
Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/27/2011 4:50 AM, IWATA Hidetaka wrote:
> IWATA Hidetaka has proposed merging lp:~hid-iwata/bzr/fix-827721
> into lp:bzr/2.4.
>
> Requested reviews: bzr-core (bzr-core) Related bugs: Bug #827721 in
> Bazaar: "bzr explorer can't open repository (bzr can't handle
> EINVAL error)" https://bugs.launchpad.net/bzr/+bug/827721
>
> For more details, see:
> https://code.launchpad.net/~hid-iwata/bzr/fix-827721/+merge/73125
>
> Fix for #827721 Avoid UnicodeError when EINVAL error occurred.

 merge: approve

This counts as a trivial change, but it would be nice to have you sign
the contributor agreement anyway.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5aA4oACgkQJdeBCYSNAAMzgACeKZpmgf1oyeQrS+ZaW6eONbG2
+NIAnRAbZ0AwycrZmERZK8cKhaXwHkti
=U8Wz
-----END PGP SIGNATURE-----

review: Approve
Revision history for this message
John A Meinel (jameinel) wrote :

sent to pqm by email

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/27/2011 4:50 AM, IWATA Hidetaka wrote:
> IWATA Hidetaka has proposed merging lp:~hid-iwata/bzr/fix-827721
> into lp:bzr/2.4.
>
> Requested reviews: bzr-core (bzr-core) Related bugs: Bug #827721 in
> Bazaar: "bzr explorer can't open repository (bzr can't handle
> EINVAL error)" https://bugs.launchpad.net/bzr/+bug/827721
>
> For more details, see:
> https://code.launchpad.net/~hid-iwata/bzr/fix-827721/+merge/73125
>
> Fix for #827721 Avoid UnicodeError when EINVAL error occurred.

This failed in PQM because:
+* Avoid UnicodeDecode error when reporting EINVAL from transports.
+ (IWATA Hidetaka, #829237)
+

  ^- This has 1 space indent, instead of two, it should be:
+* Avoid UnicodeDecode error when reporting EINVAL from transports.
+ (IWATA Hidetaka, #829237)
+

I'll do a quick fixup and resubmit.

John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5aJMoACgkQJdeBCYSNAANuZQCePq4mCLF7mfVGaDMLmY45FyjR
dSsAmwUa7UEL+4zmKHdT1yPjyz6NMjs8
=gS1b
-----END PGP SIGNATURE-----

Revision history for this message
John A Meinel (jameinel) wrote :

sent to pqm by email (from my branch)

Revision history for this message
Martin Packman (gz) wrote :

You landed on dev not 2.4 John? This needs to be on 2.4 too.

Revision history for this message
IWATA Hidetaka (hid-iwata) wrote :

> For this change it may not matter, but if you haven't done the contributor agreement yet, now would be a good time:
> <http://www.canonical.com/contributors>

OK. I'll do it.
But I need some more time because I have no printer and scanner :-(

Revision history for this message
Martin Pool (mbp) wrote :

sent to pqm by email

Revision history for this message
Martin Pool (mbp) wrote :

We don't need assignment for this; it's trivial. (Previously we didn't have a 'trivial' category but now we do.)

Revision history for this message
Martin Pool (mbp) wrote :

this failed in pqm, apparently while generating the news. the filename in the error is a bit surprising, but the rest error is clear. i'll fix it up.

I: [pqm-bzr-amd64-lucid chroot] Running command: "cd /home/pqm/bzr-pqm-workdir/home/2.4 && LANG=en_GB.utf8 make check"
doc/en/release-notes/NEWS.txt:50: (WARNING/2) Bullet list ends without a blank line; unexpected unindent.
Exiting due to level-2 (WARNING) system message.
make: *** [doc/en/release-notes/NEWS.html] Error 1

Revision history for this message
John A Meinel (jameinel) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 8/28/2011 11:51 PM, Martin [gz] wrote:
> You landed on dev not 2.4 John? This needs to be on 2.4 too.

Martin Pool submitted it to 2.4 for me, currently in pqm.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk5cpD0ACgkQJdeBCYSNAAOf9wCdFN6mtMu5OyMiiUmD9bUIVESg
tFoAn385+mLKP75C5QFflvMmVWx58iCU
=2bqm
-----END PGP SIGNATURE-----

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'bzrlib/transport/__init__.py'
2--- bzrlib/transport/__init__.py 2011-07-27 05:05:15 +0000
3+++ bzrlib/transport/__init__.py 2011-08-27 02:47:54 +0000
4@@ -325,7 +325,7 @@
5 if e.errno in (errno.ENOENT, errno.ENOTDIR):
6 raise errors.NoSuchFile(path, extra=e)
7 elif e.errno == errno.EINVAL:
8- mutter("EINVAL returned on path %s: %s" % (path, e))
9+ mutter("EINVAL returned on path %s: %r" % (path, e))
10 raise errors.NoSuchFile(path, extra=e)
11 # I would rather use errno.EFOO, but there doesn't seem to be
12 # any matching for 267
13
14=== modified file 'doc/en/release-notes/bzr-2.4.txt'
15--- doc/en/release-notes/bzr-2.4.txt 2011-08-24 08:02:23 +0000
16+++ doc/en/release-notes/bzr-2.4.txt 2011-08-27 02:47:54 +0000
17@@ -40,6 +40,9 @@
18
19 * Fix i18n use when no environment variables are set. (Jelmer Vernooij, #810701)
20
21+* Avoid UnicodeDecode error when reporting EINVAL from transports.
22+ (IWATA Hidetaka, #829237)
23+
24 Documentation
25 *************
26

Subscribers

People subscribed via source and target branches