Merge lp:~jamesh/bindwood/reorder-after-move into lp:bindwood
Proposed by
James Henstridge
Status: | Merged |
---|---|
Approved by: | James Henstridge |
Approved revision: | 36 |
Merged at revision: | 37 |
Proposed branch: | lp:~jamesh/bindwood/reorder-after-move |
Merge into: | lp:bindwood |
Diff against target: |
77 lines (+52/-5) 2 files modified
modules/sync.jsm (+5/-5) mozmill/tests/test_sync_from_couch.js (+47/-0) |
To merge this branch: | bzr merge lp:~jamesh/bindwood/reorder-after-move |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Manuel de la Peña (community) | Approve | ||
Eric Casteleijn (community) | Approve | ||
Review via email: mp+51677@code.launchpad.net |
Commit message
Fix reorder_children() to handle the case where an expected child has been moved to a different folder.
Description of the change
This branch fixes a bug in the reorder_children() method of the synchroniser. This method takes a child list for a folder from CouchDB and tries to make the local folder match the ordering.
Prior to this branch, it assumed that if a child GUID existed locally we could assign an index for it in the parent folder. However, this would fail if the user had moved the bookmark to a different folder.
This branch fixes the function so that it only tries to reorder children if they are actually a child of the folder in question.
To post a comment you must log in.
+1