Create a new repo from sub folder in Mercurial Repo using convert

依然范特西╮ 提交于 2019-12-04 00:41:07

The workflow you listed is correct. That is the way the convert extension is intended to work.

Your question states that the repo output by hg convert is actually empty (except for "the very first history entry for MainRepo and a Convert item"). This would indicate that convert was not able to find the path specified in your filemap.

Are you certain that the path given your include statement is correct?

The directory name given in your include statement must be the full path from your repository root. For example, your include statement:

include Project1

requires that the path to Project1 actually be:

C:\MainRepo\Project1

If Project1 is actually located somewhere else in MainRepo, you will end up with an empty repo after the conversion.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!