Can';似乎无法使用Mercurial的filemap在转换扩展中实现排除
我试图使用Mercurial中的convert扩展从当前“主”存储库中的文件夹创建存储库。我正在使用filemap将这个新存储库移动(重命名)到一个新位置,但它会一直复制所有文件。我知道在文件映射中我们可以有一个排除,但它似乎不起作用 我正在做的示例:Can';似乎无法使用Mercurial的filemap在转换扩展中实现排除,mercurial,filemap,Mercurial,Filemap,我试图使用Mercurial中的convert扩展从当前“主”存储库中的文件夹创建存储库。我正在使用filemap将这个新存储库移动(重命名)到一个新位置,但它会一直复制所有文件。我知道在文件映射中我们可以有一个排除,但它似乎不起作用 我正在做的示例: #Exclude everything but sa-inetpub website and the sa-inetpub.Tests exclude . #Include folder Source/Code/Webs
#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"
有人能提供一些关于这个问题的见解吗
谢谢,谢谢,但我收到了。
您不需要排除。“包含”仅会带来提及的文件/文件夹