I have a web app thats been in active development for about 8 months now and its
ID: 646248 • Letter: I
Question
I have a web app thats been in active development for about 8 months now and its becoming apparent that the project has a need to maintain a separation between app specific code and our OO Javascript API.
What I would like to do is have another repository with the following general structure of the js API code.
repo_name
|
+---build
|
+---build_tools
|
+---doc
|
+---src
|
+---js
Of course this structure is different from the original web app directory structure. If I make changes to this new repository how could I pull in those changes to the web app repository without unintentionally removing files or modifying the directory structure of the web app repository?
Explanation / Answer
It sounds to me like you're in need of a sub-repository. This will allow you to have a main repo but extract out a selection of your main project into it's own repository (which you can work on independently of the main project, or as a nested repo).
Subrepositories let you treat a collection of repositories as a group. For example, when you clone a repo, Mercurial will recursively clone all of its subrepositories as well, so the developer (or build server) doesn
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.