]> code.delx.au - offlineimap/commitdiff
Woot, All changes is fixed!
authorJohn Goerzen <jgoerzen@complete.org>
Thu, 29 May 2008 06:14:29 +0000 (01:14 -0500)
committerJohn Goerzen <jgoerzen@complete.org>
Thu, 29 May 2008 06:14:29 +0000 (01:14 -0500)
src/Data/Syncable.hs

index 08cd82a10c5d19532a26ef22fd39f565ff803454..97ec0f911d5a44aa1afcc82177834ed453753373 100644 (file)
@@ -126,9 +126,9 @@ syncBiDir masterstate childstate lastchildstate =
           -- then subtract out any items in the master changes that have the
           -- same key.
           childPayloadChanges = 
-              foldl (\m (k, v) -> Map.adjust (\_ -> v) k m)
+              Map.difference
                         (findModified childstate masterstate lastchildstate)
-                        (Map.toList $ findModified masterstate childstate lastchildstate)
+                        (findModified masterstate childstate lastchildstate)
 
 {- | Compares two SyncCollections, and returns the commands that, when
 applied to the first collection, would yield the second. -}