How to inlude files of sub-repository in main repository?
Basically I want to reproduce this method with Mercurial. I don't want to have actual sub-repository, I just want manage files of sub-repo as files of my main project and main repository, and at the same time have .hg directory for this fake sub-repo and be able to perform all Mercurial operations fo it. Problem here is how to setup Mercurial to ignore all subrepositories and treat their files just as normal files.
Instead of "fake subrepo", you can have natural nested repository (repository in subdirectory of working dir, unrelated to outer repo) - and any file below nested repo-dir can belong to any of "outer" repository. Just don't forget in @master-repo" hgignore all .hg folders in subdirs (you don't need version nested repository per-se). Not tested, but seems as viable way