Reformatting of `RepositoryCache.sync`.
Reformatting of `RepositoryCache.sync`.

No conversion to `with_transaction`, as this would be too convoluted for now. This will need to wait for ''real'' `with` statement support.

pkdevbox/trac,pkdevbox/trac,pkdevbox/trac,pkdevbox/trac