Merge lp:~gz/bzr/tests_for_bug_205636 into lp:bzr
Status: | Merged |
---|---|
Approved by: | Vincent Ladeuil |
Approved revision: | no longer in the source branch. |
Merged at revision: | 5520 |
Proposed branch: | lp:~gz/bzr/tests_for_bug_205636 |
Merge into: | lp:bzr |
Diff against target: |
60 lines (+43/-0) 1 file modified
bzrlib/tests/per_workingtree/test_smart_add.py (+43/-0) |
To merge this branch: | bzr merge lp:~gz/bzr/tests_for_bug_205636 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Vincent Ladeuil | Approve | ||
Martin Pool | Approve | ||
Review via email: mp+38673@code.launchpad.net |
Description of the change
The problem of adding files in a directory that used to be a file described in bug 205636 was found to have been fixed by the bug 192859 symlink related changes. However, no tests specifically for that case were added. While making this branch, I discovered only one on my two ways of reproducing the problem has actually been fixed, but these tests can land at least.
I followed the per_workingtree placement in Martin Pool's symlink branch tests. However, I'm not sure the test_add test that fails with the older working tree formats is really valid, from the command line I only get failures down the smart_add path so perhaps add isn't expected to deal with this kind of oddness.
The remaining issue that will need fixing can be reproduced with:
>bzr init test
>cd test
>echo Test>dir
>bzr add dir
>del dir
>mkdir dir\dir
>bzr add dir
(What, "bash: del: command not found"? I'm not crazy about shell tests either.)
Looks like bug 251864 sort of covers the smart_add case that still fails.