I've got some code under version control (using mercurial), and would like to share some of it, whilst hiding other parts which I cannot release into the public domain (at least at this stage).
I'd ideally like to keep the revision history of the public code intact, and, more importantly, be able push/pull changes between the public repository and the repository containing both public and private code. It should not, however, be possible to recover any of the private info from the public repository history.
From what I've gleaned so far, it should be possible to extract the public stuff using hg convert
with a filemap
and excludes, although this would change all the revision ids and preclude any interaction between the two repositories.
For completeness I guess I should add that the repository was originally converted from cvs.
Would be grateful for any ideas,