Handle storing of revision ID in metadir functions

Benjamin Mako Hill || Want to submit a patch?