title: Merging two different repositories
body: <p>I've 3 repos, A, B and C, all related to the same project. A is the oldest version of the project, B is an experiment that didn't really go anywhere and C is the latest working version. All these repos have different files - they're different implementations of the same product.</p>
  <p>I'd like to merge these 3 repos into one keeping their history - this is vital. I guess I want to stack B on top of A and C on top of B but when I checkout the project I only want to get the changes related to repo C.</p>
  <p>My idea is to tag or create a named branch on A, hg rm *, commit and then pile B on top. Repeat the same with B so I can pile C and then continue on the project as usual.</p>
  <p>What do you think? Also, some inspiration for what I want to do: <a href="https://web.archive.org/web/20180605095036/https://hgtip.com/tips/advanced/2009-11-17-combining-repositories/" rel="nofollow noreferrer">1</a>, <a href="https://stackoverflow.com/questions/5859263/join-two-mercurial-repositories-into-one-line-of-revisions">2</a>.</p>