Merge lp:~gz/bzr/merge_2.1_to_2.2 into lp:bzr/2.2

Proposed by Martin Packman
Status: Merged
Approved by: Vincent Ladeuil
Approved revision: no longer in the source branch.
Merged at revision: 5116
Proposed branch: lp:~gz/bzr/merge_2.1_to_2.2
Merge into: lp:bzr/2.2
Diff against target: 65 lines (+21/-1)
3 files modified
NEWS (+9/-0)
bzrlib/mutabletree.py (+3/-1)
bzrlib/tests/blackbox/test_add.py (+9/-0)
To merge this branch: bzr merge lp:~gz/bzr/merge_2.1_to_2.2
Reviewer Review Type Date Requested Status
Vincent Ladeuil Approve
Review via email: mp+43925@code.launchpad.net

Commit message

Merge 2.1 into 2.2 to pick up fix for lp:686611

Description of the change

Merge 2.1 into 2.2 to pick up fix for lp:686611

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

Go !

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

sent to pqm by email

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'NEWS'
--- NEWS 2010-12-10 04:48:18 +0000
+++ NEWS 2010-12-16 16:08:30 +0000
@@ -25,6 +25,9 @@
25Bug Fixes25Bug Fixes
26*********26*********
2727
28* Avoid UnicodeDecodeError in ``bzr add`` with multiple files under a non-ascii
29 path on windows from symlink support addition. (Martin [gz], #686611)
30
28* Don't probe for a repository from within ``NotBranchError.__repr__``,31* Don't probe for a repository from within ``NotBranchError.__repr__``,
29 because this can cause knock-on errors at awkward times.32 because this can cause knock-on errors at awkward times.
30 (Andrew Bennetts, #687653)33 (Andrew Bennetts, #687653)
@@ -246,6 +249,9 @@
246Bug Fixes249Bug Fixes
247*********250*********
248251
252* Avoid UnicodeDecodeError in ``bzr add`` with multiple files under a non-ascii
253 path on windows from symlink support addition. (Martin [gz], #686611)
254
249* Skip tests that needs a bzr source tree when there isn't one. This is255* Skip tests that needs a bzr source tree when there isn't one. This is
250 needed to succesfully run the test suite for installed versions.256 needed to succesfully run the test suite for installed versions.
251 (Vincent Ladeuil, #644855).257 (Vincent Ladeuil, #644855).
@@ -375,6 +381,9 @@
375Bug Fixes381Bug Fixes
376*********382*********
377383
384* Avoid UnicodeDecodeError in ``bzr add`` with multiple files under a non-ascii
385 path on windows from symlink support addition. (Martin [gz], #686611)
386
378Improvements387Improvements
379************388************
380389
381390
=== modified file 'bzrlib/mutabletree.py'
--- bzrlib/mutabletree.py 2010-08-16 03:43:35 +0000
+++ bzrlib/mutabletree.py 2010-12-16 16:08:30 +0000
@@ -418,7 +418,9 @@
418418
419 # expand any symlinks in the directory part, while leaving the419 # expand any symlinks in the directory part, while leaving the
420 # filename alone420 # filename alone
421 file_list = map(osutils.normalizepath, file_list)421 # only expanding if symlinks are supported avoids windows path bugs
422 if osutils.has_symlinks():
423 file_list = map(osutils.normalizepath, file_list)
422424
423 # validate user file paths and convert all paths to tree425 # validate user file paths and convert all paths to tree
424 # relative : it's cheaper to make a tree relative path an abspath426 # relative : it's cheaper to make a tree relative path an abspath
425427
=== modified file 'bzrlib/tests/blackbox/test_add.py'
--- bzrlib/tests/blackbox/test_add.py 2010-02-23 07:43:11 +0000
+++ bzrlib/tests/blackbox/test_add.py 2010-12-16 16:08:30 +0000
@@ -217,3 +217,12 @@
217 os.symlink(osutils.abspath('target'), 'tree/link')217 os.symlink(osutils.abspath('target'), 'tree/link')
218 out = self.run_bzr(['add', 'tree/link'])[0]218 out = self.run_bzr(['add', 'tree/link'])[0]
219 self.assertEquals(out, 'adding link\n')219 self.assertEquals(out, 'adding link\n')
220
221 def test_add_multiple_files_in_unicode_cwd(self):
222 """Adding multiple files in a non-ascii cwd, see lp:686611"""
223 self.requireFeature(tests.UnicodeFilename)
224 self.make_branch_and_tree(u"\xA7")
225 self.build_tree([u"\xA7/a", u"\xA7/b"])
226 out, err = self.run_bzr(["add", "a", "b"], working_dir=u"\xA7")
227 self.assertEquals(out, "adding a\n" "adding b\n")
228 self.assertEquals(err, "")

Subscribers

People subscribed via source and target branches