0

我正在尝试使用 Mercurial 中的转换扩展从当前位于我们“主”存储库中的文件夹创建存储库。我正在使用文件映射将此新存储库移动(重命名)到新位置,但它会不断复制所有文件。我知道在文件映射中我们可以排除,但它似乎不起作用。

我正在做的示例:

    #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"

有人可以就这个问题提供一些见解吗?

谢谢,

4

1 回答 1

0

谢谢,但我明白了。您不需要排除。包含只会带来提到的文件/文件夹。

于 2009-06-10T22:07:00.033 回答