Saving the metadata changes in a repository sync as soon as possible, in case there's no changeset to sync or there's some other early return. Fixes #5159.
Authored by: cboos 2007-04-18
Parent: [r5218]
Child: [r5220]