Record base revision for ported files. Assign unique numeric ids for virtual targets and use them for hashing.