/head: changeset 52

Modified to use new syncing capabilities
This commit is contained in:
jgoerzen 2002-06-25 05:55:30 +01:00
parent 8c607b2e71
commit 04203d56b7
1 changed files with 11 additions and 0 deletions

View File

@ -103,7 +103,18 @@ def syncitall():
statusfolder = statusrepos.getfolder(remotefolder.getvisiblename())
statusfolder.cachemessagelist()
#
if not statusfolder.isnewfolder():
# Delete local copies of remote messages. This way,
# if a message's flag is modified locally but it has been
# deleted remotely, we'll delete it locally. Otherwise, we
# try to modify a deleted message's flags! This step
# need only be taken if a statusfolder is present; otherwise,
# there is no action taken *to* the remote repository.
remotefolder.syncmessagesto_delete(localfolder, [localfolder,
statusfolder])
ui.syncingmessages(localrepos, localfolder, remoterepos, remotefolder)
localfolder.syncmessagesto(statusfolder, [remotefolder, statusfolder])