Two closed agreements in Mercurial

I have a project that I'm working on right now, and I'm going to make open source, but I definitely want to keep it closed. Inside this project, I have a kind of subproject that I want to publish, so any user can access it / fork.

So here is what I want:

Mercury SCC with:

  • Repo 1: All files from /dir/project/- Private repo, username / password is required to pull / push / fork / browse, etc.
  • Repo 2: some files from /dir/project/stuff- public repo, but username / password is required to change.

How can i do this? Is there a better way to do this? I use my Linux sharing environment to do this, so what is a symlink to a better idea?

I am open to all suggestions, thanks, some more HG newbies.

+3
source share
1 answer

You must use the " subrepository " to define two parts of your project:

  • your parent repo would be private, with a link (in the .hgsub file) to your public repo ()
  • your public repo will be stored in a public link, without knowing the private part.

(There is no symbolic link here)
See Also in the same issue as the SO Mercurial Subrepos question - how do you create them and how do they work? .

Subrepositories - , . , , .

+2

Source: https://habr.com/ru/post/1781955/


All Articles