我正在尝试使用Mercurial中的convert扩展来从当前位于“Main”存储库中的文件夹创建存储库。我正在使用filemap将这个新存储库移动(重命名)到一个新位置,但它会不断复制所有文件。我知道在文件映射中我们可以有一个排除但它似乎不起作用。
我正在做的事情的样本:
#Exclude everything but sa-inetpub website and the sa-inetpub.Tests
exclude .
#Include folder Source/Code/Websites/sa-inetpub and the Source/UnitTests/sa-inetpub.Tests
include "Source/Code/Websites/sa-inetpub"
include "Source/UnitTests/sa-inetpub.Tests"
include "Source/Code/MVC"
include "Source/Code/MVCUnitTests"
include "Source/Code/Websites/Includes/HierarchyParser"
#Rename the old sa-inetpub in the old directory to the new sa-inetpub directory. This is essentially a move.
rename Source/Code/Websites/sa-inetpub src/app/sa-inetpub
rename Source/UnitTests/sa-inetpub.Tests src/test/sa-inetpub.Tests
rename Source/Code/MVC src/app/MVC
rename Source/Code/MVCUnitTests src/test/MVCUnitTests
rename Source/Code/Websites/Includes/HierarchyParser src/app/hierarchyparser
根据ConvertExtension的文档,这应该有效:
exclude "doc"
include "doc/foo bar.txt"
rename "doc/FAQ" "faq"
有人可以就此问题提供一些见解吗?
谢谢,
答案 0 :(得分:0)
谢谢,但我明白了。 您不需要排除。包含只会带来提到的文件/文件夹。