Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';似乎无法使用Mercurial的filemap在转换扩展中实现排除_Mercurial_Filemap - Fatal编程技术网

Can';似乎无法使用Mercurial的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

我试图使用Mercurial中的convert扩展从当前“主”存储库中的文件夹创建存储库。我正在使用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"
有人能提供一些关于这个问题的见解吗

谢谢,

谢谢,但我收到了。 您不需要排除。“包含”仅会带来提及的文件/文件夹