I have a main repository (MainRepo) with all my source code, and a sub repository (SharedLibrary) with some 3'rd party DLL's I want to add to my MainRepo.
For some reason my SharedLibrary folder inside MainRepo is not picking up changes done in the SharedLibrary repository. This is the excact commands I do;
Creating my subrepo:
- [Creating directory SharedLibrary on my hdd and creating SharedLibrary repo in my kiln website]
- cd sharedLibrary
- hg init
- hg add
- hg commit
- hg push "https://myusername@ocea.kilnhg.com/Repo/Repositories/Group/SharedLibrary"
Now I can see my subrepo in kiln website and all looks fine.
Creating my main repository (MainRepo) (with SharedLibrary as a subrepo inside):
- [Creating directory MainRepo on my hdd and creating MainRepo repo in my kiln website]
- cd MainRepo
- hg init
- hg add
- hg commit
- hg push "https://myusername@ocea.kilnhg.com/Repo/Repositories/Group/MainRepo"
Setting up subrepo SharedLibrary in the MainRepo project:
- cd MainRepo
- hg clone "https://myusername@ocea.kilnhg.com/Repo/Repositories/Group/SharedLibrary" SharedLibrary
- echo SharedLibrary = https://myusername@ocea.kilnhg.com/Repo/Repositories/Group/SharedLibrary > .hgsub
- hg add .hgsub
- hg ci -m "Added subrepo SharedLibrary to MainRepo
- hg push "https://myusername@ocea.kilnhg.com/Repo/Repositories/Group/MainRepo"
So you should think everything is okay now? So I do a clone of my MainRepo repo and it successfully pulls my MainRepo repo and the subrepo inside. But the problem appears if I check in a new file/or change a file in the subrepo and commits and pushes it to kiln. Then -> on my next clone (or pull) of MainRepo I don’t get the changes at all - it's like it always get's the first version of my SharedLibrary although I can see the changes in my SharedLibrary in kiln website..