我有3个项目:
D:\Projects\ProjectA\src\packA
D:\Projects\ProjectB\src\packB
D:\Projects\ProjectC\src\packC
我想将这 3 个项目的 3 个包存储在同一个远程存储库中。
我试图在我的远程存储库的克隆中克隆 3 个包:
D:\mercurial\DistantRepo\packA
D:\mercurial\DistantRepo\packB
D:\mercurial\DistantRepo\packC
然后我在 .hgsub 文件中将这 3 个包声明为子存储库:
packA = D:/Project/ProjectA/src/packA
packB = D:/Project/ProjectB/src/packB
packC = D:/Project/ProjectC/src/packC
我调用了hg add
andhg commit
命令。
但是当我尝试将文件推送到我的远程存储库时,.hgsub 和 .hgsubstate 文件被推送到我的远程存储库,但是我的包发生了以下情况:
pushing to https://my.distant.repo
pushing subrepo packA to D:/Projects/ProjectA/src/packA
searching for changes
no changes found
pushing subrepo packB to D:/Projects/ProjectB/src/packB
searching for changes
no changes found
pushing subrepo packC to D:/Projects/ProjectC/src/packC
searching for changes
no changes found
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 1 changesets with 2 changes to 2 files
看来我误解了子存储库的工作方式......
子存储库的使用是否符合我的用例?我想做的事怎么可能完成?