Does a mercurial subrepository have to be a subdirectory of the main repository?

前端 未结 2 1837
春和景丽
春和景丽 2020-12-25 14:23

My project is made up of code in the following locations

C:\\Dev\\ProjectA
C:\\Lib\\LibraryB
C:\\Lib\\LibraryC

Presently each of these fold

2条回答
  •  醉话见心
    2020-12-25 14:46

    You can indeed declare B and C subrepos of project A (they will appear as subdirectory, as described in Mercurial Subrepository).
    That would improve your release mechanism as it would allow you to:

    • get all repos in one place (A and under)
    • reference an exact tag of B and C under A
    • tag each sub-repo s first if they had any modification
    • tag A with the information about B and C tags in it (any clone of A will be able to get the exact tags of B and C used by A)

    You can also declare B as a subrepo of D, independently of A. What you make in A (regarding B) will have no consequences for B used in D.

提交回复
热议问题