Merge lp:~nataliabidart/ubuntuone-client/tree-deletion-when-prior-conflict into lp:ubuntuone-client
Proposed by
Natalia Bidart
Status: | Merged |
---|---|
Approved by: | Guillermo Gonzalez |
Approved revision: | 433 |
Merged at revision: | not available |
Proposed branch: | lp:~nataliabidart/ubuntuone-client/tree-deletion-when-prior-conflict |
Merge into: | lp:ubuntuone-client |
Diff against target: |
262 lines (+102/-56) 4 files modified
contrib/testing/testcase.py (+24/-0) tests/syncdaemon/test_fsm.py (+58/-22) tests/syncdaemon/test_states.py (+1/-21) ubuntuone/syncdaemon/filesystem_manager.py (+19/-13) |
To merge this branch: | bzr merge lp:~nataliabidart/ubuntuone-client/tree-deletion-when-prior-conflict |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Guillermo Gonzalez | Approve | ||
Roman Yepishev (community) | Approve | ||
Review via email: mp+21395@code.launchpad.net |
Commit message
Fix for Bug #462003: when there is a server-side tree deletion and the user already have conflicts in the removed directory, the directory itself is moved to conflict.
Description of the change
Added test case and fix for Bug #462003 (when there is a server-side tree deletion and the user already have conflicts in the removed directory, the directory itself is moved to conflict).
Added simple fix to pseudo-related Bug #494469.
To post a comment you must log in.
I believe this code will fail in case the whole dir is renamed to u1conflict. In this case the folder itself will not be checked and it will be removed along with all the files inside.
Based on pydoc:
dirnames is a list of the names of the subdirectories in dirpath (excluding '.' and '..').
filenames is a list of the names of the non-directory files in dirpath.