
#Tortoisehg create repository from existing folder update
The subrepository to the wanted revision and then performing a commitįrom the main repository again to update and commit the With an earlier version of the subrepository. We realize that we want to link the main repository Now the main repository is linked with the newest revision of the alice$ cd subrepo alice$ echo a > a.txt alice$ hg add a.txt alice$ hg commit -m "A" alice$ echo b > b.txt alice$ hg add b.txt alice$ hg commit -m "B" alice$ echo c > c.txt alice$ hg add c.txt alice$ hg commit -m "C" alice$ cd. To commit that, which will as described above update the state of theįirst we create some changes and commits them in the subrepository,Īnd the final commit is for updating and committing the Have to be recorded in the repository above. Subrepository and update it to the wanted version. Switch the subrepository to a different version, then go to the Where the last URL is the normalization version ofĪs mentioned you should not edit. Would be: $ hg clone my-repo $ cd repo $ hg clone $ cd. With Mercurial doing these commands: $ hg clone my-repo $ cd repo $ hg clone $ cd. In the simple case where you have ‘subrepo = subrepo’, you end up

New repository at my-main/where/to/put/the/subrepo and will You do hg clone mainrepo my-main then Mercurial will create a The right-hand side is a either a path relative to the place youĬlone from, or an absolute path. It tells Mercurial where to put the subrepository in your clone. The left-hand side is a path relative to the root of your clone and

hgsub file is as a set of lines of theįorm: where/to/put/the/subrepo = where/to/get/the/subrepo
