Reset file update flag when revert succeeded, rather than when it failed. Avoids reverting twice for the same file update.
Reset file update flag when revert succeeded, rather than when it failed. Avoids reverting twice for the same file update.

JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim,JackieXie168/skim