Merge lp:~jameinel/bzr/2.0-string-exception-586926 into lp:bzr/2.0

Proposed by John A Meinel
Status: Merged
Merged at revision: 4751
Proposed branch: lp:~jameinel/bzr/2.0-string-exception-586926
Merge into: lp:bzr/2.0
Diff against target: 32 lines (+5/-2)
2 files modified
NEWS (+3/-0)
bzrlib/bundle/bundle_data.py (+2/-2)
To merge this branch: bzr merge lp:~jameinel/bzr/2.0-string-exception-586926
Reviewer Review Type Date Requested Status
Barry Warsaw Approve
Review via email: mp+26332@code.launchpad.net

Description of the change

We accidentally have a string exception as pointed out by Barry Warsaw, as pointed out by the debian guys.

This should fix it, and should get merged up to bzr.dev.

To post a comment you must log in.
Revision history for this message
Barry Warsaw (barry) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS'
--- NEWS 2010-05-20 21:23:47 +0000
+++ NEWS 2010-05-28 18:08:30 +0000
@@ -26,6 +26,9 @@
26 permissions as ``.bzr`` directory on a POSIX OS.26 permissions as ``.bzr`` directory on a POSIX OS.
27 (Parth Malwankar, #262450)27 (Parth Malwankar, #262450)
2828
29* Raise ValueError instead of a string exception.
30 (John Arbash Meinel, #586926)
31
29* Reduce peak memory by one copy of compressed text.32* Reduce peak memory by one copy of compressed text.
30 (John Arbash Meinel, #566940)33 (John Arbash Meinel, #566940)
3134
3235
=== modified file 'bzrlib/bundle/bundle_data.py'
--- bzrlib/bundle/bundle_data.py 2009-05-06 05:36:28 +0000
+++ bzrlib/bundle/bundle_data.py 2010-05-28 18:08:30 +0000
@@ -1,4 +1,4 @@
1# Copyright (C) 2006 Canonical Ltd1# Copyright (C) 2005-2010 Canonical Ltd
2#2#
3# This program is free software; you can redistribute it and/or modify3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by4# it under the terms of the GNU General Public License as published by
@@ -327,7 +327,7 @@
327 try:327 try:
328 name, value = info_item.split(':', 1)328 name, value = info_item.split(':', 1)
329 except ValueError:329 except ValueError:
330 raise 'Value %r has no colon' % info_item330 raise ValueError('Value %r has no colon' % info_item)
331 if name == 'last-changed':331 if name == 'last-changed':
332 last_changed = value332 last_changed = value
333 elif name == 'executable':333 elif name == 'executable':

Subscribers

People subscribed via source and target branches