Reputation: 1853
I have multiple eclipse projects that are tightly related. I want to add them in a mercurial repo (repos).
Option1: Repo per project - too many repos and then I loose my ability to group projects because all projects are repos.
Option2: Multiple projects in one repo as folders. First, eclipse's plugin cannot add many project into one repo (this tutorial fails for me, there aren't many tutorials on the subject, I guess I can do this from the command line). Also I cannot pull/push per project. I have to perform this operation per repo. I miss SVN in this regard.
Option3: mercurial forest - no longer actively supported.
Option4: Subrepository - feature of last resort.
What is the best practice?
It looks like a simple case like this doesn't have a straightforward answer. Is mercurial actively developed?
Upvotes: 0
Views: 51
Reputation: 76
Second question first: Mercurial is actively developed. Here's the source update log.
Option 2 is your best bet. Like the guide you linked to shows, the repository folder (with the .hg folder inside of it...'n-projects-ws-repo' in this example) means that this folder--and every file and folder in this folder structure--is part of the repository. The diagram they show is two subfolders called org.ekkescorner.one and org.ekkescorner.two. These are two projects under the repo called 'n-projects-ws-repo'.
Upvotes: 1