Rev 5116: (vila) Merge 2.1 into 2.2 to pick up fix for lp:686611 (Martin [gz]) in file:///home/pqm/archives/thelove/bzr/2.2/
Canonical.com Patch Queue Manager
pqm at pqm.ubuntu.com
Thu Dec 16 17:25:32 GMT 2010
At file:///home/pqm/archives/thelove/bzr/2.2/
------------------------------------------------------------
revno: 5116 [merge]
revision-id: pqm at pqm.ubuntu.com-20101216172529-yqw26u9ufho22nes
parent: pqm at pqm.ubuntu.com-20101213015210-816nvcpbwqajai5g
parent: gzlist at googlemail.com-20101216160326-atg78k37yl2opnzr
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: 2.2
timestamp: Thu 2010-12-16 17:25:29 +0000
message:
(vila) Merge 2.1 into 2.2 to pick up fix for lp:686611 (Martin [gz])
modified:
NEWS NEWS-20050323055033-4e00b5db738777ff
bzrlib/mutabletree.py mutabletree.py-20060906023413-4wlkalbdpsxi2r4y-2
bzrlib/tests/blackbox/test_add.py test_add.py-20060518072250-857e4f86f54a30b2
=== modified file 'NEWS'
--- a/NEWS 2010-12-10 04:48:18 +0000
+++ b/NEWS 2010-12-16 16:03:26 +0000
@@ -25,6 +25,9 @@
Bug Fixes
*********
+* Avoid UnicodeDecodeError in ``bzr add`` with multiple files under a non-ascii
+ path on windows from symlink support addition. (Martin [gz], #686611)
+
* Don't probe for a repository from within ``NotBranchError.__repr__``,
because this can cause knock-on errors at awkward times.
(Andrew Bennetts, #687653)
@@ -246,6 +249,9 @@
Bug Fixes
*********
+* Avoid UnicodeDecodeError in ``bzr add`` with multiple files under a non-ascii
+ path on windows from symlink support addition. (Martin [gz], #686611)
+
* Skip tests that needs a bzr source tree when there isn't one. This is
needed to succesfully run the test suite for installed versions.
(Vincent Ladeuil, #644855).
@@ -375,6 +381,9 @@
Bug Fixes
*********
+* Avoid UnicodeDecodeError in ``bzr add`` with multiple files under a non-ascii
+ path on windows from symlink support addition. (Martin [gz], #686611)
+
Improvements
************
=== modified file 'bzrlib/mutabletree.py'
--- a/bzrlib/mutabletree.py 2010-08-16 03:43:35 +0000
+++ b/bzrlib/mutabletree.py 2010-12-16 16:03:26 +0000
@@ -418,7 +418,9 @@
# expand any symlinks in the directory part, while leaving the
# filename alone
- file_list = map(osutils.normalizepath, file_list)
+ # only expanding if symlinks are supported avoids windows path bugs
+ if osutils.has_symlinks():
+ file_list = map(osutils.normalizepath, file_list)
# validate user file paths and convert all paths to tree
# relative : it's cheaper to make a tree relative path an abspath
=== modified file 'bzrlib/tests/blackbox/test_add.py'
--- a/bzrlib/tests/blackbox/test_add.py 2010-02-23 07:43:11 +0000
+++ b/bzrlib/tests/blackbox/test_add.py 2010-12-16 16:03:26 +0000
@@ -217,3 +217,12 @@
os.symlink(osutils.abspath('target'), 'tree/link')
out = self.run_bzr(['add', 'tree/link'])[0]
self.assertEquals(out, 'adding link\n')
+
+ def test_add_multiple_files_in_unicode_cwd(self):
+ """Adding multiple files in a non-ascii cwd, see lp:686611"""
+ self.requireFeature(tests.UnicodeFilename)
+ self.make_branch_and_tree(u"\xA7")
+ self.build_tree([u"\xA7/a", u"\xA7/b"])
+ out, err = self.run_bzr(["add", "a", "b"], working_dir=u"\xA7")
+ self.assertEquals(out, "adding a\n" "adding b\n")
+ self.assertEquals(err, "")
More information about the bazaar-commits
mailing list