I have 3 projects:
D:\Projects\ProjectA\src\packA
D:\Projects\ProjectB\src\packB
D:\Projects\ProjectC\src\packC
I want to store the 3 packages of these 3 projects in a same distant repository.
I tried to clone the 3 packages in the clone of my distant repository:
D:\mercurial\DistantRepo\packA
D:\mercurial\DistantRepo\packB
D:\mercurial\DistantRepo\packC
Then I declared these 3 packages as subrepositories in my .hgsub file:
packA = D:/Project/ProjectA/src/packA
packB = D:/Project/ProjectB/src/packB
packC = D:/Project/ProjectC/src/packC
I called the hg add
and hg commit
commands.
But when I try to push the files to my distant repository, the .hgsub and .hgsubstate files are pushed to my distant repository, but the following happen to my packages:
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
It seems I misunderstood how subrepositories work...
Does the use of subrepositories stick to my use case? How what I want to do may be done?