This is possibly related to T4746. After re-importing a repository, differentials correctly link to a commit from the parent repository, but they were not automatically added to the repository itself (i.e. the `repositoryPHID` field of the diff/revision was not set).
If this the expected behaviour? I feel that if a differential is linked to a commit from repository rX then probably the differential itself should be linked to rX as well.