Fix calculation of the newest imported revision for #head imports.
treee377d78fbdd0dfff1372c1a039ce557b64169d6e
drwxr-xr-x - contrib