Closes T2663.
What is working:
- Symlinks in directory entries
- Submodules in directory entries (interpreted as symlink to rev)
- Mounting revisions
What needs to be done:
- Add unit tests (done, but only very basic unit tests, i want to rework the test framework data generation in another diff and add more unit tests)
Related to T1926.
Maybe explicit that this is to be called when the directory is cooked.
By updating the function name for example, get_cooked_directory.