私は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
次に、これら 3 つのパッケージを .hgsub ファイルでサブリポジトリとして宣言しました。
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
サブリポジトリの仕組みを誤解しているようです...
サブリポジトリの使用は私のユースケースに当てはまりますか? 私がやりたいことはどのように行われるのでしょうか?