简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM