Fix side-effectful assertion.
Add some debugging of metadata read.
Merge pull request #10 from tomprince/fix-merge-repo

Fix mergerepo.